Mercurial > hg > truffle
comparison graal/GraalCompiler/src/com/sun/c1x/ir/StoreIndexed.java @ 2592:fec99fc30af1
checkstyle fixes, updated AccessArray + subclasses
author | Lukas Stadler <lukas.stadler@jku.at> |
---|---|
date | Thu, 05 May 2011 15:23:07 +0200 |
parents | e1b3db8031ee |
children | 092e628ddd5d |
comparison
equal
deleted
inserted
replaced
2587:51ebe5f0516f | 2592:fec99fc30af1 |
---|---|
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 | 29 |
29 /** | 30 /** |
30 * The {@code StoreIndexed} instruction represents a write to an array element. | 31 * The {@code StoreIndexed} instruction represents a write to an array element. |
31 * | 32 * |
32 * @author Ben L. Titzer | 33 * @author Ben L. Titzer |
33 */ | 34 */ |
34 public final class StoreIndexed extends AccessIndexed { | 35 public final class StoreIndexed extends AccessIndexed { |
36 | |
37 private static final int INPUT_COUNT = 0; | |
38 private static final int SUCCESSOR_COUNT = 0; | |
35 | 39 |
36 /** | 40 /** |
37 * The value to store. | 41 * The value to store. |
38 */ | 42 */ |
39 Value value; | 43 Value value; |
44 * @param index the instruction producing the index | 48 * @param index the instruction producing the index |
45 * @param length the instruction producing the length | 49 * @param length the instruction producing the length |
46 * @param elementType the element type | 50 * @param elementType the element type |
47 * @param value the value to store into the array | 51 * @param value the value to store into the array |
48 * @param stateBefore the state before executing this instruction | 52 * @param stateBefore the state before executing this instruction |
53 * @param graph | |
49 */ | 54 */ |
50 public StoreIndexed(Value array, Value index, Value length, CiKind elementType, Value value, FrameState stateBefore) { | 55 public StoreIndexed(Value array, Value index, Value length, CiKind elementType, Value value, FrameState stateBefore, Graph graph) { |
51 super(CiKind.Void, array, index, length, elementType, stateBefore); | 56 super(CiKind.Void, array, index, length, elementType, stateBefore, INPUT_COUNT, SUCCESSOR_COUNT, graph); |
52 this.value = value; | 57 this.value = value; |
53 } | 58 } |
54 | 59 |
55 /** | 60 /** |
56 * Gets the instruction that produces the value that is to be stored into the array. | 61 * Gets the instruction that produces the value that is to be stored into the array. |