comparison graal/GraalCompiler/src/com/sun/c1x/gen/LIRGenerator.java @ 2543:c58a301eb2d7

Clean up on canTrap.
author Thomas Wuerthinger <thomas@wuerthinger.net>
date Wed, 27 Apr 2011 21:22:10 +0200
parents 0f9eeb15e636
children bb050fe2901d
comparison
equal deleted inserted replaced
2541:0f9eeb15e636 2543:c58a301eb2d7
1595 } 1595 }
1596 return false; 1596 return false;
1597 } 1597 }
1598 1598
1599 public boolean requiresNullCheck() { 1599 public boolean requiresNullCheck() {
1600 return current == null || current.canTrap(); 1600 return current == null || current instanceof InstanceOf || current instanceof CheckCast;//current.canTrap();
1601 } 1601 }
1602 1602
1603 public boolean requiresBoundsCheck() { 1603 public boolean requiresBoundsCheck() {
1604 return true; 1604 return true;
1605 } 1605 }