Skip to content

Commit

Permalink
Merge branch 'whiteknight/imcc_info_struct' into whiteknight/imcc_new…
Browse files Browse the repository at this point in the history
…_api
  • Loading branch information
Whiteknight committed Jan 27, 2011
2 parents eb4cbdf + a522f26 commit c6da3a6
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
8 changes: 4 additions & 4 deletions compilers/imcc/pcc.c
Expand Up @@ -582,7 +582,7 @@ pcc_reg_mov(ARGMOD(imc_info_t * imcc), unsigned char d, unsigned char s,
if (temps[t])
dest = temps[t];
else {
dest = temps[t] = mk_temp_reg(interp, src->set);
dest = temps[t] = mk_temp_reg(imcc, src->set);
}
break;
}
Expand All @@ -599,7 +599,7 @@ pcc_reg_mov(ARGMOD(imc_info_t * imcc), unsigned char d, unsigned char s,
for (t = 0; t < 4; ++t) {
if (types[t] == dest->set) {
if (!temps[t])
temps[t] = mk_temp_reg(interp, dest->set);
temps[t] = mk_temp_reg(imcc, dest->set);
src = temps[t];
break;
}
Expand Down Expand Up @@ -699,7 +699,7 @@ recursive_tail_call(ARGMOD(imc_info_t * imcc), ARGIN(IMC_Unit *unit),
SymReg *regs[2];
Instruction *get_params, *tmp_ins, *unused_ins;
char *buf;
op_lib_t *core_ops = PARROT_GET_CORE_OPLIB(interp);
op_lib_t *core_ops = PARROT_GET_CORE_OPLIB(imcc->interp);

if (!(unit->instructions->type & ITLABEL))
return 0;
Expand Down Expand Up @@ -846,7 +846,7 @@ expand_pcc_sub_call(ARGMOD(imc_info_t * imcc), ARGMOD(IMC_Unit *unit),

if (!meth_call && (the_sub->type & VTADDRESS)) {
/* sub->pcc_sub->sub is an actual subroutine name, not a variable */
reg = mk_temp_reg(interp, 'P');
reg = mk_temp_reg(imcc, 'P');
add_pcc_sub(sub, reg);

/* insert set_p_pc with the sub as constant */
Expand Down
12 changes: 6 additions & 6 deletions frontend/parrot/main.c
Expand Up @@ -253,16 +253,16 @@ run_imcc(Parrot_PMC interp, Parrot_String sourcefile,
{
ASSERT_ARGS(run_imcc)
if (flags->preprocess_only) {
if (!Parrot_api_wrap_imcc_hack(interp, sourcefile, argc, argv, NULL,
imcc_do_preprocess_api))
show_last_error_and_exit(interp);
//if (!Parrot_api_wrap_imcc_hack(interp, sourcefile, argc, argv, NULL,
// imcc_do_preprocess_api))
// show_last_error_and_exit(interp);
exit(EXIT_SUCCESS);
}
else {
Parrot_PMC bytecodepmc = NULL;
if (!Parrot_api_wrap_imcc_hack(interp, sourcefile, argc, argv,
&bytecodepmc, imcc_run_api))
show_last_error_and_exit(interp);
//if (!Parrot_api_wrap_imcc_hack(interp, sourcefile, argc, argv,
// &bytecodepmc, imcc_run_api))
// show_last_error_and_exit(interp);
return bytecodepmc;
}
}
Expand Down

0 comments on commit c6da3a6

Please sign in to comment.