Mercurial > hg > truffle
comparison graal/GraalCompiler/src/com/sun/c1x/ir/NewObjectArray.java @ 2622:91d3952f7eb7
Framestate work : using stateAFter and reducting the number of nodes with framestates. Intermediate state (does not pass tests)
author | Gilles Duboscq <gilles.duboscq@oracle.com> |
---|---|
date | Tue, 10 May 2011 12:37:46 +0200 |
parents | f1bc67c2d453 |
children | bd17ac598c6e |
comparison
equal
deleted
inserted
replaced
2621:dd115f80acf8 | 2622:91d3952f7eb7 |
---|---|
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.oracle.graal.graph.*; |
26 import com.sun.c1x.debug.*; | 26 import com.sun.c1x.debug.*; |
27 import com.sun.c1x.value.*; | |
28 import com.sun.cri.ci.*; | 27 import com.sun.cri.ci.*; |
29 import com.sun.cri.ri.*; | 28 import com.sun.cri.ri.*; |
30 | 29 |
31 /** | 30 /** |
32 * The {@code NewObjectArray} instruction represents an allocation of an object array. | 31 * The {@code NewObjectArray} instruction represents an allocation of an object array. |
43 * @param elementClass the class of elements in this array | 42 * @param elementClass the class of elements in this array |
44 * @param length the instruction producing the length of the array | 43 * @param length the instruction producing the length of the array |
45 * @param stateBefore the state before the allocation | 44 * @param stateBefore the state before the allocation |
46 * @param graph | 45 * @param graph |
47 */ | 46 */ |
48 public NewObjectArray(RiType elementClass, Value length, FrameState stateBefore, Graph graph) { | 47 public NewObjectArray(RiType elementClass, Value length, Graph graph) { |
49 super(length, stateBefore, INPUT_COUNT, SUCCESSOR_COUNT, graph); | 48 super(length, INPUT_COUNT, SUCCESSOR_COUNT, graph); |
50 this.elementClass = elementClass; | 49 this.elementClass = elementClass; |
51 } | 50 } |
52 | 51 |
53 /** | 52 /** |
54 * Gets the type of the elements of the array. | 53 * Gets the type of the elements of the array. |