Mercurial > hg > graal-compiler
changeset 3588:fac58f1753a4
Make IGV ids consistant with compiler's node ids when possible (which should be always in Graal)
author | Gilles Duboscq <gilles.m.duboscq@gmail.com> |
---|---|
date | Mon, 17 Oct 2011 14:07:33 +0200 |
parents | 7604c69a6301 |
children | faa4e0c20d6a |
files | src/share/tools/IdealGraphVisualizer/Data/src/com/sun/hotspot/igv/data/serialization/Parser.java |
diffstat | 1 files changed, 5 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/share/tools/IdealGraphVisualizer/Data/src/com/sun/hotspot/igv/data/serialization/Parser.java Fri Oct 07 16:49:07 2011 +0200 +++ b/src/share/tools/IdealGraphVisualizer/Data/src/com/sun/hotspot/igv/data/serialization/Parser.java Mon Oct 17 14:07:33 2011 +0200 @@ -99,6 +99,11 @@ private int maxId = 0; private int lookupID(String i) { + try { + return Integer.parseInt(i); + } catch (NumberFormatException nfe) { + // ignore + } Integer id = idCache.get(i); if (id == null) { id = maxId++;