Mercurial > hg > truffle
changeset 11516:20b642493616
CR-1368
author | Mick Jordan <mick.jordan@oracle.com> |
---|---|
date | Tue, 03 Sep 2013 14:09:35 -0700 |
parents | 93c63975217e |
children | 1f03076a121b |
files | graal/com.oracle.graal.nodes/src/com/oracle/graal/nodes/StructuredGraph.java |
diffstat | 1 files changed, 7 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/graal/com.oracle.graal.nodes/src/com/oracle/graal/nodes/StructuredGraph.java Thu Aug 29 19:09:09 2013 +0200 +++ b/graal/com.oracle.graal.nodes/src/com/oracle/graal/nodes/StructuredGraph.java Tue Sep 03 14:09:35 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<Node, Node> 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) {