Skip to content

Commit

Permalink
[js] Implement nqp::p6scalarfromdesc.
Browse files Browse the repository at this point in the history
  • Loading branch information
pmurias committed Jan 12, 2017
1 parent 38960c6 commit 917cfaf
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/vm/js/Perl6/Ops.nqp
Expand Up @@ -111,6 +111,9 @@ $ops.add_simple_op('p6argvmarray', $ops.OBJ, [], :side_effects, sub () {
});

$ops.add_simple_op('p6stateinit', $ops.INT, [], sub () { $*BLOCK.first_time_marker });

$ops.add_simple_op('p6scalarfromdesc', $ops.OBJ, [$ops.OBJ]);

$ops.add_op('p6return', :!inlinable, sub ($comp, $node, :$want, :$cps) {
my $ops := nqp::getcomp('QAST').operations;
unless $*RETURN_FROM_HANDLER {
Expand Down

0 comments on commit 917cfaf

Please sign in to comment.