@@ -875,10 +875,9 @@ static Object doTpDict(PythonClass object, @SuppressWarnings("unused") PythonNat
875
875
return toSulongNode .execute (dict );
876
876
}
877
877
878
- @ Specialization (guards = "eq(MD_DEF, key)" , limit = "1" )
879
- static Object doMdDef (@ SuppressWarnings ("unused" ) PythonObject object , DynamicObjectNativeWrapper nativeWrapper , @ SuppressWarnings ("unused" ) String key ,
880
- @ CachedLibrary ("nativeWrapper.getNativeMemberStore()" ) HashingStorageLibrary lib ) {
881
- return lib .getItem (nativeWrapper .getNativeMemberStore (), MD_DEF );
878
+ @ Specialization (guards = "eq(MD_DEF, key)" )
879
+ static Object doMdDef (PythonModule object , @ SuppressWarnings ("unused" ) DynamicObjectNativeWrapper nativeWrapper , @ SuppressWarnings ("unused" ) String key ) {
880
+ return object .getNativeModuleDef ();
882
881
}
883
882
884
883
@ Specialization (guards = "eq(BUF_DELEGATE, key)" )
@@ -1274,11 +1273,9 @@ static void doTpSubclasses(PythonClass object, @SuppressWarnings("unused") Pytho
1274
1273
hashLib .forEach (storage , eachNode , new SubclassAddState (storage , hashLib , subclasses ));
1275
1274
}
1276
1275
1277
- @ Specialization (guards = "eq(MD_DEF, key)" , limit = "1" )
1278
- static void doMdDef (@ SuppressWarnings ("unused" ) PythonObject object , DynamicObjectNativeWrapper nativeWrapper , @ SuppressWarnings ("unused" ) String key , Object value ,
1279
- @ CachedLanguage PythonLanguage lang ,
1280
- @ CachedLibrary ("nativeWrapper.createNativeMemberStore(lang)" ) HashingStorageLibrary lib ) {
1281
- lib .setItem (nativeWrapper .createNativeMemberStore (lang ), MD_DEF .getMemberName (), value );
1276
+ @ Specialization (guards = "eq(MD_DEF, key)" )
1277
+ static void doMdDef (PythonModule object , @ SuppressWarnings ("unused" ) DynamicObjectNativeWrapper nativeWrapper , @ SuppressWarnings ("unused" ) String key , Object value ) {
1278
+ object .setNativeModuleDef (value );
1282
1279
}
1283
1280
1284
1281
@ Specialization (guards = "eq(TP_DICT, key)" , limit = "1" )
0 commit comments