8302335: IGV: Bytecode not showing
Reviewed-by: rcastanedalo, thartmann, xliu
This commit is contained in:
parent
57fde75b2a
commit
57c9bc39cd
@ -111,10 +111,11 @@ public class InputMethod extends Properties.Entity {
|
|||||||
|
|
||||||
public void setBytecodes(String text) {
|
public void setBytecodes(String text) {
|
||||||
Pattern instruction = Pattern.compile("\\s*(\\d+)\\s*:?\\s*(\\w+)\\s*(.*)(?://(.*))?");
|
Pattern instruction = Pattern.compile("\\s*(\\d+)\\s*:?\\s*(\\w+)\\s*(.*)(?://(.*))?");
|
||||||
|
Pattern isInfo = Pattern.compile("(\\s*)(\\d+)(\\s*)(bci:)(.+)");
|
||||||
String[] strings = text.split("\n");
|
String[] strings = text.split("\n");
|
||||||
int oldBci = -1;
|
int oldBci = -1;
|
||||||
for (String s : strings) {
|
for (String s : strings) {
|
||||||
if (s.startsWith(" ")) {
|
if (isInfo.matcher(s).matches()) {
|
||||||
// indented lines are extra textual information
|
// indented lines are extra textual information
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user