Mercurial > hg > truffle
comparison graal/com.oracle.graal.lir/src/com/oracle/graal/lir/gen/LIRGenerator.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 | 565d7dbae77c |
children | b1530a6cce8c |
comparison
equal
deleted
inserted
replaced
21542:543957c1c6a6 | 21543:93c50cefb9e8 |
---|---|
28 import java.util.*; | 28 import java.util.*; |
29 | 29 |
30 import com.oracle.graal.api.code.*; | 30 import com.oracle.graal.api.code.*; |
31 import com.oracle.graal.api.meta.*; | 31 import com.oracle.graal.api.meta.*; |
32 import com.oracle.graal.asm.*; | 32 import com.oracle.graal.asm.*; |
33 import com.oracle.graal.compiler.common.*; | |
34 import com.oracle.graal.compiler.common.calc.*; | 33 import com.oracle.graal.compiler.common.calc.*; |
35 import com.oracle.graal.compiler.common.cfg.*; | 34 import com.oracle.graal.compiler.common.cfg.*; |
36 import com.oracle.graal.compiler.common.spi.*; | 35 import com.oracle.graal.compiler.common.spi.*; |
37 import com.oracle.graal.compiler.common.type.*; | 36 import com.oracle.graal.compiler.common.type.*; |
38 import com.oracle.graal.debug.*; | 37 import com.oracle.graal.debug.*; |
39 import com.oracle.graal.lir.*; | 38 import com.oracle.graal.lir.*; |
40 import com.oracle.graal.lir.StandardOp.BlockEndOp; | 39 import com.oracle.graal.lir.StandardOp.BlockEndOp; |
41 import com.oracle.graal.lir.StandardOp.LabelOp; | 40 import com.oracle.graal.lir.StandardOp.LabelOp; |
42 import com.oracle.graal.options.*; | 41 import com.oracle.graal.options.*; |
42 import com.oracle.jvmci.common.*; | |
43 | 43 |
44 /** | 44 /** |
45 * This class traverses the HIR instructions and generates LIR instructions from them. | 45 * This class traverses the HIR instructions and generates LIR instructions from them. |
46 */ | 46 */ |
47 public abstract class LIRGenerator implements LIRGeneratorTool { | 47 public abstract class LIRGenerator implements LIRGeneratorTool { |
277 if (isRegister(value)) { | 277 if (isRegister(value)) { |
278 return asRegister(value).asValue(stackKind); | 278 return asRegister(value).asValue(stackKind); |
279 } else if (isStackSlot(value)) { | 279 } else if (isStackSlot(value)) { |
280 return StackSlot.get(stackKind, asStackSlot(value).getRawOffset(), asStackSlot(value).getRawAddFrameSize()); | 280 return StackSlot.get(stackKind, asStackSlot(value).getRawOffset(), asStackSlot(value).getRawAddFrameSize()); |
281 } else { | 281 } else { |
282 throw GraalInternalError.shouldNotReachHere(); | 282 throw JVMCIError.shouldNotReachHere(); |
283 } | 283 } |
284 } | 284 } |
285 return value; | 285 return value; |
286 } | 286 } |
287 | 287 |
411 public void emitBlackhole(Value operand) { | 411 public void emitBlackhole(Value operand) { |
412 append(new StandardOp.BlackholeOp(operand)); | 412 append(new StandardOp.BlackholeOp(operand)); |
413 } | 413 } |
414 | 414 |
415 public LIRInstruction createBenchmarkCounter(String name, String group, Value increment) { | 415 public LIRInstruction createBenchmarkCounter(String name, String group, Value increment) { |
416 throw GraalInternalError.unimplemented(); | 416 throw JVMCIError.unimplemented(); |
417 } | 417 } |
418 | 418 |
419 public LIRInstruction createMultiBenchmarkCounter(String[] names, String[] groups, Value[] increments) { | 419 public LIRInstruction createMultiBenchmarkCounter(String[] names, String[] groups, Value[] increments) { |
420 throw GraalInternalError.unimplemented(); | 420 throw JVMCIError.unimplemented(); |
421 } | 421 } |
422 } | 422 } |