Skip to content

Commit 1556948

Browse files
cosminbascalukasstadler
authored andcommitted
DelAttrNode: refactored to use a similar pattern as the SetAttrNode
1 parent f2db39a commit 1556948

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,10 +66,10 @@ public static DeleteAttributeNode create(PNode object, PNode key) {
6666
protected Object doIt(Object object, Object key,
6767
@Cached("createIdentityProfile()") ValueProfile setAttributeProfile,
6868
@Cached("create()") GetClassNode getClassNode,
69-
@Cached("create(__DELATTR__)") LookupAttributeInMRONode lookupDelAttr,
70-
@Cached("create()") CallBinaryMethodNode dispatchSetAttribute) {
69+
@Cached("create(__DELATTR__)") LookupAttributeInMRONode delAttributeLookup,
70+
@Cached("create()") CallBinaryMethodNode callDelAttr) {
7171
PythonClass type = getClassNode.execute(object);
72-
Object descr = setAttributeProfile.profile(lookupDelAttr.execute(type));
73-
return dispatchSetAttribute.executeObject(descr, object, key);
72+
Object descr = setAttributeProfile.profile(delAttributeLookup.execute(type));
73+
return callDelAttr.executeObject(descr, object, key);
7474
}
7575
}

0 commit comments

Comments
 (0)