Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Start using new getlexstatic_o op.
  • Loading branch information
jnthn committed May 3, 2014
1 parent 6c1ac9f commit eafcab0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/vm/moar/QAST/QASTOperationsMAST.nqp
Expand Up @@ -1272,7 +1272,9 @@ my $call_gen := sub ($qastcomp, $op) {
my $callee;
my @args := $op.list;
if $op.name {
$callee := $qastcomp.as_mast(QAST::Var.new( :name($op.name), :scope('lexical') ));
$callee := $qastcomp.as_mast($op.op eq 'callstatic'
?? QAST::VM.new( :moarop('getlexstatic_o'), QAST::SVal.new( :value($op.name) ) )
!! QAST::Var.new( :name($op.name), :scope('lexical') ));
}
elsif +@args {
@args := nqp::clone(@args);
Expand Down

0 comments on commit eafcab0

Please sign in to comment.