mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-12 04:45:45 +00:00
Fixing a bug reported by Steven Beal where Interpreter.icodeTokenLength() and In
terpreter.dumpICode() used wrong size for CLOSURE opcode arguments.
This commit is contained in:
parent
a5036f490f
commit
21946b7034
@ -1285,7 +1285,13 @@ public class Interpreter {
|
||||
pc += 2;
|
||||
}
|
||||
break;
|
||||
case TokenStream.CLOSURE :
|
||||
case TokenStream.CLOSURE : {
|
||||
int i = getShort(iCode, pc + 1);
|
||||
InterpretedFunction f = theData.itsNestedFunctions[i];
|
||||
out.println(tname + " " + f);
|
||||
pc += 2;
|
||||
}
|
||||
break;
|
||||
case TokenStream.NEW :
|
||||
case TokenStream.CALL : {
|
||||
int count = getShort(iCode, pc + 2);
|
||||
@ -1442,6 +1448,9 @@ public class Interpreter {
|
||||
return 1 + 2;
|
||||
|
||||
case TokenStream.CLOSURE :
|
||||
// index of closure master copy
|
||||
return 1 + 2;
|
||||
|
||||
case TokenStream.NEW :
|
||||
case TokenStream.CALL :
|
||||
// name string index
|
||||
|
Loading…
Reference in New Issue
Block a user