Mercurial > hg > truffle
diff graal/com.oracle.max.graal.graph/src/com/oracle/max/graal/graph/Node.java @ 3011:f00918f35c7f
inlining and runtime interface related changes:
added codeSize() and compilerStorage() to RiMethod
HotSpotMethodResolved uses reflective methods instead of vmIds and survives compilations
HotSpotResolvedType.isInitialized not represented as field (can change)
inlining stores graphs into method objects and reuses them
author | Lukas Stadler <lukas.stadler@jku.at> |
---|---|
date | Thu, 16 Jun 2011 20:36:17 +0200 |
parents | cbece91420af |
children | 4d03919746d4 |
line wrap: on
line diff
--- a/graal/com.oracle.max.graal.graph/src/com/oracle/max/graal/graph/Node.java Thu Jun 16 12:09:54 2011 +0200 +++ b/graal/com.oracle.max.graal.graph/src/com/oracle/max/graal/graph/Node.java Thu Jun 16 20:36:17 2011 +0200 @@ -83,14 +83,14 @@ } public Node replace(Node other) { - assert !isDeleted() && (other == null || !other.isDeleted()); + assert !isDeleted() && (other == null || !other.isDeleted()) : "id: " + id() + ", other: " + other; assert other == null || other.graph == graph; for (Node usage : usages) { usage.inputs.replaceFirstOccurrence(this, other); } int z = 0; for (Node predecessor : predecessors) { - for (int i=0; i<predecessor.successors.size(); i++) { + for (int i = 0; i < predecessor.successors.size(); i++) { if (predecessor.successors.get(i) == this) { predecessor.successors.silentSet(i, other); }