Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Add private method devirtualizing to default opts.
  • Loading branch information
jnthn committed Jan 23, 2014
1 parent 743ebf7 commit 717a008
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Perl6/Optimizer.nqp
Expand Up @@ -564,7 +564,7 @@ class Perl6::Optimizer {

# If it's a private method call, we can sometimes resolve it at
# compile time. If so, we can reduce it to a sub call in some cases.
elsif $*LEVEL >= 3 && $op.op eq 'callmethod' && $op.name eq 'dispatch:<!>' {
elsif $*LEVEL >= 2 && $op.op eq 'callmethod' && $op.name eq 'dispatch:<!>' {
if $op[1].has_compile_time_value && nqp::istype($op[1], QAST::Want) && $op[1][1] eq 'Ss' {
my str $name := $op[1][2].value; # get raw string name
my $pkg := $op[2].returns; # actions always sets this
Expand Down

0 comments on commit 717a008

Please sign in to comment.