# HG changeset patch # User Thomas Wuerthinger # Date 1432059367 -7200 # Node ID 4de8827ca59b0e03b81cb80269296cead3b10e82 # Parent e479ee4aa9aa39dd083bece9dbaf107e9ec38e02 Add support of CachedGraph to BinaryGraphPrinter. diff -r e479ee4aa9aa -r 4de8827ca59b graal/com.oracle.graal.printer/src/com/oracle/graal/printer/BinaryGraphPrinter.java --- a/graal/com.oracle.graal.printer/src/com/oracle/graal/printer/BinaryGraphPrinter.java Tue May 19 15:35:58 2015 +0200 +++ b/graal/com.oracle.graal.printer/src/com/oracle/graal/printer/BinaryGraphPrinter.java Tue May 19 20:16:07 2015 +0200 @@ -362,6 +362,9 @@ } else if (obj instanceof Graph) { writeByte(PROPERTY_SUBGRAPH); writeGraph((Graph) obj); + } else if (obj instanceof CachedGraph) { + writeByte(PROPERTY_SUBGRAPH); + writeGraph(((CachedGraph) obj).getReadonlyCopy()); } else if (obj != null && obj.getClass().isArray()) { Class componentType = obj.getClass().getComponentType(); if (componentType.isPrimitive()) {