Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
it helps to have your piece of memory for yourself.
  • Loading branch information
timo committed Jul 11, 2014
1 parent 3c02865 commit deef0e3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/vm/moar/ops/container.c
Expand Up @@ -165,6 +165,10 @@ static void rakudo_scalar_spesh(MVMThreadContext *tc, MVMSTable *st, MVMSpeshGra
switch (ins->info->opcode) {
case MVM_OP_decont: {
ins->info = MVM_op_get_op(MVM_OP_sp_p6oget_o);
MVMSpeshOperand *old_operands = ins->operands;
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 );
break;
}
Expand Down

0 comments on commit deef0e3

Please sign in to comment.