Skip to content

Commit de6e270

Browse files
committed
Native ref lexical ops need to receive the tc.
1 parent 89d2119 commit de6e270

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/vm/jvm/QAST/Compiler.nqp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4418,17 +4418,17 @@ class QAST::CompilerJAST {
44184418
else {
44194419
my $c := typechar($type);
44204420
if $local {
4421-
$il.append(JAST::Instruction.new( :op('aload'), 'cf' ));
4421+
$il.append($ALOAD_1);
44224422
$il.append(JAST::PushIndex.new( :value($*BLOCK.lexical_idx($name)) ));
44234423
$il.append(JAST::Instruction.new( :op('invokestatic'), $TYPE_OPS,
4424-
"getlexref_$c", $TYPE_SMO, $TYPE_CF, 'Integer' ));
4424+
"getlexref_$c", $TYPE_SMO, $TYPE_TC, 'Integer' ));
44254425
}
44264426
else {
4427-
$il.append(JAST::Instruction.new( :op('aload'), 'cf' ));
4427+
$il.append($ALOAD_1);
44284428
$il.append(JAST::PushIndex.new( :value($declarer.lexical_idx($name)) ));
44294429
$il.append(JAST::PushIndex.new( :value($scopes) ));
44304430
$il.append(JAST::Instruction.new( :op('invokestatic'), $TYPE_OPS,
4431-
"getlexref_{$c}_si", $TYPE_SMO, $TYPE_CF, 'Integer', 'Integer' ));
4431+
"getlexref_{$c}_si", $TYPE_SMO, $TYPE_TC, 'Integer', 'Integer' ));
44324432
}
44334433
return result($il, $RT_OBJ);
44344434
}

0 commit comments

Comments
 (0)