Mercurial > hg > graal-compiler
comparison graal/GraalCompiler/src/com/sun/c1x/gen/LIRGenerator.java @ 2775:3b73b230b86b
Removed more stateAfter usages.
author | Thomas Wuerthinger <thomas@wuerthinger.net> |
---|---|
date | Tue, 24 May 2011 13:51:32 +0200 |
parents | 93fd92c9f8b0 |
children | 2ac7b30b7290 bda5972a40a5 |
comparison
equal
deleted
inserted
replaced
2774:93fd92c9f8b0 | 2775:3b73b230b86b |
---|---|
597 @Override | 597 @Override |
598 public void visitReturn(Return x) { | 598 public void visitReturn(Return x) { |
599 if (x.kind.isVoid()) { | 599 if (x.kind.isVoid()) { |
600 XirSnippet epilogue = xir.genEpilogue(site(x), compilation.method); | 600 XirSnippet epilogue = xir.genEpilogue(site(x), compilation.method); |
601 if (epilogue != null) { | 601 if (epilogue != null) { |
602 emitXir(epilogue, x, stateFor(x), compilation.method, false); | 602 emitXir(epilogue, x, null, compilation.method, false); |
603 lir.returnOp(IllegalValue); | 603 lir.returnOp(IllegalValue); |
604 } | 604 } |
605 } else { | 605 } else { |
606 CiValue operand = resultOperandFor(x.kind); | 606 CiValue operand = resultOperandFor(x.kind); |
607 CiValue result = force(x.result(), operand); | 607 CiValue result = force(x.result(), operand); |
608 XirSnippet epilogue = xir.genEpilogue(site(x), compilation.method); | 608 XirSnippet epilogue = xir.genEpilogue(site(x), compilation.method); |
609 if (epilogue != null) { | 609 if (epilogue != null) { |
610 emitXir(epilogue, x, stateFor(x, x.stateAfter()), compilation.method, false); | 610 emitXir(epilogue, x, null, compilation.method, false); |
611 lir.returnOp(result); | 611 lir.returnOp(result); |
612 } | 612 } |
613 } | 613 } |
614 setNoResult(x); | 614 setNoResult(x); |
615 } | 615 } |