Skip to content

Instantly share code, notes, and snippets.

@zoffixznet
Created October 19, 2018 19:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zoffixznet/588481170beb657f6727cc95528ddbe2 to your computer and use it in GitHub Desktop.
Save zoffixznet/588481170beb657f6727cc95528ddbe2 to your computer and use it in GitHub Desktop.
diff --git a/src/6model/reprs/P6opaque.c b/src/6model/reprs/P6opaque.c
index 932fea4..49c608d 100644
--- a/src/6model/reprs/P6opaque.c
+++ b/src/6model/reprs/P6opaque.c
@@ -1751,6 +1751,7 @@ static void spesh(MVMThreadContext *tc, MVMSTable *st, MVMSpeshGraph *g, MVMSpes
ins->operands[0] = orig_operands[0];
ins->operands[1] = orig_operands[1];
ins->operands[2].lit_i16 = repr_data->attribute_offsets[repr_data->unbox_int_slot];
+ MVM_spesh_get_and_use_facts(tc, g, orig_operands[1]);
}
}
break;
@@ -1765,6 +1766,7 @@ static void spesh(MVMThreadContext *tc, MVMSTable *st, MVMSpeshGraph *g, MVMSpes
ins->operands[0] = orig_operands[0];
ins->operands[1] = orig_operands[1];
ins->operands[2].lit_i16 = repr_data->attribute_offsets[repr_data->unbox_num_slot];
+ MVM_spesh_get_and_use_facts(tc, g, orig_operands[1]);
}
}
break;
@@ -1779,6 +1781,7 @@ static void spesh(MVMThreadContext *tc, MVMSTable *st, MVMSpeshGraph *g, MVMSpes
ins->operands[0] = orig_operands[0];
ins->operands[1] = orig_operands[1];
ins->operands[2].lit_i16 = repr_data->attribute_offsets[repr_data->unbox_str_slot];
+ MVM_spesh_get_and_use_facts(tc, g, orig_operands[1]);
}
}
break;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment