Mercurial > hg > graal-compiler
comparison graal/GraalCompiler/src/com/sun/c1x/lir/LIRAssembler.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 | 16b9a8b5ad39 |
children | 9f557e940180 |
comparison
equal
deleted
inserted
replaced
2621:dd115f80acf8 | 2622:91d3952f7eb7 |
---|---|
29 import com.sun.c1x.debug.*; | 29 import com.sun.c1x.debug.*; |
30 import com.sun.c1x.gen.*; | 30 import com.sun.c1x.gen.*; |
31 import com.sun.c1x.ir.*; | 31 import com.sun.c1x.ir.*; |
32 import com.sun.c1x.lir.FrameMap.StackBlock; | 32 import com.sun.c1x.lir.FrameMap.StackBlock; |
33 import com.sun.c1x.util.*; | 33 import com.sun.c1x.util.*; |
34 import com.sun.c1x.value.*; | |
35 import com.sun.cri.ci.*; | 34 import com.sun.cri.ci.*; |
36 import com.sun.cri.ci.CiTargetMethod.Mark; | 35 import com.sun.cri.ci.CiTargetMethod.Mark; |
37 import com.sun.cri.ri.*; | 36 import com.sun.cri.ri.*; |
38 import com.sun.cri.xir.CiXirAssembler.XirMark; | 37 import com.sun.cri.xir.CiXirAssembler.XirMark; |
39 | 38 |
211 } | 210 } |
212 | 211 |
213 return true; | 212 return true; |
214 } | 213 } |
215 | 214 |
216 static FrameState stateBefore(Value ins) { | |
217 if (ins instanceof Instruction) { | |
218 return ((Instruction) ins).stateBefore(); | |
219 } | |
220 return null; | |
221 } | |
222 | |
223 void emitCall(LIRCall op) { | 215 void emitCall(LIRCall op) { |
224 verifyOopMap(op.info); | 216 verifyOopMap(op.info); |
225 | 217 |
226 switch (op.code) { | 218 switch (op.code) { |
227 case DirectCall: | 219 case DirectCall: |