Mercurial > hg > graal-jvmci-8
comparison graal/GraalCompiler/src/com/sun/c1x/target/amd64/AMD64LIRGenerator.java @ 2521:2f271a85d104
Removed intrinsic-related instructions
author | Thomas Wuerthinger <thomas@wuerthinger.net> |
---|---|
date | Wed, 27 Apr 2011 16:40:09 +0200 |
parents | f6125fb5bfbc |
children | 0f9eeb15e636 |
comparison
equal
deleted
inserted
replaced
2520:99307021e3f5 | 2521:2f271a85d104 |
---|---|
566 | 566 |
567 @Override | 567 @Override |
568 protected CiValue osrBufferPointer() { | 568 protected CiValue osrBufferPointer() { |
569 return Util.nonFatalUnimplemented(null); | 569 return Util.nonFatalUnimplemented(null); |
570 } | 570 } |
571 | |
572 @Override | |
573 public void visitBoundsCheck(BoundsCheck boundsCheck) { | |
574 Value x = boundsCheck.index(); | |
575 Value y = boundsCheck.length(); | |
576 CiValue left = load(x); | |
577 CiValue right = null; | |
578 if (y.isConstant()) { | |
579 right = makeOperand(y); | |
580 } else { | |
581 right = load(y); | |
582 } | |
583 lir.cmp(boundsCheck.condition.negate(), left, right); | |
584 emitGuard(boundsCheck); | |
585 } | |
586 } | 571 } |