@@ -2621,7 +2621,7 @@ public boolean isApplicable(Architecture arch) {
2621
2621
2622
2622
private static void registerStringCodingPlugins (InvocationPlugins plugins ) {
2623
2623
Registration r = new Registration (plugins , "java.lang.StringCoding" );
2624
- r .register (new InvocationPlugin ("implEncodeISOArray " , byte [].class , int .class , byte [].class , int .class , int .class ) {
2624
+ r .register (new InvocationPlugin ("encodeISOArray0 " , byte [].class , int .class , byte [].class , int .class , int .class ) {
2625
2625
@ Override
2626
2626
public boolean apply (GraphBuilderContext b , ResolvedJavaMethod targetMethod , Receiver receiver , ValueNode sa , ValueNode sp ,
2627
2627
ValueNode da , ValueNode dp , ValueNode len ) {
@@ -2634,7 +2634,7 @@ public boolean apply(GraphBuilderContext b, ResolvedJavaMethod targetMethod, Rec
2634
2634
}
2635
2635
}
2636
2636
});
2637
- r .register (new InvocationPlugin ("implEncodeAsciiArray " , char [].class , int .class , byte [].class , int .class , int .class ) {
2637
+ r .register (new InvocationPlugin ("encodeAsciiArray0 " , char [].class , int .class , byte [].class , int .class , int .class ) {
2638
2638
@ Override
2639
2639
public boolean apply (GraphBuilderContext b , ResolvedJavaMethod targetMethod , Receiver receiver , ValueNode sa , ValueNode sp ,
2640
2640
ValueNode da , ValueNode dp , ValueNode len ) {
@@ -2646,17 +2646,10 @@ public boolean apply(GraphBuilderContext b, ResolvedJavaMethod targetMethod, Rec
2646
2646
}
2647
2647
}
2648
2648
});
2649
- r .register (new InvocationPlugin ("countPositives " , byte [].class , int .class , int .class ) {
2649
+ r .register (new InvocationPlugin ("countPositives0 " , byte [].class , int .class , int .class ) {
2650
2650
@ Override
2651
2651
public boolean apply (GraphBuilderContext b , ResolvedJavaMethod targetMethod , Receiver receiver , ValueNode ba , ValueNode off , ValueNode len ) {
2652
2652
try (InvocationPluginHelper helper = new InvocationPluginHelper (b , targetMethod )) {
2653
- helper .intrinsicRangeCheck (off , Condition .LT , ConstantNode .forInt (0 ));
2654
- helper .intrinsicRangeCheck (len , Condition .LT , ConstantNode .forInt (0 ));
2655
-
2656
- ValueNode arrayLength = b .add (new ArrayLengthNode (ba ));
2657
- ValueNode limit = b .add (AddNode .create (off , len , NodeView .DEFAULT ));
2658
- helper .intrinsicRangeCheck (arrayLength , Condition .LT , limit );
2659
-
2660
2653
ValueNode array = helper .arrayElementPointer (ba , JavaKind .Byte , off );
2661
2654
b .addPush (JavaKind .Int , new CountPositivesNode (array , len ));
2662
2655
return true ;
0 commit comments