@@ -879,7 +879,7 @@ private boolean compatibleWithBase(VirtualFrame frame, Object child, Object pare
879
879
if (childSlots == null && parentSlots != null || childSlots != null && parentSlots == null ) {
880
880
return false ;
881
881
}
882
- if (!compareSlots (parent , child , parentSlots , childSlots )) {
882
+ if (!compareSlots (frame , parent , child , parentSlots , childSlots )) {
883
883
return false ;
884
884
}
885
885
@@ -893,10 +893,10 @@ private boolean sameSlotsAdded(VirtualFrame frame, Object a, Object b) {
893
893
}
894
894
Object aSlots = getSlotsFromDict (frame , a );
895
895
Object bSlots = getSlotsFromDict (frame , b );
896
- return compareSlots (a , b , aSlots , bSlots );
896
+ return compareSlots (frame , a , b , aSlots , bSlots );
897
897
}
898
898
899
- private boolean compareSlots (Object aType , Object bType , Object aSlotsArg , Object bSlotsArg ) {
899
+ private boolean compareSlots (VirtualFrame frame , Object aType , Object bType , Object aSlotsArg , Object bSlotsArg ) {
900
900
Object aSlots = aSlotsArg ;
901
901
Object bSlots = bSlotsArg ;
902
902
@@ -910,8 +910,8 @@ private boolean compareSlots(Object aType, Object bType, Object aSlotsArg, Objec
910
910
911
911
aSlots = getLookupSlots ().execute (aType );
912
912
bSlots = getLookupSlots ().execute (bType );
913
- int aSize = aSlots != PNone .NO_VALUE ? getSizeNode ().execute (null , aSlots ) : 0 ;
914
- int bSize = bSlots != PNone .NO_VALUE ? getSizeNode ().execute (null , bSlots ) : 0 ;
913
+ int aSize = aSlots != PNone .NO_VALUE ? getSizeNode ().execute (frame , aSlots ) : 0 ;
914
+ int bSize = bSlots != PNone .NO_VALUE ? getSizeNode ().execute (frame , bSlots ) : 0 ;
915
915
return aSize == bSize ;
916
916
}
917
917
0 commit comments