Mercurial > hg > graal-compiler
comparison graal/GraalCompiler/src/com/sun/c1x/ir/ResolveClass.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 | c58a301eb2d7 |
children | 91d3952f7eb7 |
comparison
equal
deleted
inserted
replaced
2596:1c36b17f7ee0 | 2600:f1bc67c2d453 |
---|---|
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 import com.sun.cri.ri.*; | 29 import com.sun.cri.ri.*; |
29 | 30 |
30 /** | 31 /** |
31 * An instruction that represents the runtime resolution of a Java class object. For example, an | 32 * An instruction that represents the runtime resolution of a Java class object. For example, an |
32 * ldc of a class constant that is unresolved. | 33 * ldc of a class constant that is unresolved. |
33 * | |
34 * @author Ben L. Titzer | |
35 * @author Thomas Wuerthinger | |
36 */ | 34 */ |
37 public final class ResolveClass extends StateSplit { | 35 public final class ResolveClass extends StateSplit { |
36 | |
37 private static final int INPUT_COUNT = 0; | |
38 private static final int SUCCESSOR_COUNT = 0; | |
38 | 39 |
39 public final RiType type; | 40 public final RiType type; |
40 public final RiType.Representation portion; | 41 public final RiType.Representation portion; |
41 | 42 |
42 public ResolveClass(RiType type, RiType.Representation r, FrameState stateBefore) { | 43 public ResolveClass(RiType type, RiType.Representation r, FrameState stateBefore, Graph graph) { |
43 super(type.getRepresentationKind(r), stateBefore); | 44 super(type.getRepresentationKind(r), stateBefore, INPUT_COUNT, SUCCESSOR_COUNT, graph); |
44 this.portion = r; | 45 this.portion = r; |
45 this.type = type; | 46 this.type = type; |
46 setFlag(Flag.NonNull); | 47 setFlag(Flag.NonNull); |
47 } | 48 } |
48 | 49 |