@@ -592,29 +592,25 @@ protected static SequenceStorage doManagedStorage(BasicSequenceStorage storage,
592
592
}
593
593
594
594
@ Specialization
595
- protected static NativeSequenceStorage doNativeByte (NativeByteSequenceStorage storage , int start , @ SuppressWarnings ("unused" ) int stop , int step , int length ,
596
- @ Bind ("this" ) Node inliningTarget ,
597
- @ Cached CStructAccess .ReadByteNode readNode ,
598
- @ Shared @ Cached StorageToNativeNode storageToNativeNode ) {
595
+ protected static SequenceStorage doNativeByte (NativeByteSequenceStorage storage , int start , @ SuppressWarnings ("unused" ) int stop , int step , int length ,
596
+ @ Cached CStructAccess .ReadByteNode readNode ) {
599
597
600
598
byte [] newArray = new byte [length ];
601
599
for (int i = start , j = 0 ; j < length ; i += step , j ++) {
602
600
newArray [j ] = readNode .readArrayElement (storage .getPtr (), i );
603
601
}
604
- return storageToNativeNode . execute ( inliningTarget , newArray , length );
602
+ return new ByteSequenceStorage ( newArray );
605
603
}
606
604
607
605
@ Specialization
608
- protected static NativeSequenceStorage doNativeObject (NativeObjectSequenceStorage storage , int start , @ SuppressWarnings ("unused" ) int stop , int step , int length ,
609
- @ Bind ("this" ) Node inliningTarget ,
606
+ protected static SequenceStorage doNativeObject (NativeObjectSequenceStorage storage , int start , @ SuppressWarnings ("unused" ) int stop , int step , int length ,
610
607
@ Cached CStructAccess .ReadPointerNode readNode ,
611
- @ Shared @ Cached StorageToNativeNode storageToNativeNode ,
612
608
@ Cached NativeToPythonNode toJavaNode ) {
613
609
Object [] newArray = new Object [length ];
614
610
for (int i = start , j = 0 ; j < length ; i += step , j ++) {
615
611
newArray [j ] = toJavaNode .execute (readNode .readArrayElement (storage .getPtr (), i ));
616
612
}
617
- return storageToNativeNode . execute ( inliningTarget , newArray , length );
613
+ return new ObjectSequenceStorage ( newArray );
618
614
}
619
615
620
616
@ NeverDefault
0 commit comments