Mercurial > hg > graal-compiler
comparison graal/GraalCompiler/src/com/sun/c1x/gen/LIRGenerator.java @ 2545:bb050fe2901d
Fixed regression wrt write barriers.
author | Thomas Wuerthinger <thomas@wuerthinger.net> |
---|---|
date | Wed, 27 Apr 2011 21:38:22 +0200 |
parents | c58a301eb2d7 |
children | e1b3db8031ee |
comparison
equal
deleted
inserted
replaced
2544:84a2012f8cd1 | 2545:bb050fe2901d |
---|---|
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 instanceof InstanceOf || current instanceof CheckCast;//current.canTrap(); | 1600 return current == null || current.canTrap(); |
1601 } | 1601 } |
1602 | 1602 |
1603 public boolean requiresBoundsCheck() { | 1603 public boolean requiresBoundsCheck() { |
1604 return true; | 1604 return true; |
1605 } | 1605 } |
1606 | 1606 |
1607 public boolean requiresReadBarrier() { | 1607 public boolean requiresReadBarrier() { |
1608 return current == null || current.kind == CiKind.Object; | 1608 return current == null || true; |
1609 } | 1609 } |
1610 | 1610 |
1611 public boolean requiresWriteBarrier() { | 1611 public boolean requiresWriteBarrier() { |
1612 return current == null || current.kind == CiKind.Object; | 1612 return current == null || true; |
1613 } | 1613 } |
1614 | 1614 |
1615 public boolean requiresArrayStoreCheck() { | 1615 public boolean requiresArrayStoreCheck() { |
1616 return true; | 1616 return true; |
1617 } | 1617 } |