@@ -96,7 +96,7 @@ protected List<? extends NodeFactory<? extends PythonBuiltinBaseNode>> getNodeFa
96
96
public abstract static class LenNode extends PythonUnaryBuiltinNode {
97
97
@ Specialization
98
98
Object len (PDictView self ) {
99
- return self .getDict ().size ();
99
+ return self .getWrappedDict ().size ();
100
100
}
101
101
}
102
102
@@ -105,16 +105,16 @@ Object len(PDictView self) {
105
105
public abstract static class IterNode extends PythonUnaryBuiltinNode {
106
106
@ Specialization
107
107
Object getKeysViewIter (PDictKeysView self ) {
108
- if (self .getDict () != null ) {
109
- return factory ().createDictKeysIterator (self .getDict ());
108
+ if (self .getWrappedDict () != null ) {
109
+ return factory ().createDictKeysIterator (self .getWrappedDict ());
110
110
}
111
111
return PNone .NONE ;
112
112
}
113
113
114
114
@ Specialization
115
115
Object getItemsViewIter (PDictItemsView self ) {
116
- if (self .getDict () != null ) {
117
- return factory ().createDictItemsIterator (self .getDict ());
116
+ if (self .getWrappedDict () != null ) {
117
+ return factory ().createDictItemsIterator (self .getWrappedDict ());
118
118
}
119
119
return PNone .NONE ;
120
120
}
@@ -124,15 +124,15 @@ Object getItemsViewIter(PDictItemsView self) {
124
124
@ GenerateNodeFactory
125
125
public abstract static class ContainsNode extends PythonBinaryBuiltinNode {
126
126
@ SuppressWarnings ("unused" )
127
- @ Specialization (guards = "self.getDict ().size() == 0" )
127
+ @ Specialization (guards = "self.getWrappedDict ().size() == 0" )
128
128
boolean containsEmpty (PDictView self , Object key ) {
129
129
return false ;
130
130
}
131
131
132
132
@ Specialization
133
133
boolean contains (PDictKeysView self , Object key ,
134
134
@ Cached ("create()" ) HashingStorageNodes .ContainsKeyNode containsKeyNode ) {
135
- return containsKeyNode .execute (self .getDict ().getDictStorage (), key );
135
+ return containsKeyNode .execute (self .getWrappedDict ().getDictStorage (), key );
136
136
}
137
137
138
138
@ Specialization
@@ -146,7 +146,7 @@ boolean contains(PDictItemsView self, PTuple key,
146
146
if (tupleLenProfile .profile (lenNode .execute (tupleStorage ) != 2 )) {
147
147
return false ;
148
148
}
149
- HashingStorage dictStorage = self .getDict ().getDictStorage ();
149
+ HashingStorage dictStorage = self .getWrappedDict ().getDictStorage ();
150
150
Object value = getDictItemNode .execute (dictStorage , getTupleItemNode .execute (tupleStorage , 0 ));
151
151
return value != null && equivalenceNode .equals (value , getTupleItemNode .execute (tupleStorage , 1 ));
152
152
}
@@ -159,21 +159,21 @@ public abstract static class EqNode extends PythonBinaryBuiltinNode {
159
159
@ Specialization
160
160
boolean doKeysView (PDictKeysView self , PDictKeysView other ,
161
161
@ Cached ("create()" ) HashingStorageNodes .KeysEqualsNode equalsNode ) {
162
- return equalsNode .execute (self .getDict ().getDictStorage (), other .getDict ().getDictStorage ());
162
+ return equalsNode .execute (self .getWrappedDict ().getDictStorage (), other .getWrappedDict ().getDictStorage ());
163
163
}
164
164
165
165
@ Specialization
166
166
boolean doKeysView (PDictKeysView self , PBaseSet other ,
167
167
@ Cached ("create()" ) HashingStorageNodes .KeysEqualsNode equalsNode ) {
168
- return equalsNode .execute (self .getDict ().getDictStorage (), other .getDictStorage ());
168
+ return equalsNode .execute (self .getWrappedDict ().getDictStorage (), other .getDictStorage ());
169
169
}
170
170
171
171
@ Specialization
172
172
boolean doItemsView (PDictItemsView self , PDictItemsView other ,
173
173
@ Cached ("create()" ) HashingStorageNodes .EqualsNode equalsNode ) {
174
174
// the items view stores the original dict with K:V pairs so full K:V equality needs to
175
175
// be tested in this case
176
- return equalsNode .execute (self .getDict ().getDictStorage (), other .getDict ().getDictStorage ());
176
+ return equalsNode .execute (self .getWrappedDict ().getDictStorage (), other .getWrappedDict ().getDictStorage ());
177
177
}
178
178
179
179
@ Specialization
@@ -227,14 +227,14 @@ abstract static class SubNode extends PythonBinaryBuiltinNode {
227
227
@ Specialization
228
228
PBaseSet doKeysView (PDictKeysView self , PBaseSet other ,
229
229
@ Cached ("create()" ) HashingStorageNodes .DiffNode diffNode ) {
230
- HashingStorage storage = diffNode .execute (self .getDict ().getDictStorage (), other .getDictStorage ());
230
+ HashingStorage storage = diffNode .execute (self .getWrappedDict ().getDictStorage (), other .getDictStorage ());
231
231
return factory ().createSet (storage );
232
232
}
233
233
234
234
@ Specialization
235
235
PBaseSet doKeysView (PDictKeysView self , PDictKeysView other ,
236
236
@ Cached ("create()" ) HashingStorageNodes .DiffNode diffNode ) {
237
- HashingStorage storage = diffNode .execute (self .getDict ().getDictStorage (), other .getDict ().getDictStorage ());
237
+ HashingStorage storage = diffNode .execute (self .getWrappedDict ().getDictStorage (), other .getWrappedDict ().getDictStorage ());
238
238
return factory ().createSet (storage );
239
239
}
240
240
@@ -264,14 +264,14 @@ abstract static class AndNode extends PythonBinaryBuiltinNode {
264
264
@ Specialization
265
265
PBaseSet doKeysView (PDictKeysView self , PBaseSet other ,
266
266
@ Cached ("create()" ) HashingStorageNodes .IntersectNode intersectNode ) {
267
- HashingStorage intersectedStorage = intersectNode .execute (self .getDict ().getDictStorage (), other .getDictStorage ());
267
+ HashingStorage intersectedStorage = intersectNode .execute (self .getWrappedDict ().getDictStorage (), other .getDictStorage ());
268
268
return factory ().createSet (intersectedStorage );
269
269
}
270
270
271
271
@ Specialization
272
272
PBaseSet doKeysView (PDictKeysView self , PDictKeysView other ,
273
273
@ Cached ("create()" ) HashingStorageNodes .IntersectNode intersectNode ) {
274
- HashingStorage intersectedStorage = intersectNode .execute (self .getDict ().getDictStorage (), other .getDict ().getDictStorage ());
274
+ HashingStorage intersectedStorage = intersectNode .execute (self .getWrappedDict ().getDictStorage (), other .getWrappedDict ().getDictStorage ());
275
275
return factory ().createSet (intersectedStorage );
276
276
}
277
277
@@ -301,13 +301,13 @@ public abstract static class OrNode extends PythonBinaryBuiltinNode {
301
301
@ Specialization
302
302
PBaseSet doKeysView (PDictKeysView self , PBaseSet other ,
303
303
@ Cached ("create()" ) HashingStorageNodes .UnionNode unionNode ) {
304
- return factory ().createSet (unionNode .execute (self .getDict ().getDictStorage (), other .getDictStorage ()));
304
+ return factory ().createSet (unionNode .execute (self .getWrappedDict ().getDictStorage (), other .getDictStorage ()));
305
305
}
306
306
307
307
@ Specialization
308
308
PBaseSet doKeysView (PDictKeysView self , PDictKeysView other ,
309
309
@ Cached ("create()" ) HashingStorageNodes .UnionNode unionNode ) {
310
- return factory ().createSet (unionNode .execute (self .getDict ().getDictStorage (), other .getDict ().getDictStorage ()));
310
+ return factory ().createSet (unionNode .execute (self .getWrappedDict ().getDictStorage (), other .getWrappedDict ().getDictStorage ()));
311
311
}
312
312
313
313
@ Specialization
@@ -334,13 +334,13 @@ public abstract static class XorNode extends PythonBinaryBuiltinNode {
334
334
@ Specialization
335
335
PBaseSet doKeysView (PDictKeysView self , PBaseSet other ,
336
336
@ Cached ("create()" ) HashingStorageNodes .ExclusiveOrNode xorNode ) {
337
- return factory ().createSet (xorNode .execute (self .getDict ().getDictStorage (), other .getDictStorage ()));
337
+ return factory ().createSet (xorNode .execute (self .getWrappedDict ().getDictStorage (), other .getDictStorage ()));
338
338
}
339
339
340
340
@ Specialization
341
341
PBaseSet doKeysView (PDictKeysView self , PDictKeysView other ,
342
342
@ Cached ("create()" ) HashingStorageNodes .ExclusiveOrNode xorNode ) {
343
- return factory ().createSet (xorNode .execute (self .getDict ().getDictStorage (), other .getDict ().getDictStorage ()));
343
+ return factory ().createSet (xorNode .execute (self .getWrappedDict ().getDictStorage (), other .getWrappedDict ().getDictStorage ()));
344
344
}
345
345
346
346
@ Specialization
@@ -367,13 +367,13 @@ abstract static class LessEqualNode extends PythonBinaryBuiltinNode {
367
367
@ Specialization
368
368
boolean lessEqual (PDictKeysView self , PBaseSet other ,
369
369
@ Cached ("create()" ) HashingStorageNodes .KeysIsSubsetNode isSubsetNode ) {
370
- return isSubsetNode .execute (self .getDict ().getDictStorage (), other .getDictStorage ());
370
+ return isSubsetNode .execute (self .getWrappedDict ().getDictStorage (), other .getDictStorage ());
371
371
}
372
372
373
373
@ Specialization
374
374
boolean lessEqual (PDictKeysView self , PDictKeysView other ,
375
375
@ Cached ("create()" ) HashingStorageNodes .KeysIsSubsetNode isSubsetNode ) {
376
- return isSubsetNode .execute (self .getDict ().getDictStorage (), other .getDict ().getDictStorage ());
376
+ return isSubsetNode .execute (self .getWrappedDict ().getDictStorage (), other .getWrappedDict ().getDictStorage ());
377
377
}
378
378
379
379
@ Specialization
@@ -400,13 +400,13 @@ abstract static class GreaterEqualNode extends PythonBinaryBuiltinNode {
400
400
@ Specialization
401
401
boolean greaterEqual (PDictKeysView self , PBaseSet other ,
402
402
@ Cached ("create()" ) HashingStorageNodes .KeysIsSupersetNode isSupersetNode ) {
403
- return isSupersetNode .execute (self .getDict ().getDictStorage (), other .getDictStorage ());
403
+ return isSupersetNode .execute (self .getWrappedDict ().getDictStorage (), other .getDictStorage ());
404
404
}
405
405
406
406
@ Specialization
407
407
boolean greaterEqual (PDictKeysView self , PDictKeysView other ,
408
408
@ Cached ("create()" ) HashingStorageNodes .KeysIsSupersetNode isSupersetNode ) {
409
- return isSupersetNode .execute (self .getDict ().getDictStorage (), other .getDict ().getDictStorage ());
409
+ return isSupersetNode .execute (self .getWrappedDict ().getDictStorage (), other .getWrappedDict ().getDictStorage ());
410
410
}
411
411
412
412
@ Specialization
0 commit comments