Mercurial > hg > graal-compiler
comparison graal/com.oracle.graal.compiler/src/com/oracle/graal/compiler/target/amd64/AMD64LIRGenerator.java @ 5541:b4c406861c33
More renamings to drop Ri* prefix completely. Deleted graph.BitMap class and replaced with java.util.BitSet.
author | Thomas Wuerthinger <thomas.wuerthinger@oracle.com> |
---|---|
date | Sat, 09 Jun 2012 16:52:12 +0200 |
parents | a891c53a295b |
children | 25d561cfdcfa |
comparison
equal
deleted
inserted
replaced
5540:a891c53a295b | 5541:b4c406861c33 |
---|---|
96 // TODO (cwimmer) implement XCHG operation for LIR | 96 // TODO (cwimmer) implement XCHG operation for LIR |
97 return null; | 97 return null; |
98 } | 98 } |
99 } | 99 } |
100 | 100 |
101 public AMD64LIRGenerator(Graph graph, RiRuntime runtime, CiTarget target, FrameMap frameMap, RiResolvedMethod method, LIR lir, RiXirGenerator xir, CiAssumptions assumptions) { | 101 public AMD64LIRGenerator(Graph graph, CodeCacheProvider runtime, CiTarget target, FrameMap frameMap, ResolvedJavaMethod method, LIR lir, RiXirGenerator xir, CiAssumptions assumptions) { |
102 super(graph, runtime, target, frameMap, method, lir, xir, assumptions); | 102 super(graph, runtime, target, frameMap, method, lir, xir, assumptions); |
103 lir.spillMoveFactory = new AMD64SpillMoveFactory(); | 103 lir.spillMoveFactory = new AMD64SpillMoveFactory(); |
104 } | 104 } |
105 | 105 |
106 @Override | 106 @Override |
517 return result; | 517 return result; |
518 } | 518 } |
519 | 519 |
520 | 520 |
521 @Override | 521 @Override |
522 public void emitDeoptimizeOnOverflow(CiDeoptAction action, RiDeoptReason reason, Object deoptInfo) { | 522 public void emitDeoptimizeOnOverflow(CiDeoptAction action, DeoptimizationReason reason, Object deoptInfo) { |
523 LIRDebugInfo info = state(); | 523 LIRDebugInfo info = state(); |
524 LabelRef stubEntry = createDeoptStub(action, reason, info, deoptInfo); | 524 LabelRef stubEntry = createDeoptStub(action, reason, info, deoptInfo); |
525 append(new BranchOp(ConditionFlag.overflow, stubEntry, info)); | 525 append(new BranchOp(ConditionFlag.overflow, stubEntry, info)); |
526 } | 526 } |
527 | 527 |
528 | 528 |
529 @Override | 529 @Override |
530 public void emitDeoptimize(CiDeoptAction action, RiDeoptReason reason, Object deoptInfo, long leafGraphId) { | 530 public void emitDeoptimize(CiDeoptAction action, DeoptimizationReason reason, Object deoptInfo, long leafGraphId) { |
531 LIRDebugInfo info = state(leafGraphId); | 531 LIRDebugInfo info = state(leafGraphId); |
532 LabelRef stubEntry = createDeoptStub(action, reason, info, deoptInfo); | 532 LabelRef stubEntry = createDeoptStub(action, reason, info, deoptInfo); |
533 append(new JumpOp(stubEntry, info)); | 533 append(new JumpOp(stubEntry, info)); |
534 } | 534 } |
535 | 535 |
568 Variable tmp = emitMove(index); | 568 Variable tmp = emitMove(index); |
569 append(new TableSwitchOp(lowKey, defaultTarget, targets, tmp, newVariable(target.wordKind))); | 569 append(new TableSwitchOp(lowKey, defaultTarget, targets, tmp, newVariable(target.wordKind))); |
570 } | 570 } |
571 | 571 |
572 @Override | 572 @Override |
573 protected LabelRef createDeoptStub(CiDeoptAction action, RiDeoptReason reason, LIRDebugInfo info, Object deoptInfo) { | 573 protected LabelRef createDeoptStub(CiDeoptAction action, DeoptimizationReason reason, LIRDebugInfo info, Object deoptInfo) { |
574 assert info.topFrame.bci >= 0 : "invalid bci for deopt framestate"; | 574 assert info.topFrame.bci >= 0 : "invalid bci for deopt framestate"; |
575 AMD64DeoptimizationStub stub = new AMD64DeoptimizationStub(action, reason, info, deoptInfo); | 575 AMD64DeoptimizationStub stub = new AMD64DeoptimizationStub(action, reason, info, deoptInfo); |
576 lir.stubs.add(stub); | 576 lir.stubs.add(stub); |
577 return LabelRef.forLabel(stub.label); | 577 return LabelRef.forLabel(stub.label); |
578 } | 578 } |