@@ -2862,42 +2862,42 @@ static void setCurrentException(Frame frame, PException e,
2862
2862
@ GenerateUncached
2863
2863
public abstract static class PRaiseNativeNode extends Node {
2864
2864
2865
- public final int raiseInt (Frame frame , int errorValue , Object errType , String format , Object ... arguments ) {
2865
+ public final int raiseInt (Frame frame , int errorValue , PythonBuiltinClassType errType , String format , Object ... arguments ) {
2866
2866
return executeInt (frame , errorValue , errType , format , arguments );
2867
2867
}
2868
2868
2869
- public final Object raise (Frame frame , Object errorValue , Object errType , String format , Object ... arguments ) {
2869
+ public final Object raise (Frame frame , Object errorValue , PythonBuiltinClassType errType , String format , Object ... arguments ) {
2870
2870
return execute (frame , errorValue , errType , format , arguments );
2871
2871
}
2872
2872
2873
- public final int raiseIntWithoutFrame (int errorValue , Object errType , String format , Object ... arguments ) {
2873
+ public final int raiseIntWithoutFrame (int errorValue , PythonBuiltinClassType errType , String format , Object ... arguments ) {
2874
2874
return executeInt (null , errorValue , errType , format , arguments );
2875
2875
}
2876
2876
2877
- public abstract Object execute (Frame frame , Object errorValue , Object errType , String format , Object [] arguments );
2877
+ public abstract Object execute (Frame frame , Object errorValue , PythonBuiltinClassType errType , String format , Object [] arguments );
2878
2878
2879
- public abstract int executeInt (Frame frame , int errorValue , Object errType , String format , Object [] arguments );
2879
+ public abstract int executeInt (Frame frame , int errorValue , PythonBuiltinClassType errType , String format , Object [] arguments );
2880
2880
2881
2881
@ Specialization
2882
- static int doInt (Frame frame , int errorValue , Object errType , String format , Object [] arguments ,
2882
+ static int doInt (Frame frame , int errorValue , PythonBuiltinClassType errType , String format , Object [] arguments ,
2883
2883
@ Shared ("raiseNode" ) @ Cached PRaiseNode raiseNode ,
2884
2884
@ Shared ("transformExceptionToNativeNode" ) @ Cached TransformExceptionToNativeNode transformExceptionToNativeNode ) {
2885
2885
raiseNative (frame , errType , format , arguments , raiseNode , transformExceptionToNativeNode );
2886
2886
return errorValue ;
2887
2887
}
2888
2888
2889
2889
@ Specialization
2890
- static Object doObject (Frame frame , Object errorValue , Object errType , String format , Object [] arguments ,
2890
+ static Object doObject (Frame frame , Object errorValue , PythonBuiltinClassType errType , String format , Object [] arguments ,
2891
2891
@ Shared ("raiseNode" ) @ Cached PRaiseNode raiseNode ,
2892
2892
@ Shared ("transformExceptionToNativeNode" ) @ Cached TransformExceptionToNativeNode transformExceptionToNativeNode ) {
2893
2893
raiseNative (frame , errType , format , arguments , raiseNode , transformExceptionToNativeNode );
2894
2894
return errorValue ;
2895
2895
}
2896
2896
2897
- public static void raiseNative (Frame frame , Object errType , String format , Object [] arguments , PRaiseNode raiseNode ,
2897
+ public static void raiseNative (Frame frame , PythonBuiltinClassType errType , String format , Object [] arguments , PRaiseNode raiseNode ,
2898
2898
TransformExceptionToNativeNode transformExceptionToNativeNode ) {
2899
2899
try {
2900
- throw raiseNode .execute (errType , PNone . NO_VALUE , format , arguments );
2900
+ throw raiseNode .raise (errType , format , arguments );
2901
2901
} catch (PException p ) {
2902
2902
transformExceptionToNativeNode .execute (frame , p );
2903
2903
}
0 commit comments