# HG changeset patch # User Mick Jordan # Date 1378243132 25200 # Node ID 9ea3658e7c5d28079763c6801eb3ae0048fcdd8d # Parent 65d2f38c0aa582ded2906451cf82aab7536aaf09# Parent 1f03076a121b1b58f6b880c27af1041d2421668c Merge diff -r 65d2f38c0aa5 -r 9ea3658e7c5d graal/com.oracle.graal.nodes/src/com/oracle/graal/nodes/StructuredGraph.java --- a/graal/com.oracle.graal.nodes/src/com/oracle/graal/nodes/StructuredGraph.java Tue Sep 03 22:36:02 2013 +0200 +++ b/graal/com.oracle.graal.nodes/src/com/oracle/graal/nodes/StructuredGraph.java Tue Sep 03 14:18:52 2013 -0700 @@ -144,15 +144,19 @@ return copy(name); } - @Override - public StructuredGraph copy(String newName) { - StructuredGraph copy = new StructuredGraph(newName, method, graphId, entryBCI); + public StructuredGraph copy(String newName, ResolvedJavaMethod newMethod) { + StructuredGraph copy = new StructuredGraph(newName, newMethod, graphId, entryBCI); HashMap replacements = new HashMap<>(); replacements.put(start, copy.start); copy.addDuplicates(getNodes(), replacements); return copy; } + @Override + public StructuredGraph copy(String newName) { + return copy(newName, method); + } + public LocalNode getLocal(int index) { for (LocalNode local : getNodes(LocalNode.class)) { if (local.index() == index) {