Mercurial > hg > truffle
comparison graal/GraalCompiler/src/com/sun/c1x/ir/ArrayLength.java @ 2628:569228710be8
More FrameState work
author | Gilles Duboscq <gilles.duboscq@oracle.com> |
---|---|
date | Tue, 10 May 2011 16:49:50 +0200 |
parents | 91d3952f7eb7 |
children | 4a6518c4d17d |
comparison
equal
deleted
inserted
replaced
2623:b129b7da1397 | 2628:569228710be8 |
---|---|
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.util.*; | 27 import com.sun.c1x.util.*; |
28 import com.sun.c1x.value.*; | |
29 import com.sun.cri.bytecode.*; | 28 import com.sun.cri.bytecode.*; |
30 import com.sun.cri.ci.*; | 29 import com.sun.cri.ci.*; |
31 | 30 |
32 /** | 31 /** |
33 * The {@code ArrayLength} instruction gets the length of an array. | 32 * The {@code ArrayLength} instruction gets the length of an array. |
42 /** | 41 /** |
43 * Constructs a new ArrayLength instruction. | 42 * Constructs a new ArrayLength instruction. |
44 * @param array the instruction producing the array | 43 * @param array the instruction producing the array |
45 * @param newFrameState the state after executing this instruction | 44 * @param newFrameState the state after executing this instruction |
46 */ | 45 */ |
47 public ArrayLength(Value array, FrameState stateAfter, Graph graph) { | 46 public ArrayLength(Value array, Graph graph) { |
48 super(CiKind.Int, array, stateAfter, INPUT_COUNT, SUCCESSOR_COUNT, graph); | 47 super(CiKind.Int, array, INPUT_COUNT, SUCCESSOR_COUNT, graph); |
49 } | 48 } |
50 | 49 |
51 @Override | 50 @Override |
52 public void accept(ValueVisitor v) { | 51 public void accept(ValueVisitor v) { |
53 v.visitArrayLength(this); | 52 v.visitArrayLength(this); |