Mercurial > hg > graal-compiler
comparison graal/GraalCompiler/src/com/sun/c1x/graph/GraphBuilder.java @ 2537:4a016ff4d2df
Clean up on LIRGenerator and related.
author | Thomas Wuerthinger <thomas@wuerthinger.net> |
---|---|
date | Wed, 27 Apr 2011 19:53:46 +0200 |
parents | 4af63190ee3d |
children | e1ba5a93e997 |
comparison
equal
deleted
inserted
replaced
2536:099f2a12788a | 2537:4a016ff4d2df |
---|---|
634 void ifNode(Value x, Condition cond, Value y, FrameState stateBefore) { | 634 void ifNode(Value x, Condition cond, Value y, FrameState stateBefore) { |
635 BlockBegin tsucc = blockAt(stream().readBranchDest()); | 635 BlockBegin tsucc = blockAt(stream().readBranchDest()); |
636 BlockBegin fsucc = blockAt(stream().nextBCI()); | 636 BlockBegin fsucc = blockAt(stream().nextBCI()); |
637 int bci = stream().currentBCI(); | 637 int bci = stream().currentBCI(); |
638 boolean isSafepoint = !scopeData.noSafepoints() && tsucc.bci() <= bci || fsucc.bci() <= bci; | 638 boolean isSafepoint = !scopeData.noSafepoints() && tsucc.bci() <= bci || fsucc.bci() <= bci; |
639 append(new If(x, cond, false, y, tsucc, fsucc, isSafepoint ? stateBefore : null, isSafepoint)); | 639 append(new If(x, cond, y, tsucc, fsucc, isSafepoint ? stateBefore : null, isSafepoint)); |
640 } | 640 } |
641 | 641 |
642 void genIfZero(Condition cond) { | 642 void genIfZero(Condition cond) { |
643 Value y = appendConstant(CiConstant.INT_0); | 643 Value y = appendConstant(CiConstant.INT_0); |
644 FrameState stateBefore = curState.immutableCopy(bci()); | 644 FrameState stateBefore = curState.immutableCopy(bci()); |