Skip to content

Commit 6dd8029

Browse files
committed
Add asserts
1 parent 3dff3a7 commit 6dd8029

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/nodes/object/GetDictIfExistsNode.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,11 +71,13 @@ public abstract class GetDictIfExistsNode extends PNodeWithContext {
7171
@Specialization(guards = {"object.getShape() == cachedShape", "hasNoDict(cachedShape)"}, limit = "1")
7272
static PDict getNoDictCachedShape(@SuppressWarnings("unused") PythonObject object,
7373
@SuppressWarnings("unused") @Cached("object.getShape()") Shape cachedShape) {
74+
assert doPythonObject(object, DynamicObjectLibrary.getUncached()) == null;
7475
return null;
7576
}
7677

7778
@Specialization(guards = "hasNoDict(object.getShape())", replaces = "getNoDictCachedShape")
7879
static PDict getNoDict(@SuppressWarnings("unused") PythonObject object) {
80+
assert doPythonObject(object, DynamicObjectLibrary.getUncached()) == null;
7981
return null;
8082
}
8183

0 commit comments

Comments
 (0)