Mercurial > hg > truffle
diff 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 |
line wrap: on
line diff
--- a/graal/GraalCompiler/src/com/sun/c1x/ir/NewObjectArray.java Thu May 05 16:07:00 2011 +0200 +++ b/graal/GraalCompiler/src/com/sun/c1x/ir/NewObjectArray.java Thu May 05 16:32:20 2011 +0200 @@ -22,6 +22,7 @@ */ package com.sun.c1x.ir; +import com.oracle.graal.graph.*; import com.sun.c1x.debug.*; import com.sun.c1x.value.*; import com.sun.cri.ci.*; @@ -29,11 +30,12 @@ /** * The {@code NewObjectArray} instruction represents an allocation of an object array. - * - * @author Ben L. Titzer */ public final class NewObjectArray extends NewArray { + private static final int INPUT_COUNT = 0; + private static final int SUCCESSOR_COUNT = 0; + final RiType elementClass; /** @@ -41,9 +43,10 @@ * @param elementClass the class of elements in this array * @param length the instruction producing the length of the array * @param stateBefore the state before the allocation + * @param graph */ - public NewObjectArray(RiType elementClass, Value length, FrameState stateBefore) { - super(length, stateBefore); + public NewObjectArray(RiType elementClass, Value length, FrameState stateBefore, Graph graph) { + super(length, stateBefore, INPUT_COUNT, SUCCESSOR_COUNT, graph); this.elementClass = elementClass; }