Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
longs occupy 2 slots in the stack. jnthn++
  • Loading branch information
timo committed Nov 11, 2013
1 parent b3d6cb7 commit a015b4a
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions src/vm/jvm/QAST/Compiler.nqp
Expand Up @@ -4877,10 +4877,6 @@ class QAST::CompilerJAST {
method charrange($node) {
my $il := JAST::InstructionList.new();

if $node.negate {
die("negated charrange NYI");
}

my $succeed := JAST::Label.new(:name(self.unique('charrange_succeed_')));

$il.append(JAST::Instruction.new( :op('lload'), %*REG<pos> ));
Expand All @@ -4894,7 +4890,7 @@ class QAST::CompilerJAST {
$il.append(JAST::Instruction.new( :op('invokevirtual'),
$TYPE_STR, 'codePointAt', 'Integer', 'Integer' ));
$il.append($I2L);
$il.append($DUP);
$il.append($DUP2);

$il.append(JAST::PushIVal.new( :value($node[1].value) ));
$il.append($LCMP);
Expand All @@ -4907,11 +4903,11 @@ class QAST::CompilerJAST {
$il.append(JAST::Instruction.new( :op('ifge'), $succeed ));
$il.append(JAST::Instruction.new( :op('goto'), %*REG<fail> ));
$il.append($succeed_and_pop);
$il.append($POP);
$il.append($POP2);
$il.append($succeed);
} else {
$il.append(JAST::Instruction.new( :op('ifge'), $succeed ));
$il.append($POP);
$il.append($POP2);
$il.append(JAST::Instruction.new( :op('goto'), %*REG<fail>));

$il.append($succeed);
Expand All @@ -4928,7 +4924,6 @@ class QAST::CompilerJAST {
}

$il;
#self.enumcharlist($node);
}

method literal($node) {
Expand Down

0 comments on commit a015b4a

Please sign in to comment.