Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When dumping icode, include string constants #1693

Merged
merged 1 commit into from
Oct 12, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions rhino/src/main/java/org/mozilla/javascript/Interpreter.java
Original file line number Diff line number Diff line change
Expand Up @@ -671,6 +671,30 @@ static void dumpICode(InterpreterData idata) {
pc += 4;
break;
}
case Icode_REG_STR_C0:
{
String str = strings[0];
out.println(tname + " \"" + str + '"');
break;
}
case Icode_REG_STR_C1:
{
String str = strings[1];
out.println(tname + " \"" + str + '"');
break;
}
case Icode_REG_STR_C2:
{
String str = strings[2];
out.println(tname + " \"" + str + '"');
break;
}
case Icode_REG_STR_C3:
{
String str = strings[3];
out.println(tname + " \"" + str + '"');
break;
}
case Icode_REG_IND_C0:
indexReg = 0;
out.println(tname);
Expand Down
Loading