Skip to content
Permalink
Browse files

Produce simpler spesh op for decont

  • Loading branch information...
jnthn committed Mar 15, 2019
1 parent c21054d commit 29878d823980695406d88f8c9967308fb64976f4
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/vm/moar/ops/container.c
@@ -103,11 +103,11 @@ static void rakudo_scalar_spesh(MVMThreadContext *tc, MVMSTable *st, MVMSpeshGra
switch (ins->info->opcode) {
case MVM_OP_decont: {
MVMSpeshOperand *old_operands = ins->operands;
ins->info = MVM_op_get_op(MVM_OP_sp_p6oget_o);
ins->info = MVM_op_get_op(MVM_OP_sp_get_o);
ins->operands = MVM_spesh_alloc(tc, g, 3 * sizeof(MVMSpeshOperand));
ins->operands[0] = old_operands[0];
ins->operands[1] = old_operands[1];
ins->operands[2].lit_i16 = offsetof( Rakudo_Scalar, value ) - offsetof( MVMObjectStooge, data );
ins->operands[2].lit_i16 = offsetof( Rakudo_Scalar, value );
break;
}
default: break;

0 comments on commit 29878d8

Please sign in to comment.
You can’t perform that action at this time.