[svn:parrot] r45022 - branches/pcc_hackathon_6Mar10/src/pmc
bacek at svn.parrot.org
bacek at svn.parrot.org
Thu Mar 18 20:02:00 UTC 2010
Author: bacek
Date: Thu Mar 18 20:01:58 2010
New Revision: 45022
URL: https://trac.parrot.org/parrot/changeset/45022
Log:
Remove some hairy code in Sub.invoke which tryed to poke into bytecode.
Modified:
branches/pcc_hackathon_6Mar10/src/pmc/sub.pmc
Modified: branches/pcc_hackathon_6Mar10/src/pmc/sub.pmc
==============================================================================
--- branches/pcc_hackathon_6Mar10/src/pmc/sub.pmc Thu Mar 18 19:55:58 2010 (r45021)
+++ branches/pcc_hackathon_6Mar10/src/pmc/sub.pmc Thu Mar 18 20:01:58 2010 (r45022)
@@ -486,20 +486,6 @@
if (INTERP->code != sub->seg)
Parrot_switch_to_cs(INTERP, sub->seg, 1);
- if (PObj_get_FLAGS(ccont) & SUB_FLAG_TAILCALL) {
- if (!(*pc == PARROT_OP_get_params_pc
- || (*pc == PARROT_OP_push_eh_ic
- && pc[2] == PARROT_OP_get_params_pc))) {
-
- /* TODO keep it or resize it */
- Parrot_pcc_dec_recursion_depth(INTERP, context);
-
- PObj_get_FLAGS(ccont) &= ~SUB_FLAG_TAILCALL;
- Parrot_pcc_set_caller_ctx(interp, context,
- Parrot_pcc_get_caller_ctx(interp, caller_ctx));
- }
- }
-
return pc;
}
More information about the parrot-commits
mailing list