Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Eliminate one more pirop usage.
  • Loading branch information
jnthn committed Jul 9, 2012
1 parent 9c3235c commit 8903cfe
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/QPerl6/Actions.pm
Expand Up @@ -2227,8 +2227,8 @@ class QPerl6::Actions is HLL::Actions {
$block[0].push(QAST::Op.new(
:op('bind'),
QAST::Var.new(:name<$?REGEX>, :scope<lexical>, :decl('var')),
PAST::Op.new(
:pirop('perl6_code_object_from_parrot_sub PP'),
QAST::Op.new(
:op('p6vmcodetoobj'),
PAST::Op.new( :pirop('set PQs'), PAST::Op.new( :pirop('getinterp P') ), 'sub')
)));
$block.symbol('$?REGEX', :scope<lexical>);
Expand Down
1 change: 1 addition & 0 deletions src/QPerl6/Ops.pm
Expand Up @@ -28,3 +28,4 @@ $ops.add_hll_pirop_mapping('perl6', 'p6bindsig', 'bind_signature', 'v');
$ops.add_hll_pirop_mapping('perl6', 'p6typecheckrv', 'perl6_type_check_return_value', '0P');
$ops.add_hll_pirop_mapping('perl6', 'p6decontrv', 'perl6_decontainerize_return_value', 'PP');
$ops.add_hll_pirop_mapping('perl6', 'p6capturelex', 'perl6_capture_lex', '0P');
$ops.add_hll_pirop_mapping('perl6', 'p6vmcodetoobj', 'perl6_code_object_from_parrot_sub', 'PP');

0 comments on commit 8903cfe

Please sign in to comment.