Mercurial > hg > graal-jvmci-8
comparison graal/GraalCompiler/src/com/sun/c1x/ir/CheckCast.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 | c3f64b66fc78 |
comparison
equal
deleted
inserted
replaced
2621:dd115f80acf8 | 2622:91d3952f7eb7 |
---|---|
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 import com.sun.cri.ri.*; | 30 import com.sun.cri.ri.*; |
32 | 31 |
33 /** | 32 /** |
43 * @param targetClass the class being cast to | 42 * @param targetClass the class being cast to |
44 * @param object the instruction producing the object | 43 * @param object the instruction producing the object |
45 * @param stateBefore the state before the cast | 44 * @param stateBefore the state before the cast |
46 * @param graph | 45 * @param graph |
47 */ | 46 */ |
48 public CheckCast(RiType targetClass, Value targetClassInstruction, Value object, FrameState stateBefore, Graph graph) { | 47 public CheckCast(RiType targetClass, Value targetClassInstruction, Value object, Graph graph) { |
49 super(targetClass, targetClassInstruction, object, CiKind.Object, stateBefore, INPUT_COUNT, SUCCESSOR_COUNT, graph); | 48 super(targetClass, targetClassInstruction, object, CiKind.Object, INPUT_COUNT, SUCCESSOR_COUNT, graph); |
50 initFlag(Flag.NonNull, object.isNonNull()); | 49 initFlag(Flag.NonNull, object.isNonNull()); |
51 } | 50 } |
52 | 51 |
53 /** | 52 /** |
54 * Gets the declared type of the result of this instruction. | 53 * Gets the declared type of the result of this instruction. |