Skip to content

Commit

Permalink
Enable new API by returning PackfileView instead of Eval from IMCComp…
Browse files Browse the repository at this point in the history
…iler
  • Loading branch information
gerdr committed Feb 20, 2013
1 parent b77f276 commit 2c730f5
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/pmc/imccompiler.pmc
Expand Up @@ -128,7 +128,6 @@ pmclass IMCCompiler auto_attrs provides HLLCompiler provide invokable {
PackFile_ByteCode * const cur_code = interp->code;
STRING * code = STRINGNULL;
PMC * result = PMCNULL;
PMC * eval_pmc;
const UINTVAL regs_used[4] = {3, 3, 3, 3};
PMC * const newcontext = Parrot_push_context(interp, regs_used);

Expand All @@ -144,7 +143,6 @@ pmclass IMCCompiler auto_attrs provides HLLCompiler provide invokable {
Parrot_unblock_GC_mark(interp);
Parrot_ex_throw_from_c_args(INTERP, NULL, errcode, "%Ss", msg);
}
eval_pmc = get_packfile_eval_pmc(interp, result, attrs->current_eval++);

Parrot_pop_context(interp);
Parrot_unblock_GC_mark(interp);
Expand All @@ -157,7 +155,7 @@ pmclass IMCCompiler auto_attrs provides HLLCompiler provide invokable {
next = VTABLE_invoke(INTERP, cont, next);
}

Parrot_pcc_set_call_from_c_args(INTERP, call_object, "P", eval_pmc);
Parrot_pcc_set_call_from_c_args(INTERP, call_object, "P", result);
interp->code = cur_code;
return (opcode_t*)next;
}
Expand Down

0 comments on commit 2c730f5

Please sign in to comment.