Skip to content

Commit

Permalink
Add a wantdecont op
Browse files Browse the repository at this point in the history
Which compiles its child with the want-decont flag set, thus giving
the code-gen a hint it may not be able to otherwise figure out.
  • Loading branch information
jnthn committed Jun 21, 2018
1 parent 8702222 commit 62ba16f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/vm/moar/QAST/QASTOperationsMAST.nqp
Expand Up @@ -2575,6 +2575,9 @@ QAST::MASTOperations.add_core_op('decont', -> $qastcomp, $op {
MAST::InstructionList.new($expr.instructions, $res_reg, $MVM_reg_obj)
});
QAST::MASTOperations.add_core_moarop_mapping('decont', 'decont');
QAST::MASTOperations.add_core_op('wantdecont', -> $qastcomp, $op {
$qastcomp.as_mast($op[0], :want-decont)
});
QAST::MASTOperations.add_core_moarop_mapping('decont_i', 'decont_i');
QAST::MASTOperations.add_core_moarop_mapping('decont_n', 'decont_n');
QAST::MASTOperations.add_core_moarop_mapping('decont_s', 'decont_s');
Expand Down

0 comments on commit 62ba16f

Please sign in to comment.