Add noop on OP_CLOSE instruction for branching.

This commit is contained in:
James Roseborough
2009-11-03 02:23:49 +00:00
parent 3d4a29f1bc
commit 0aa2563cc6

View File

@@ -842,6 +842,7 @@ public class JavaBytecodeGenerator {
break;
case Lua.OP_CLOSE: /* A close all variables in the stack up to (>=) R(A)*/
ih[pc] = il.append(InstructionConstants.NOP); // for branching
for ( int j=nl; --j>=a; ) {
isinited[j] = true;
locals[j] = null;