@@ -444,7 +444,7 @@ public static GetAttributeNode create() {
444
444
@ Builtin (name = __SETATTR__ , minNumOfPositionalArgs = 3 )
445
445
@ GenerateNodeFactory
446
446
public abstract static class SetattrNode extends PythonTernaryBuiltinNode {
447
- @ Specialization (limit = "3 " )
447
+ @ Specialization (limit = "4 " )
448
448
protected PNone doIt (VirtualFrame frame , Object object , Object keyObject , Object value ,
449
449
@ CachedLibrary ("object" ) PythonObjectLibrary libObj ,
450
450
@ Cached StringNodes .CastToJavaStringCheckedNode castToString ,
@@ -526,10 +526,10 @@ protected boolean isBuiltinObjectExact(PythonObject self) {
526
526
return exactBuiltinInstanceProfile .profileIsOtherBuiltinObject (self , PythonBuiltinClassType .PythonModule );
527
527
}
528
528
529
- @ Specialization (guards = {"!isBuiltinObjectExact(self)" , "!isClass(self, iLib)" , "!isExactObjectInstance(self)" , "isNoValue(none)" }, limit = "1" )
529
+ @ Specialization (guards = {"!isBuiltinObjectExact(self)" , "!isClass(self, iLib)" , "!isExactObjectInstance(self)" , "isNoValue(none)" })
530
530
Object dict (PythonObject self , @ SuppressWarnings ("unused" ) PNone none ,
531
- @ CachedLibrary ("self " ) PythonObjectLibrary lib ,
532
- @ SuppressWarnings ("unused" ) @ CachedLibrary ("self " ) InteropLibrary iLib ) {
531
+ @ CachedLibrary (limit = "3 " ) PythonObjectLibrary lib ,
532
+ @ SuppressWarnings ("unused" ) @ CachedLibrary (limit = "3 " ) InteropLibrary iLib ) {
533
533
PHashingCollection dict = lib .getDict (self );
534
534
if (dict == null ) {
535
535
dict = factory ().createDictFixedStorage (self );
@@ -543,10 +543,10 @@ Object dict(PythonObject self, @SuppressWarnings("unused") PNone none,
543
543
return dict ;
544
544
}
545
545
546
- @ Specialization (guards = {"!isBuiltinObjectExact(self)" , "!isClass(self, iLib)" , "!isExactObjectInstance(self)" }, limit = "1" )
546
+ @ Specialization (guards = {"!isBuiltinObjectExact(self)" , "!isClass(self, iLib)" , "!isExactObjectInstance(self)" })
547
547
Object dict (PythonObject self , PDict dict ,
548
- @ CachedLibrary ("self " ) PythonObjectLibrary lib ,
549
- @ SuppressWarnings ("unused" ) @ CachedLibrary ("self " ) InteropLibrary iLib ) {
548
+ @ CachedLibrary (limit = "3 " ) PythonObjectLibrary lib ,
549
+ @ SuppressWarnings ("unused" ) @ CachedLibrary (limit = "3 " ) InteropLibrary iLib ) {
550
550
try {
551
551
lib .setDict (self , dict );
552
552
} catch (UnsupportedMessageException e ) {
0 commit comments