Mercurial > hg > graal-compiler
comparison graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/nodes/AllocaNode.java @ 19403:7e2c87dae93e
Create static final NodeClass field named TYPE in Node subclasses.
author | Thomas Wuerthinger <thomas.wuerthinger@oracle.com> |
---|---|
date | Mon, 16 Feb 2015 15:43:03 +0100 |
parents | ec0733b5a90a |
children | 61d3cb8e1280 |
comparison
equal
deleted
inserted
replaced
19402:a306749d3e86 | 19403:7e2c87dae93e |
---|---|
25 import java.util.*; | 25 import java.util.*; |
26 | 26 |
27 import com.oracle.graal.api.code.*; | 27 import com.oracle.graal.api.code.*; |
28 import com.oracle.graal.api.meta.*; | 28 import com.oracle.graal.api.meta.*; |
29 import com.oracle.graal.compiler.common.type.*; | 29 import com.oracle.graal.compiler.common.type.*; |
30 import com.oracle.graal.graph.*; | |
30 import com.oracle.graal.nodeinfo.*; | 31 import com.oracle.graal.nodeinfo.*; |
31 import com.oracle.graal.nodes.*; | 32 import com.oracle.graal.nodes.*; |
32 import com.oracle.graal.nodes.spi.*; | 33 import com.oracle.graal.nodes.spi.*; |
33 | 34 |
34 /** | 35 /** |
36 * the entire execution of the associated method. | 37 * the entire execution of the associated method. |
37 */ | 38 */ |
38 @NodeInfo | 39 @NodeInfo |
39 public final class AllocaNode extends FixedWithNextNode implements LIRLowerable { | 40 public final class AllocaNode extends FixedWithNextNode implements LIRLowerable { |
40 | 41 |
42 public static final NodeClass TYPE = NodeClass.get(AllocaNode.class); | |
41 /** | 43 /** |
42 * The number of slots in block. | 44 * The number of slots in block. |
43 */ | 45 */ |
44 protected final int slots; | 46 protected final int slots; |
45 | 47 |
49 * garbage values when processing these slots. | 51 * garbage values when processing these slots. |
50 */ | 52 */ |
51 protected final BitSet objects; | 53 protected final BitSet objects; |
52 | 54 |
53 public AllocaNode(int slots, Kind wordKind, BitSet objects) { | 55 public AllocaNode(int slots, Kind wordKind, BitSet objects) { |
54 super(StampFactory.forKind(wordKind)); | 56 super(TYPE, StampFactory.forKind(wordKind)); |
55 this.slots = slots; | 57 this.slots = slots; |
56 this.objects = objects; | 58 this.objects = objects; |
57 } | 59 } |
58 | 60 |
59 @Override | 61 @Override |