Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
p6handletake is no longer needed either jnthn++
  • Loading branch information
sorear committed Jun 21, 2013
1 parent e7596b6 commit 224e81b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/core/GatherIter.pm
Expand Up @@ -22,8 +22,8 @@ class GatherIter is Iterator {
});
}
$state := sub () is rw {
nqp::p6handletake( $block().eager(),
($takings := nqp::getpayload(nqp::exception()); yield(); nqp::resume(nqp::exception())));
nqp::handle( $block().eager(),
'TAKE', ($takings := nqp::getpayload(nqp::exception()); yield(); nqp::resume(nqp::exception())));
$takings := $SENTINEL; yield();
};
my $coro := sub () is rw { nqp::continuationreset($GATHER_PROMPT, $state); $takings };
Expand Down
4 changes: 0 additions & 4 deletions src/vm/jvm/Perl6/Ops.nqp
Expand Up @@ -139,10 +139,6 @@ my $p6bool := -> $qastcomp, $op {
};
$ops.add_hll_op('perl6', 'p6bool', $p6bool);

$ops.add_hll_op('perl6', 'p6handletake', -> $qastcomp, $op {
$qastcomp.as_jast(QAST::Op.new( :op('handle'), $op[0], 'TAKE', $op[1]));
});

$ops.add_hll_op('perl6', 'p6invokeflat', -> $qastcomp, $op {
$op[1].flat(1);
$qastcomp.as_jast(QAST::Op.new( :op('call'), $op[0], $op[1]));
Expand Down

0 comments on commit 224e81b

Please sign in to comment.