@@ -396,7 +396,6 @@ HashingStorage doIterable(VirtualFrame frame, HashingStorage dictStorage, Object
396
396
@ Cached ("create()" ) IsBuiltinClassProfile errorProfile ,
397
397
@ Cached ("createBinaryProfile()" ) ConditionProfile hasFrame ,
398
398
@ CachedLibrary ("dictStorage" ) HashingStorageLibrary lib ) {
399
-
400
399
HashingStorage curStorage = dictStorage ;
401
400
Object iterator = getIteratorNode .executeWith (frame , iterable );
402
401
while (true ) {
@@ -454,19 +453,19 @@ abstract static class IsSupersetNode extends PythonBinaryBuiltinNode {
454
453
@ Specialization (limit = "1" )
455
454
boolean isSuperSet (VirtualFrame frame , PBaseSet self , PBaseSet other ,
456
455
@ Cached ("createBinaryProfile()" ) ConditionProfile hasFrame ,
457
- @ CachedLibrary ("self .getDictStorage()" ) HashingStorageLibrary lib ) {
456
+ @ CachedLibrary ("other .getDictStorage()" ) HashingStorageLibrary lib ) {
458
457
if (hasFrame .profile (frame != null )) {
459
458
return lib .compareKeysWithState (other .getDictStorage (), self .getDictStorage (), PArguments .getThreadState (frame )) <= 0 ;
460
459
} else {
461
460
return lib .compareKeys (other .getDictStorage (), self .getDictStorage ()) <= 0 ;
462
461
}
463
462
}
464
463
465
- @ Specialization (replaces = "isSuperSet" , limit = "1" )
464
+ @ Specialization (replaces = "isSuperSet" )
466
465
boolean isSuperSetGeneric (VirtualFrame frame , PBaseSet self , Object other ,
467
466
@ Cached SetNodes .ConstructSetNode constructSetNode ,
468
467
@ Cached ("createBinaryProfile()" ) ConditionProfile hasFrame ,
469
- @ CachedLibrary ("self.getDictStorage() " ) HashingStorageLibrary lib ) {
468
+ @ CachedLibrary (limit = "3 " ) HashingStorageLibrary lib ) {
470
469
PSet otherSet = constructSetNode .executeWith (frame , other );
471
470
if (hasFrame .profile (frame != null )) {
472
471
return lib .compareKeysWithState (otherSet .getDictStorage (), self .getDictStorage (), PArguments .getThreadState (frame )) <= 0 ;
@@ -480,10 +479,10 @@ boolean isSuperSetGeneric(VirtualFrame frame, PBaseSet self, Object other,
480
479
@ Builtin (name = __LE__ , minNumOfPositionalArgs = 2 )
481
480
@ GenerateNodeFactory
482
481
abstract static class LessEqualNode extends PythonBinaryBuiltinNode {
483
- @ Specialization
482
+ @ Specialization ( limit = "1" )
484
483
boolean doLE (VirtualFrame frame , PBaseSet self , PBaseSet other ,
485
484
@ Cached ("createBinaryProfile()" ) ConditionProfile hasFrame ,
486
- @ CachedLibrary (limit = "3 " ) HashingStorageLibrary lib ) {
485
+ @ CachedLibrary ("self.getDictStorage() " ) HashingStorageLibrary lib ) {
487
486
if (hasFrame .profile (frame != null )) {
488
487
return lib .compareKeysWithState (self .getDictStorage (), other .getDictStorage (), PArguments .getThreadState (frame )) <= 0 ;
489
488
} else {
@@ -504,7 +503,7 @@ abstract static class GreaterEqualNode extends PythonBinaryBuiltinNode {
504
503
@ Specialization (limit = "1" )
505
504
boolean doGE (VirtualFrame frame , PBaseSet self , PBaseSet other ,
506
505
@ Cached ("createBinaryProfile()" ) ConditionProfile hasFrame ,
507
- @ CachedLibrary ("self .getDictStorage()" ) HashingStorageLibrary lib ) {
506
+ @ CachedLibrary ("other .getDictStorage()" ) HashingStorageLibrary lib ) {
508
507
if (hasFrame .profile (frame != null )) {
509
508
return lib .compareKeysWithState (other .getDictStorage (), self .getDictStorage (), PArguments .getThreadState (frame )) <= 0 ;
510
509
} else {
0 commit comments