Fix icode printing for call opcodes.

This commit is contained in:
norris%netscape.com 2000-01-19 18:38:42 +00:00
Родитель d6ae3f8f5c
Коммит 45e50c92ec
2 изменённых файлов: 10 добавлений и 6 удалений

Просмотреть файл

@ -1221,11 +1221,13 @@ public class Interpreter extends LabelTable {
case TokenStream.CLOSURE :
case TokenStream.NEW :
case TokenStream.CALL : {
int count = (iCode[pc + 1] << 8) | (iCode[pc + 2] & 0xFF);
int count = (iCode[pc + 3] << 8) | (iCode[pc + 4] & 0xFF);
out.println(
TokenStream.tokenToName(iCode[pc] & 0xff) +
" " + count);
pc += 2;
" " + count + " \"" +
getString(theData.itsStringTable, iCode,
pc + 1) + "\"");
pc += 4;
}
break;
case TokenStream.NUMBER :

Просмотреть файл

@ -1221,11 +1221,13 @@ public class Interpreter extends LabelTable {
case TokenStream.CLOSURE :
case TokenStream.NEW :
case TokenStream.CALL : {
int count = (iCode[pc + 1] << 8) | (iCode[pc + 2] & 0xFF);
int count = (iCode[pc + 3] << 8) | (iCode[pc + 4] & 0xFF);
out.println(
TokenStream.tokenToName(iCode[pc] & 0xff) +
" " + count);
pc += 2;
" " + count + " \"" +
getString(theData.itsStringTable, iCode,
pc + 1) + "\"");
pc += 4;
}
break;
case TokenStream.NUMBER :