comparison graal/GraalCompiler/src/com/sun/c1x/ir/NewTypeArray.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 NewTypeArray} class definition. 32 * The {@code NewTypeArray} class definition.
32 *
33 * @author Ben L. Titzer
34 */ 33 */
35 public final class NewTypeArray extends NewArray { 34 public final class NewTypeArray extends NewArray {
36 35
36 private static final int INPUT_COUNT = 0;
37 private static final int SUCCESSOR_COUNT = 0;
38
37 final RiType elementType; 39 final RiType elementType;
38 40
39 public NewTypeArray(Value length, RiType elementType, FrameState stateBefore) { 41 public NewTypeArray(Value length, RiType elementType, FrameState stateBefore, Graph graph) {
40 super(length, stateBefore); 42 super(length, stateBefore, INPUT_COUNT, SUCCESSOR_COUNT, graph);
41 this.elementType = elementType; 43 this.elementType = elementType;
42 } 44 }
43 45
44 public CiKind elementKind() { 46 public CiKind elementKind() {
45 return elementType.kind(); 47 return elementType.kind();