Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit0ddd814

Browse files
woesssteve-s
authored andcommitted
Remove unnecessary cached property assumption.
1 parent0ade565 commit0ddd814

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
importcom.oracle.graal.python.builtins.objects.object.PythonObject;
4646
importcom.oracle.graal.python.builtins.objects.type.PythonManagedClass;
4747
importcom.oracle.graal.python.nodes.PNodeWithContext;
48-
importcom.oracle.truffle.api.Assumption;
4948
importcom.oracle.truffle.api.dsl.Cached;
5049
importcom.oracle.truffle.api.dsl.GenerateInline;
5150
importcom.oracle.truffle.api.dsl.GenerateUncached;
@@ -129,7 +128,6 @@ protected static Object readFinalAttr(DynamicObject dynamicObject, TruffleString
129128
@Cached(value ="dynamicObject",weak =true)DynamicObjectcachedObject,
130129
@Cached("dynamicObject.getShape()")ShapecachedShape,
131130
@Cached("getLocationOrNull(cachedShape.getProperty(cachedKey))")Locationloc,
132-
@Cached("dynamicObject.getShape().getPropertyAssumption(key)")AssumptionpropertyAssumption,
133131
@Cached(value ="getAttribute(dynamicObject, key, defaultValue)",weak =true)Objectvalue) {
134132
returnvalue;
135133
}
@@ -151,7 +149,6 @@ protected static Object readFinalPrimitiveAttr(DynamicObject dynamicObject, Truf
151149
@Cached(value ="dynamicObject",weak =true)DynamicObjectcachedObject,
152150
@Cached("dynamicObject.getShape()")ShapecachedShape,
153151
@Cached("getLocationOrNull(cachedShape.getProperty(cachedKey))")Locationloc,
154-
@Cached("dynamicObject.getShape().getPropertyAssumption(key)")AssumptionpropertyAssumption,
155152
@Cached(value ="getAttribute(dynamicObject, key, defaultValue)")Objectvalue) {
156153
returnvalue;
157154
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp