Add noop on OP_CLOSE instruction for branching.
This commit is contained in:
@@ -842,6 +842,7 @@ public class JavaBytecodeGenerator {
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case Lua.OP_CLOSE: /* A close all variables in the stack up to (>=) R(A)*/
|
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; ) {
|
for ( int j=nl; --j>=a; ) {
|
||||||
isinited[j] = true;
|
isinited[j] = true;
|
||||||
locals[j] = null;
|
locals[j] = null;
|
||||||
|
|||||||
Reference in New Issue
Block a user