Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
s/push_self/push_cur_meth/g
  • Loading branch information
sorear committed Jun 12, 2013
1 parent a640d5a commit 9514dbe
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/vm/jvm/QAST/Compiler.nqp
Expand Up @@ -3264,7 +3264,7 @@ class QAST::CompilerJAST {
if $block.num_save_sites {
my $saver := JAST::InstructionList.new;
$saver.append(JAST::Label.new( :name( 'SAVER' ) ));
$saver.append(JAST::PushSelf.new);
$saver.append(JAST::PushCurMeth.new);

my @merged;
for $*JMETH.arguments { nqp::push(@merged, $_); }
Expand Down
6 changes: 3 additions & 3 deletions src/vm/jvm/QAST/JASTNodes.nqp
Expand Up @@ -367,13 +367,13 @@ class JAST::PushCVal is JAST::Node {
method dump() { ".push_cc $!value" }
}

class JAST::PushSelf is JAST::Node {
class JAST::PushCurMeth is JAST::Node {
method new() {
my $node := nqp::create(JAST::PushSelf);
my $node := nqp::create(JAST::PushCurMeth);
$node
}

method dump() { ".push_self" }
method dump() { ".push_cur_meth" }
}

class JAST::TryCatch is JAST::Node {
Expand Down
Expand Up @@ -304,7 +304,7 @@ else if (curLine.startsWith(".push_cc ")) {
Type t = Type.getType(cName);
m.visitLdcInsn(t);
}
else if (curLine.equals(".push_self")) {
else if (curLine.equals(".push_self") || curLine.equals(".push_cur_meth")) {
m.visitLdcInsn(new Handle(
isStatic ? Opcodes.H_INVOKESTATIC : Opcodes.H_INVOKESPECIAL,
className, methodName, desc));
Expand Down

0 comments on commit 9514dbe

Please sign in to comment.