Mercurial > hg > truffle
comparison graal/com.oracle.graal.lir/src/com/oracle/graal/lir/framemap/FrameMapBuilderImpl.java @ 21543:93c50cefb9e8
moved GraalInternalError to com.oracle.jvmci.common and renamed it to JVMCIError (JBS:GRAAL-53)
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Mon, 25 May 2015 23:30:34 +0200 |
parents | 4d70d150944f |
children | b1530a6cce8c |
comparison
equal
deleted
inserted
replaced
21542:543957c1c6a6 | 21543:93c50cefb9e8 |
---|---|
26 | 26 |
27 import java.util.*; | 27 import java.util.*; |
28 | 28 |
29 import com.oracle.graal.api.code.*; | 29 import com.oracle.graal.api.code.*; |
30 import com.oracle.graal.api.meta.*; | 30 import com.oracle.graal.api.meta.*; |
31 import com.oracle.graal.compiler.common.*; | |
32 import com.oracle.graal.compiler.common.cfg.*; | 31 import com.oracle.graal.compiler.common.cfg.*; |
33 import com.oracle.graal.debug.*; | 32 import com.oracle.graal.debug.*; |
34 import com.oracle.graal.debug.Debug.Scope; | 33 import com.oracle.graal.debug.Debug.Scope; |
35 import com.oracle.graal.lir.*; | 34 import com.oracle.graal.lir.*; |
36 import com.oracle.graal.lir.LIRInstruction.OperandFlag; | 35 import com.oracle.graal.lir.LIRInstruction.OperandFlag; |
37 import com.oracle.graal.lir.LIRInstruction.OperandMode; | 36 import com.oracle.graal.lir.LIRInstruction.OperandMode; |
38 import com.oracle.graal.lir.gen.*; | 37 import com.oracle.graal.lir.gen.*; |
39 import com.oracle.graal.lir.stackslotalloc.*; | 38 import com.oracle.graal.lir.stackslotalloc.*; |
39 import com.oracle.jvmci.common.*; | |
40 | 40 |
41 /** | 41 /** |
42 * A FrameMapBuilder that records allocation. | 42 * A FrameMapBuilder that records allocation. |
43 */ | 43 */ |
44 public class FrameMapBuilderImpl implements FrameMapBuilderTool { | 44 public class FrameMapBuilderImpl implements FrameMapBuilderTool { |
69 public VirtualStackSlot allocateStackSlots(int slots, BitSet objects, List<VirtualStackSlot> outObjectStackSlots) { | 69 public VirtualStackSlot allocateStackSlots(int slots, BitSet objects, List<VirtualStackSlot> outObjectStackSlots) { |
70 if (slots == 0) { | 70 if (slots == 0) { |
71 return null; | 71 return null; |
72 } | 72 } |
73 if (outObjectStackSlots != null) { | 73 if (outObjectStackSlots != null) { |
74 throw GraalInternalError.unimplemented(); | 74 throw JVMCIError.unimplemented(); |
75 } | 75 } |
76 VirtualStackSlotRange slot = new VirtualStackSlotRange(numStackSlots++, slots, objects); | 76 VirtualStackSlotRange slot = new VirtualStackSlotRange(numStackSlots++, slots, objects); |
77 stackSlots.add(slot); | 77 stackSlots.add(slot); |
78 return slot; | 78 return slot; |
79 } | 79 } |