# HG changeset patch # User Benoit Daloze # Date 1446739911 -3600 # Node ID 522155ade3bffd10f8d3c714b849973fb6a4d29b # Parent dbbcd8eb5daeb44f6e8bd6df0763f404ea65587f SL write property node: fixed DSL bug diff -r dbbcd8eb5dae -r 522155ade3bf truffle/com.oracle.truffle.sl/src/com/oracle/truffle/sl/nodes/access/SLWritePropertyCacheNode.java --- a/truffle/com.oracle.truffle.sl/src/com/oracle/truffle/sl/nodes/access/SLWritePropertyCacheNode.java Thu Nov 05 17:05:48 2015 +0100 +++ b/truffle/com.oracle.truffle.sl/src/com/oracle/truffle/sl/nodes/access/SLWritePropertyCacheNode.java Thu Nov 05 17:11:51 2015 +0100 @@ -84,7 +84,7 @@ } } - @Specialization(guards = {"existing == null", "shapeBefore.check(receiver)", "nonNull(shapeAfter)", "canSet(newLocation, receiver, value)"}, assumptions = {"shapeBefore.getValidAssumption()", + @Specialization(guards = {"existing == null", "shapeBefore.check(receiver)", "canSet(newLocation, receiver, value)"}, assumptions = {"shapeBefore.getValidAssumption()", "shapeAfter.getValidAssumption()"}, limit = "CACHE_LIMIT") public void writeNewPropertyCached(DynamicObject receiver, Object value, // @Cached("lookupLocation(receiver, value)") @SuppressWarnings("unused") Location existing, // @@ -140,7 +140,4 @@ return location.canSet(receiver, value); } - protected static boolean nonNull(Object value) { - return value != null; - } }