Skip to content

Commit 0ddd814

Browse files
woesssteve-s
authored andcommitted
Remove unnecessary cached property assumption.
1 parent 0ade565 commit 0ddd814

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/nodes/attributes/ReadAttributeFromPythonObjectNode.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@
4545
import com.oracle.graal.python.builtins.objects.object.PythonObject;
4646
import com.oracle.graal.python.builtins.objects.type.PythonManagedClass;
4747
import com.oracle.graal.python.nodes.PNodeWithContext;
48-
import com.oracle.truffle.api.Assumption;
4948
import com.oracle.truffle.api.dsl.Cached;
5049
import com.oracle.truffle.api.dsl.GenerateInline;
5150
import com.oracle.truffle.api.dsl.GenerateUncached;
@@ -129,7 +128,6 @@ protected static Object readFinalAttr(DynamicObject dynamicObject, TruffleString
129128
@Cached(value = "dynamicObject", weak = true) DynamicObject cachedObject,
130129
@Cached("dynamicObject.getShape()") Shape cachedShape,
131130
@Cached("getLocationOrNull(cachedShape.getProperty(cachedKey))") Location loc,
132-
@Cached("dynamicObject.getShape().getPropertyAssumption(key)") Assumption propertyAssumption,
133131
@Cached(value = "getAttribute(dynamicObject, key, defaultValue)", weak = true) Object value) {
134132
return value;
135133
}
@@ -151,7 +149,6 @@ protected static Object readFinalPrimitiveAttr(DynamicObject dynamicObject, Truf
151149
@Cached(value = "dynamicObject", weak = true) DynamicObject cachedObject,
152150
@Cached("dynamicObject.getShape()") Shape cachedShape,
153151
@Cached("getLocationOrNull(cachedShape.getProperty(cachedKey))") Location loc,
154-
@Cached("dynamicObject.getShape().getPropertyAssumption(key)") Assumption propertyAssumption,
155152
@Cached(value = "getAttribute(dynamicObject, key, defaultValue)") Object value) {
156153
return value;
157154
}

0 commit comments

Comments
 (0)