Mercurial > hg > truffle
changeset 2545:bb050fe2901d
Fixed regression wrt write barriers.
author | Thomas Wuerthinger <thomas@wuerthinger.net> |
---|---|
date | Wed, 27 Apr 2011 21:38:22 +0200 |
parents | 84a2012f8cd1 |
children | e1b3db8031ee |
files | graal/GraalCompiler/src/com/sun/c1x/gen/LIRGenerator.java |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/graal/GraalCompiler/src/com/sun/c1x/gen/LIRGenerator.java Wed Apr 27 21:29:17 2011 +0200 +++ b/graal/GraalCompiler/src/com/sun/c1x/gen/LIRGenerator.java Wed Apr 27 21:38:22 2011 +0200 @@ -1597,7 +1597,7 @@ } public boolean requiresNullCheck() { - return current == null || current instanceof InstanceOf || current instanceof CheckCast;//current.canTrap(); + return current == null || current.canTrap(); } public boolean requiresBoundsCheck() { @@ -1605,11 +1605,11 @@ } public boolean requiresReadBarrier() { - return current == null || current.kind == CiKind.Object; + return current == null || true; } public boolean requiresWriteBarrier() { - return current == null || current.kind == CiKind.Object; + return current == null || true; } public boolean requiresArrayStoreCheck() {