Mercurial > hg > graal-jvmci-8
comparison graal/GraalGraph/src/com/oracle/graal/graph/Graph.java @ 2554:9db994445118
more tests for GraalGraph, some changes and fixes
author | Gilles Duboscq <gilles.duboscq@oracle.com> |
---|---|
date | Thu, 28 Apr 2011 14:27:42 +0200 |
parents | d9b2a8653054 |
children | f14f8c24f77d |
comparison
equal
deleted
inserted
replaced
2550:d9b2a8653054 | 2554:9db994445118 |
---|---|
44 public Collection<Node> getNodes() { | 44 public Collection<Node> getNodes() { |
45 return Collections.unmodifiableCollection(nodes); | 45 return Collections.unmodifiableCollection(nodes); |
46 } | 46 } |
47 | 47 |
48 public Node local(Node node) { | 48 public Node local(Node node) { |
49 if (node.getGraph() == this) { | 49 if (node.graph() == this) { |
50 return node; | 50 return node; |
51 } | 51 } |
52 return node.cloneNode(this); | 52 return node.cloneNode(this); |
53 } | 53 } |
54 } | 54 } |