63
63
import com .oracle .graal .python .builtins .objects .set .SetNodes ;
64
64
import com .oracle .graal .python .builtins .objects .tuple .PTuple ;
65
65
import com .oracle .graal .python .nodes .function .PythonBuiltinBaseNode ;
66
- import com .oracle .graal .python .nodes .function .PythonBuiltinNode ;
67
66
import com .oracle .graal .python .nodes .function .builtins .PythonBinaryBuiltinNode ;
68
67
import com .oracle .graal .python .nodes .function .builtins .PythonUnaryBuiltinNode ;
69
68
import com .oracle .truffle .api .dsl .Cached ;
@@ -83,7 +82,7 @@ protected List<? extends NodeFactory<? extends PythonBuiltinBaseNode>> getNodeFa
83
82
84
83
@ Builtin (name = __LEN__ , fixedNumOfArguments = 1 )
85
84
@ GenerateNodeFactory
86
- public abstract static class LenNode extends PythonBuiltinNode {
85
+ public abstract static class LenNode extends PythonUnaryBuiltinNode {
87
86
@ Specialization
88
87
Object len (PDictView self ) {
89
88
return self .getDict ().size ();
@@ -112,7 +111,7 @@ Object getItemsViewIter(PDictItemsView self) {
112
111
113
112
@ Builtin (name = __CONTAINS__ , fixedNumOfArguments = 2 )
114
113
@ GenerateNodeFactory
115
- public abstract static class ContainsNode extends PythonBuiltinNode {
114
+ public abstract static class ContainsNode extends PythonBinaryBuiltinNode {
116
115
@ SuppressWarnings ("unused" )
117
116
@ Specialization (guards = "self.getDict().size() == 0" )
118
117
boolean containsEmpty (PDictView self , Object key ) {
@@ -141,7 +140,7 @@ boolean contains(PDictItemsView self, PTuple key,
141
140
142
141
@ Builtin (name = __EQ__ , fixedNumOfArguments = 2 )
143
142
@ GenerateNodeFactory
144
- public abstract static class EqNode extends PythonBuiltinNode {
143
+ public abstract static class EqNode extends PythonBinaryBuiltinNode {
145
144
146
145
@ Specialization
147
146
boolean doKeysView (PDictKeysView self , PDictKeysView other ,
@@ -254,7 +253,7 @@ PBaseSet doItemsView(PDictItemsView self, PDictItemsView other,
254
253
255
254
@ Builtin (name = __OR__ , fixedNumOfArguments = 2 )
256
255
@ GenerateNodeFactory
257
- public abstract static class OrNode extends PythonBuiltinNode {
256
+ public abstract static class OrNode extends PythonBinaryBuiltinNode {
258
257
@ Specialization
259
258
PBaseSet doKeysView (PDictKeysView self , PBaseSet other ,
260
259
@ Cached ("create()" ) HashingStorageNodes .UnionNode unionNode ) {
@@ -287,7 +286,7 @@ PBaseSet doItemsView(PDictItemsView self, PDictItemsView other,
287
286
288
287
@ Builtin (name = __XOR__ , fixedNumOfArguments = 2 )
289
288
@ GenerateNodeFactory
290
- public abstract static class XorNode extends PythonBuiltinNode {
289
+ public abstract static class XorNode extends PythonBinaryBuiltinNode {
291
290
@ Specialization
292
291
PBaseSet doKeysView (PDictKeysView self , PBaseSet other ,
293
292
@ Cached ("create()" ) HashingStorageNodes .ExclusiveOrNode xorNode ) {
0 commit comments