@@ -647,7 +647,7 @@ public int lengthWithState(ThreadState state,
647
647
@ Exclusive @ Cached ConditionProfile ltZero ,
648
648
@ Exclusive @ Cached LookupInheritedAttributeNode .Dynamic getLenNode ,
649
649
@ Exclusive @ Cached CallUnaryMethodNode callNode ,
650
- @ Exclusive @ Cached PRaiseNode raiseNode ,
650
+ @ Shared ( "raise" ) @ Cached PRaiseNode raiseNode ,
651
651
@ Exclusive @ CachedLibrary (limit = "1" ) PythonObjectLibrary lib ) {
652
652
Object lenFunc = getLenNode .execute (this , __LEN__ );
653
653
if (hasLen .profile (lenFunc != PNone .NO_VALUE )) {
@@ -731,7 +731,7 @@ public boolean isTrueWithState(ThreadState state,
731
731
@ Exclusive @ Cached ConditionProfile hasBool ,
732
732
@ Exclusive @ Cached ConditionProfile hasLen ,
733
733
@ Exclusive @ Cached CastToJavaBooleanNode castToBoolean ,
734
- @ Exclusive @ Cached PRaiseNode raiseNode ) {
734
+ @ Shared ( "raise" ) @ Cached PRaiseNode raiseNode ) {
735
735
// n.b.: CPython's early returns for PyTrue/PyFalse/PyNone are handled
736
736
// in the message impls in PNone and PInt
737
737
Object boolMethod = lib .lookupAttributeOnType (this , __BOOL__ );
@@ -771,7 +771,7 @@ public final boolean isHashable(@CachedLibrary("this") PythonObjectLibrary lib,
771
771
public long hashWithState (ThreadState state ,
772
772
@ CachedLibrary ("this" ) PythonObjectLibrary lib ,
773
773
@ Shared ("methodLib" ) @ CachedLibrary (limit = "2" ) PythonObjectLibrary methodLib ,
774
- @ Exclusive @ Cached PRaiseNode raise ,
774
+ @ Shared ( "raise" ) @ Cached PRaiseNode raise ,
775
775
@ Exclusive @ Cached CastToJavaLongExactNode castToLong ) {
776
776
Object hashMethod = lib .lookupAttributeOnType (this , __HASH__ );
777
777
if (!methodLib .isCallable (hashMethod )) {
@@ -824,7 +824,7 @@ public Object asIndexWithState(ThreadState state,
824
824
@ CachedLibrary ("this" ) PythonObjectLibrary lib ,
825
825
@ Shared ("methodLib" ) @ CachedLibrary (limit = "2" ) PythonObjectLibrary methodLib ,
826
826
@ CachedLibrary (limit = "5" ) PythonObjectLibrary resultLib ,
827
- @ Exclusive @ Cached PRaiseNode raise ,
827
+ @ Shared ( "raise" ) @ Cached PRaiseNode raise ,
828
828
@ Exclusive @ Cached IsSubtypeNode isSubtype ,
829
829
@ Exclusive @ Cached ConditionProfile noIndex ,
830
830
@ Exclusive @ Cached ConditionProfile resultProfile ) {
@@ -848,7 +848,7 @@ public Object asIndexWithState(ThreadState state,
848
848
public String asPathWithState (ThreadState state ,
849
849
@ CachedLibrary ("this" ) PythonObjectLibrary lib ,
850
850
@ Shared ("methodLib" ) @ CachedLibrary (limit = "2" ) PythonObjectLibrary methodLib ,
851
- @ Exclusive @ Cached PRaiseNode raise ,
851
+ @ Shared ( "raise" ) @ Cached PRaiseNode raise ,
852
852
@ Cached CastToJavaStringNode castToJavaStringNode ) {
853
853
Object func = lib .lookupAttributeOnType (this , __FSPATH__ );
854
854
if (func == PNone .NO_VALUE ) {
@@ -867,7 +867,7 @@ public Object asPStringWithState(ThreadState state,
867
867
@ CachedLibrary ("this" ) PythonObjectLibrary lib ,
868
868
@ CachedLibrary (limit = "1" ) PythonObjectLibrary resultLib ,
869
869
@ Exclusive @ Cached IsSubtypeNode isSubtypeNode ,
870
- @ Exclusive @ Cached PRaiseNode raise ) {
870
+ @ Shared ( "raise" ) @ Cached PRaiseNode raise ) {
871
871
return asPString (lib , this , state , isSubtypeNode , resultLib , raise );
872
872
}
873
873
@@ -887,7 +887,7 @@ public int asFileDescriptorWithState(ThreadState state,
887
887
@ CachedLibrary ("this" ) PythonObjectLibrary lib ,
888
888
@ Shared ("methodLib" ) @ CachedLibrary (limit = "2" ) PythonObjectLibrary methodLib ,
889
889
@ CachedLibrary (limit = "1" ) PythonObjectLibrary libResult ,
890
- @ Exclusive @ Cached PRaiseNode raiseNode ,
890
+ @ Shared ( "raise" ) @ Cached PRaiseNode raiseNode ,
891
891
@ Exclusive @ Cached BranchProfile noFilenoMethodProfile ,
892
892
@ Exclusive @ Cached IsBuiltinClassProfile isIntProfile ,
893
893
@ Exclusive @ Cached CastToJavaIntExactNode castToJavaIntNode ,
@@ -1058,7 +1058,7 @@ public Object lookupAndCallRegularMethodWithState(ThreadState state, String meth
1058
1058
public Object asPIntWithState (ThreadState state ,
1059
1059
@ CachedLibrary ("this" ) PythonObjectLibrary lib ,
1060
1060
@ Shared ("methodLib" ) @ CachedLibrary (limit = "2" ) PythonObjectLibrary methodLib ,
1061
- @ Exclusive @ Cached PRaiseNode raise ,
1061
+ @ Shared ( "raise" ) @ Cached PRaiseNode raise ,
1062
1062
@ Exclusive @ Cached ConditionProfile hasIndexFunc ,
1063
1063
@ Exclusive @ Cached ConditionProfile hasIntFunc ) {
1064
1064
Object result = PNone .NO_VALUE ;
@@ -1085,7 +1085,7 @@ public int asSizeWithState(Object type, ThreadState state,
1085
1085
@ CachedLibrary ("this" ) PythonObjectLibrary lib ,
1086
1086
@ Exclusive @ Cached BranchProfile overflow ,
1087
1087
@ Exclusive @ Cached ConditionProfile ignoreOverflow ,
1088
- @ Exclusive @ Cached PRaiseNode raise ,
1088
+ @ Shared ( "raise" ) @ Cached PRaiseNode raise ,
1089
1089
@ Exclusive @ Cached CastToJavaLongLossyNode castToLong ) {
1090
1090
Object result = lib .asIndexWithState (this , state );
1091
1091
long longResult ;
@@ -1119,7 +1119,7 @@ public double asJavaDoubleWithState(ThreadState state,
1119
1119
@ Exclusive @ Cached ConditionProfile hasIndexFunc ,
1120
1120
@ Exclusive @ Cached CastToJavaDoubleNode castToDouble ,
1121
1121
@ Exclusive @ Cached ConditionProfile hasFloatFunc ,
1122
- @ Exclusive @ Cached PRaiseNode raise ) {
1122
+ @ Shared ( "raise" ) @ Cached PRaiseNode raise ) {
1123
1123
1124
1124
assert !MathGuards .isNumber (this ) : this .getClass ().getSimpleName ();
1125
1125
@@ -1147,7 +1147,7 @@ public long asJavaLongWithState(ThreadState state,
1147
1147
@ CachedLibrary ("this" ) PythonObjectLibrary lib ,
1148
1148
@ Shared ("methodLib" ) @ CachedLibrary (limit = "2" ) PythonObjectLibrary methodLib ,
1149
1149
@ Exclusive @ Cached CastToJavaLongExactNode castToLong ,
1150
- @ Exclusive @ Cached PRaiseNode raise ) {
1150
+ @ Shared ( "raise" ) @ Cached PRaiseNode raise ) {
1151
1151
1152
1152
assert !MathGuards .isNumber (this ) : this .getClass ().getSimpleName ();
1153
1153
0 commit comments