@@ -1138,18 +1138,16 @@ protected Object solidBase(Object type, GetBaseClassNode getBaseClassNode, Pytho
1138
1138
typeIsNotBase .enter ();
1139
1139
1140
1140
Object typeSlots = getSlotsFromType (type , readAttr );
1141
- Object baseSlots = getSlotsFromType (base , readAttr );
1142
- if (extraivars (type , base , typeSlots , baseSlots , getArrayNode )) {
1141
+ if (extraivars (type , base , typeSlots , getArrayNode )) {
1143
1142
return type ;
1144
1143
} else {
1145
1144
return base ;
1146
1145
}
1147
1146
}
1148
1147
1149
1148
@ TruffleBoundary
1150
- private static boolean extraivars (Object type , Object base , Object typeSlots , Object baseSlots , GetInternalObjectArrayNode getArrayNode ) {
1151
- if (typeSlots == null && baseSlots != null && length (baseSlots , getArrayNode ) != 0 ||
1152
- baseSlots == null && typeSlots != null && length (typeSlots , getArrayNode ) != 0 ) {
1149
+ private static boolean extraivars (Object type , Object base , Object typeSlots , GetInternalObjectArrayNode getArrayNode ) {
1150
+ if (typeSlots != null && length (typeSlots , getArrayNode ) != 0 ) {
1153
1151
return true ;
1154
1152
}
1155
1153
Object typeNewMethod = LookupAttributeInMRONode .lookup (type , __NEW__ , GetMroStorageNode .getUncached (), ReadAttributeFromObjectNode .getUncached (), true );
@@ -1159,7 +1157,7 @@ private static boolean extraivars(Object type, Object base, Object typeSlots, Ob
1159
1157
1160
1158
@ TruffleBoundary
1161
1159
private static int length (Object slotsObject , GetInternalObjectArrayNode getArrayNode ) {
1162
- assert PGuards .isString (slotsObject ) || PGuards .isPSequence (slotsObject ): "slotsObject must be either a String or a PSequence" ;
1160
+ assert PGuards .isString (slotsObject ) || PGuards .isPSequence (slotsObject ) : "slotsObject must be either a String or a PSequence" ;
1163
1161
1164
1162
if (PGuards .isString (slotsObject )) {
1165
1163
return (slotsObject .equals (__DICT__ ) || slotsObject .equals (__WEAKREF__ )) ? 0 : 1 ;
0 commit comments