Mercurial > hg > truffle
comparison graal/GraalCompiler/src/com/sun/c1x/ir/NewArray.java @ 2816:5526d82388be
Made more nodes floating (including the allocation nodes NewInstance, NewArray, and NewMultiArray).
author | Thomas Wuerthinger <thomas@wuerthinger.net> |
---|---|
date | Mon, 30 May 2011 15:28:38 +0200 |
parents | 440ceca8e3d7 |
children | 015be60afcf3 ac4b086cbd72 |
comparison
equal
deleted
inserted
replaced
2813:32fd5ea3a6cc | 2816:5526d82388be |
---|---|
26 import com.sun.cri.ci.*; | 26 import com.sun.cri.ci.*; |
27 | 27 |
28 /** | 28 /** |
29 * The {@code NewArray} class is the base of all instructions that allocate arrays. | 29 * The {@code NewArray} class is the base of all instructions that allocate arrays. |
30 */ | 30 */ |
31 public abstract class NewArray extends StateSplit { | 31 public abstract class NewArray extends Value { |
32 | 32 |
33 private static final int INPUT_COUNT = 1; | 33 private static final int INPUT_COUNT = 1; |
34 private static final int INPUT_LENGTH = 0; | 34 private static final int INPUT_LENGTH = 0; |
35 | 35 |
36 private static final int SUCCESSOR_COUNT = 0; | 36 private static final int SUCCESSOR_COUNT = 0; |
67 NewArray(Value length, int inputCount, int successorCount, Graph graph) { | 67 NewArray(Value length, int inputCount, int successorCount, Graph graph) { |
68 super(CiKind.Object, inputCount + INPUT_COUNT, successorCount + SUCCESSOR_COUNT, graph); | 68 super(CiKind.Object, inputCount + INPUT_COUNT, successorCount + SUCCESSOR_COUNT, graph); |
69 setFlag(Flag.NonNull); | 69 setFlag(Flag.NonNull); |
70 setLength(length); | 70 setLength(length); |
71 } | 71 } |
72 | |
73 @Override | |
74 public boolean needsStateAfter() { | |
75 return false; | |
76 } | |
77 } | 72 } |