Skip to content

Commit 35aa37b

Browse files
committed
Remove unnecessary default create calls
1 parent c820002 commit 35aa37b

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/objects/getsetdescriptor/GetSetDescriptorTypeBuiltins.java

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ abstract static class GetSetGetNode extends PythonTernaryBuiltinNode {
195195
@Specialization
196196
Object get(VirtualFrame frame, GetSetDescriptor descr, Object obj, @SuppressWarnings("unused") Object type,
197197
@Cached DescriptorCheckNode descriptorCheckNode,
198-
@Cached("create()") CallUnaryMethodNode callNode) {
198+
@Cached CallUnaryMethodNode callNode) {
199199
if (descriptorCheckNode.execute(descr.getType(), descr.getName(), obj)) {
200200
return descr;
201201
}
@@ -210,8 +210,8 @@ Object get(VirtualFrame frame, GetSetDescriptor descr, Object obj, @SuppressWarn
210210
@Specialization
211211
Object getSlot(HiddenKeyDescriptor descr, Object obj, @SuppressWarnings("unused") Object type,
212212
@Cached DescriptorCheckNode descriptorCheckNode,
213-
@Cached("create()") ReadAttributeFromObjectNode readNode,
214-
@Cached("createBinaryProfile()") ConditionProfile profile) {
213+
@Cached ReadAttributeFromObjectNode readNode,
214+
@Cached ConditionProfile profile) {
215215
if (descriptorCheckNode.execute(descr.getType(), descr.getKey().getName(), obj)) {
216216
return descr;
217217
}
@@ -240,7 +240,7 @@ abstract static class GetSetSetNode extends PythonTernaryBuiltinNode {
240240
@Specialization
241241
Object set(VirtualFrame frame, GetSetDescriptor descr, Object obj, Object value,
242242
@Cached DescriptorCheckNode descriptorCheckNode,
243-
@Cached("create()") CallBinaryMethodNode callNode) {
243+
@Cached CallBinaryMethodNode callNode) {
244244
if (descriptorCheckNode.execute(descr.getType(), descr.getName(), obj)) {
245245
return descr;
246246
}
@@ -255,7 +255,7 @@ Object set(VirtualFrame frame, GetSetDescriptor descr, Object obj, Object value,
255255
@Specialization
256256
Object setSlot(HiddenKeyDescriptor descr, Object obj, Object value,
257257
@Cached DescriptorCheckNode descriptorCheckNode,
258-
@Cached("create()") WriteAttributeToObjectNode writeNode) {
258+
@Cached WriteAttributeToObjectNode writeNode) {
259259
if (descriptorCheckNode.execute(descr.getType(), descr.getKey().getName(), obj)) {
260260
return descr;
261261
}
@@ -280,7 +280,7 @@ abstract static class GetSetDeleteNode extends PythonBinaryBuiltinNode {
280280
@Specialization
281281
Object delete(VirtualFrame frame, GetSetDescriptor descr, Object obj,
282282
@Cached DescriptorCheckNode descriptorCheckNode,
283-
@Cached("create()") CallBinaryMethodNode callNode) {
283+
@Cached CallBinaryMethodNode callNode) {
284284
if (descriptorCheckNode.execute(descr.getType(), descr.getName(), obj)) {
285285
return descr;
286286
}
@@ -299,7 +299,7 @@ Object delete(VirtualFrame frame, GetSetDescriptor descr, Object obj,
299299
@Specialization
300300
Object deleteSlot(HiddenKeyDescriptor descr, Object obj,
301301
@Cached DescriptorCheckNode descriptorCheckNode,
302-
@Cached("create()") WriteAttributeToObjectNode writeNode) {
302+
@Cached WriteAttributeToObjectNode writeNode) {
303303
if (descriptorCheckNode.execute(descr.getType(), descr.getKey().getName(), obj)) {
304304
return descr;
305305
}

0 commit comments

Comments
 (0)