@@ -1187,7 +1187,7 @@ protected static void doArrayBasedMove(ArrayBasedSequenceStorage storage, int di
1187
1187
PythonUtils .arraycopy (array , srcPos , array , distPos , length );
1188
1188
}
1189
1189
1190
- @ Specialization (guards = {"length > 0" , "!isBasicSequenceStorage (storage)" })
1190
+ @ Specialization (guards = {"length > 0" , "!isArrayBasedSequenceStorage (storage)" })
1191
1191
protected static void doOther (Node inliningTarget , SequenceStorage storage , int distPos , int srcPos , int length ,
1192
1192
@ Cached SetItemScalarNode setLeftItemNode ,
1193
1193
@ Cached GetItemScalarNode getRightItemNode ) {
@@ -1196,8 +1196,8 @@ protected static void doOther(Node inliningTarget, SequenceStorage storage, int
1196
1196
}
1197
1197
}
1198
1198
1199
- protected static boolean isBasicSequenceStorage (Object o ) {
1200
- return o instanceof BasicSequenceStorage ;
1199
+ protected static boolean isArrayBasedSequenceStorage (Object o ) {
1200
+ return o instanceof ArrayBasedSequenceStorage ;
1201
1201
}
1202
1202
}
1203
1203
@@ -1222,7 +1222,7 @@ protected static void doArrayBasedCopy(ArrayBasedSequenceStorage dist, int distP
1222
1222
PythonUtils .arraycopy (srcArray , srcPos , distArray , distPos , length );
1223
1223
}
1224
1224
1225
- @ Specialization (guards = {"length > 0" , "!isBasicSequenceStorage (dist) || dist.getClass() != src.getClass()" })
1225
+ @ Specialization (guards = {"length > 0" , "!isArrayBasedSequenceStorage (dist) || dist.getClass() != src.getClass()" })
1226
1226
protected static void doOther (Node inliningTarget , SequenceStorage dist , int distPos , SequenceStorage src , int srcPos , int length ,
1227
1227
@ Cached SetItemScalarNode setLeftItemNode ,
1228
1228
@ Cached GetItemScalarNode getRightItemNode ) {
@@ -1231,8 +1231,8 @@ protected static void doOther(Node inliningTarget, SequenceStorage dist, int dis
1231
1231
}
1232
1232
}
1233
1233
1234
- protected static boolean isBasicSequenceStorage (Object o ) {
1235
- return o instanceof BasicSequenceStorage ;
1234
+ protected static boolean isArrayBasedSequenceStorage (Object o ) {
1235
+ return o instanceof ArrayBasedSequenceStorage ;
1236
1236
}
1237
1237
}
1238
1238
@@ -1461,7 +1461,7 @@ static void singleStep(SequenceStorage self, int lo, int hi, SequenceStorage dat
1461
1461
}
1462
1462
}
1463
1463
1464
- protected static boolean replacesWholeSequence (Class <? extends BasicSequenceStorage > cachedClass , BasicSequenceStorage s , SliceInfo info ) {
1464
+ protected static boolean replacesWholeSequence (Class <? extends ArrayBasedSequenceStorage > cachedClass , ArrayBasedSequenceStorage s , SliceInfo info ) {
1465
1465
return info .start == 0 && info .step == 1 && info .stop == cachedClass .cast (s ).length ();
1466
1466
}
1467
1467
}
0 commit comments