Mercurial > hg > graal-jvmci-8
comparison graal/GraalCompiler/src/com/sun/c1x/ir/NewObjectArray.java @ 2600:f1bc67c2d453
new node layout: TypeCheck, RegisterFinalizer, Invoke, NewArray, NullCheck
author | Lukas Stadler <lukas.stadler@jku.at> |
---|---|
date | Thu, 05 May 2011 16:32:20 +0200 |
parents | 16b9a8b5ad39 |
children | 91d3952f7eb7 |
comparison
equal
deleted
inserted
replaced
2596:1c36b17f7ee0 | 2600:f1bc67c2d453 |
---|---|
20 * or visit www.oracle.com if you need additional information or have any | 20 * or visit www.oracle.com if you need additional information or have any |
21 * questions. | 21 * questions. |
22 */ | 22 */ |
23 package com.sun.c1x.ir; | 23 package com.sun.c1x.ir; |
24 | 24 |
25 import com.oracle.graal.graph.*; | |
25 import com.sun.c1x.debug.*; | 26 import com.sun.c1x.debug.*; |
26 import com.sun.c1x.value.*; | 27 import com.sun.c1x.value.*; |
27 import com.sun.cri.ci.*; | 28 import com.sun.cri.ci.*; |
28 import com.sun.cri.ri.*; | 29 import com.sun.cri.ri.*; |
29 | 30 |
30 /** | 31 /** |
31 * The {@code NewObjectArray} instruction represents an allocation of an object array. | 32 * The {@code NewObjectArray} instruction represents an allocation of an object array. |
32 * | |
33 * @author Ben L. Titzer | |
34 */ | 33 */ |
35 public final class NewObjectArray extends NewArray { | 34 public final class NewObjectArray extends NewArray { |
35 | |
36 private static final int INPUT_COUNT = 0; | |
37 private static final int SUCCESSOR_COUNT = 0; | |
36 | 38 |
37 final RiType elementClass; | 39 final RiType elementClass; |
38 | 40 |
39 /** | 41 /** |
40 * Constructs a new NewObjectArray instruction. | 42 * Constructs a new NewObjectArray instruction. |
41 * @param elementClass the class of elements in this array | 43 * @param elementClass the class of elements in this array |
42 * @param length the instruction producing the length of the array | 44 * @param length the instruction producing the length of the array |
43 * @param stateBefore the state before the allocation | 45 * @param stateBefore the state before the allocation |
46 * @param graph | |
44 */ | 47 */ |
45 public NewObjectArray(RiType elementClass, Value length, FrameState stateBefore) { | 48 public NewObjectArray(RiType elementClass, Value length, FrameState stateBefore, Graph graph) { |
46 super(length, stateBefore); | 49 super(length, stateBefore, INPUT_COUNT, SUCCESSOR_COUNT, graph); |
47 this.elementClass = elementClass; | 50 this.elementClass = elementClass; |
48 } | 51 } |
49 | 52 |
50 /** | 53 /** |
51 * Gets the type of the elements of the array. | 54 * Gets the type of the elements of the array. |