mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-09 04:59:31 -06:00
added a missing case for PUSH instruction with a global closure
This commit is contained in:
@@ -972,6 +972,18 @@ pgf_jit_function(PgfReader* rdr, PgfAbstr* abstr,
|
||||
jit_pushr_p(JIT_R0);
|
||||
break;
|
||||
}
|
||||
case 3: {
|
||||
PgfCId id = pgf_read_cid(rdr, rdr->tmp_pool);
|
||||
#ifdef PGF_JIT_DEBUG
|
||||
gu_printf(out, err, "PUSH %s", id);
|
||||
#endif
|
||||
PgfCallPatch patch;
|
||||
patch.cid = id;
|
||||
patch.ref = jit_addi_p(JIT_R0, JIT_VSTATE, jit_forward());
|
||||
gu_buf_push(rdr->jit_state->call_patches, PgfCallPatch, patch);
|
||||
jit_pushr_p(JIT_R0);
|
||||
break;
|
||||
}
|
||||
default:
|
||||
gu_impossible();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user