comparison graal/GraalCompiler/src/com/sun/c1x/gen/LIRGenerator.java @ 2712:a0dd2b907806

Removed implicit safepoints.
author Thomas Wuerthinger <thomas@wuerthinger.net>
date Thu, 19 May 2011 13:09:37 +0200
parents 7ed72769d51a
children 95e2aa413d95
comparison
equal deleted inserted replaced
2708:4272b7af2d17 2712:a0dd2b907806
578 @Override 578 @Override
579 public void visitLookupSwitch(LookupSwitch x) { 579 public void visitLookupSwitch(LookupSwitch x) {
580 CiValue tag = load(x.value()); 580 CiValue tag = load(x.value());
581 setNoResult(x); 581 setNoResult(x);
582 582
583 if (x.isSafepoint()) {
584 emitXir(xir.genSafepoint(site(x)), x, stateFor(x), null, false);
585 }
586
587 // move values into phi locations 583 // move values into phi locations
588 moveToPhi(x.stateAfter()); 584 moveToPhi(x.stateAfter());
589 585
590 if (x.numberOfCases() == 0 || x.numberOfCases() < C1XOptions.SequentialSwitchLimit) { 586 if (x.numberOfCases() == 0 || x.numberOfCases() < C1XOptions.SequentialSwitchLimit) {
591 int len = x.numberOfCases(); 587 int len = x.numberOfCases();
836 value.setDestroysRegister(); 832 value.setDestroysRegister();
837 value.loadItem(); 833 value.loadItem();
838 834
839 CiValue tag = value.result(); 835 CiValue tag = value.result();
840 setNoResult(x); 836 setNoResult(x);
841
842 if (x.isSafepoint()) {
843 emitXir(xir.genSafepoint(site(x)), x, stateFor(x), null, false);
844 }
845 837
846 // move values into phi locations 838 // move values into phi locations
847 moveToPhi(x.stateAfter()); 839 moveToPhi(x.stateAfter());
848 840
849 // TODO: tune the defaults for the controls used to determine what kind of translation to use 841 // TODO: tune the defaults for the controls used to determine what kind of translation to use