# HG changeset patch # User Gilles Duboscq # Date 1318853253 -7200 # Node ID fac58f1753a40c9909944551219d225b1485b816 # Parent 7604c69a63018a418cc86ab0a35714cb0f93402e Make IGV ids consistant with compiler's node ids when possible (which should be always in Graal) diff -r 7604c69a6301 -r fac58f1753a4 src/share/tools/IdealGraphVisualizer/Data/src/com/sun/hotspot/igv/data/serialization/Parser.java --- 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++;