Mercurial > hg > truffle
comparison graal/GraalCompiler/src/com/sun/c1x/gen/LIRGenerator.java @ 2630:c93adece95d2
Small clean up.
author | Thomas Wuerthinger <thomas@wuerthinger.net> |
---|---|
date | Tue, 10 May 2011 16:47:49 +0200 |
parents | b129b7da1397 |
children | 776e026f2e15 |
comparison
equal
deleted
inserted
replaced
2623:b129b7da1397 | 2630:c93adece95d2 |
---|---|
266 return x.operand(); | 266 return x.operand(); |
267 } | 267 } |
268 | 268 |
269 @Override | 269 @Override |
270 public void visitBase(Base x) { | 270 public void visitBase(Base x) { |
271 // emit phi-instruction move after safepoint since this simplifies | |
272 // describing the state at the safepoint. | |
273 //moveToPhi(); | |
274 | |
275 // all blocks with a successor must end with an unconditional jump | 271 // all blocks with a successor must end with an unconditional jump |
276 // to the successor even if they are consecutive | 272 // to the successor even if they are consecutive |
277 lir.jump(x.defaultSuccessor()); | 273 lir.jump(x.defaultSuccessor()); |
278 } | 274 } |
279 | 275 |
1584 | 1580 |
1585 protected abstract void genCmpMemInt(Condition condition, CiValue base, int disp, int c, LIRDebugInfo info); | 1581 protected abstract void genCmpMemInt(Condition condition, CiValue base, int disp, int c, LIRDebugInfo info); |
1586 | 1582 |
1587 protected abstract void genCmpRegMem(Condition condition, CiValue reg, CiValue base, int disp, CiKind kind, LIRDebugInfo info); | 1583 protected abstract void genCmpRegMem(Condition condition, CiValue reg, CiValue base, int disp, CiKind kind, LIRDebugInfo info); |
1588 | 1584 |
1589 protected abstract void genGetObjectUnsafe(CiValue dest, CiValue src, CiValue offset, CiKind kind, boolean isVolatile); | |
1590 | |
1591 protected abstract void genPutObjectUnsafe(CiValue src, CiValue offset, CiValue data, CiKind kind, boolean isVolatile); | |
1592 | |
1593 /** | 1585 /** |
1594 * Implements site-specific information for the XIR interface. | 1586 * Implements site-specific information for the XIR interface. |
1595 */ | 1587 */ |
1596 static class XirSupport implements XirSite { | 1588 static class XirSupport implements XirSite { |
1597 Value current; | 1589 Value current; |
1656 boolean isStatic = Modifier.isStatic(method.accessFlags()); | 1648 boolean isStatic = Modifier.isStatic(method.accessFlags()); |
1657 Invoke invoke = new Invoke(isStatic ? Bytecodes.INVOKESTATIC : Bytecodes.INVOKESPECIAL, method.signature().returnKind(), args, method, null, stateBefore, null); | 1649 Invoke invoke = new Invoke(isStatic ? Bytecodes.INVOKESTATIC : Bytecodes.INVOKESPECIAL, method.signature().returnKind(), args, method, null, stateBefore, null); |
1658 visitInvoke(invoke); | 1650 visitInvoke(invoke); |
1659 return invoke.operand(); | 1651 return invoke.operand(); |
1660 } | 1652 } |
1653 | |
1654 | |
1655 @Override | |
1656 public void visitFrameState(FrameState i) { | |
1657 // nothing to do for now | |
1658 } | |
1661 } | 1659 } |