Skip to content

Commit

Permalink
Cope with lazy HOW deserialization
Browse files Browse the repository at this point in the history
  • Loading branch information
jnthn committed Sep 30, 2021
1 parent 6b70820 commit d6c99f1
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/disp/program.c
Original file line number Diff line number Diff line change
Expand Up @@ -3070,9 +3070,13 @@ MVMint64 MVM_disp_program_run(MVMThreadContext *tc, MVMDispProgram *dp,
record->temps[op.load.temp].s = MVM_p6opaque_read_str(tc,
record->temps[op.load.temp].o, op.load.idx);
NEXT;
OP(MVMDispOpcodeLoadHOW):
record->temps[op.load.temp].o = STABLE(record->temps[op.load.idx].o)->HOW;
OP(MVMDispOpcodeLoadHOW): {
MVMObject *HOW = STABLE(record->temps[op.load.idx].o)->HOW;
if (!HOW) /* Not deserialized */
goto rejection;
record->temps[op.load.temp].o = HOW;
NEXT;
}
OP(MVMDispOpcodeLookup):
record->temps[op.load.temp].o = MVM_repr_at_key_o(tc,
record->temps[op.load.temp].o,
Expand Down

0 comments on commit d6c99f1

Please sign in to comment.