Mercurial > hg > truffle
diff graal/com.oracle.graal.graph/src/com/oracle/graal/graph/Graph.java @ 16895:06c15e88d383
added factory method to all Node classes; replaced Node classes instantiation with calls to factory methods; replaced identity tests on Node classes with ' == <node class>.getGenClass()' idiom
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Mon, 18 Aug 2014 14:04:21 +0200 |
parents | 52aa237f233d |
children | f90dcdbbb75e |
line wrap: on
line diff
--- a/graal/com.oracle.graal.graph/src/com/oracle/graal/graph/Graph.java Mon Aug 18 13:49:25 2014 +0200 +++ b/graal/com.oracle.graal.graph/src/com/oracle/graal/graph/Graph.java Mon Aug 18 14:04:21 2014 +0200 @@ -649,10 +649,16 @@ // Fully qualified annotation name is required to satisfy javac @com.oracle.graal.nodeinfo.NodeInfo static class PlaceHolderNode extends Node { + public static PlaceHolderNode create() { + return new Graph_PlaceHolderNodeGen(); + } + PlaceHolderNode() { + // TODO Auto-generated constructor stub + } } - private static final Node PLACE_HOLDER = new PlaceHolderNode(); + private static final Node PLACE_HOLDER = new Graph_PlaceHolderNodeGen(); /** * When the percent of live nodes in {@link #nodes} fall below this number, a call to