Skip to content

Commit 5ca5da6

Browse files
committed
Remove incorrect 'getUncached()' implementations.
1 parent d5d5047 commit 5ca5da6

File tree

5 files changed

+2
-23
lines changed

5 files changed

+2
-23
lines changed

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/objects/common/HashingCollectionNodes.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -103,10 +103,6 @@ void doSetItemGeneric(PHashingCollection c, Object key, Object value,
103103
public static SetItemNode create() {
104104
return SetItemNodeGen.create();
105105
}
106-
107-
public static SetItemNode getUncached() {
108-
return SetItemNodeGen.getUncached();
109-
}
110106
}
111107

112108
@ImportStatic({PGuards.class})

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/objects/common/HashingStorageNodes.java

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -229,11 +229,7 @@ protected static Shape lookupShape(DynamicObject receiver) {
229229
protected boolean isHashable(Object key) {
230230
if (isHashableNode == null) {
231231
CompilerDirectives.transferToInterpreterAndInvalidate();
232-
if (isAdoptable()) {
233-
isHashableNode = insert(IsHashableNode.create());
234-
} else {
235-
isHashableNode = IsHashableNode.getUncached();
236-
}
232+
isHashableNode = insert(IsHashableNode.create());
237233
}
238234
return isHashableNode.execute(key);
239235
}

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/nodes/PRaiseOSErrorNode.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -100,8 +100,4 @@ PException raiseOSError(VirtualFrame frame, Object[] arguments,
100100
public static PRaiseOSErrorNode create() {
101101
return PRaiseOSErrorNodeGen.create();
102102
}
103-
104-
public static PRaiseOSErrorNode getUncached() {
105-
return PRaiseOSErrorNodeGen.getUncached();
106-
}
107103
}

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/nodes/datamodel/IsHashableNode.java

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -89,9 +89,4 @@ protected boolean isHashableGeneric(Object object,
8989
public static IsHashableNode create() {
9090
return IsHashableNodeGen.create();
9191
}
92-
93-
public static IsHashableNode getUncached() {
94-
// TODO: implement uncached
95-
return null;
96-
}
9792
}

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/nodes/function/PythonBuiltinBaseNode.java

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -100,11 +100,7 @@ private final PRaiseNode getRaiseNode() {
100100
private final PRaiseOSErrorNode getRaiseOSNode() {
101101
if (raiseOSNode == null) {
102102
CompilerDirectives.transferToInterpreterAndInvalidate();
103-
if (isAdoptable()) {
104-
raiseOSNode = insert(PRaiseOSErrorNode.create());
105-
} else {
106-
raiseOSNode = PRaiseOSErrorNode.getUncached();
107-
}
103+
raiseOSNode = insert(PRaiseOSErrorNode.create());
108104
}
109105
return raiseOSNode;
110106
}

0 commit comments

Comments
 (0)