@@ -336,14 +336,14 @@ Object dontCallBytes(VirtualFrame frame, Object cls, Object source, Object encod
336
336
abstract static class CreateBytes extends PNodeWithContext {
337
337
abstract Object execute (Node inliningTarget , Object cls , byte [] bytes );
338
338
339
- @ Specialization (guards = "!needsNativeAllocationNode.execute(inliningTarget, cls)" , limit = "1" )
339
+ @ Specialization (guards = "!needsNativeAllocationNode.execute(inliningTarget, cls)" )
340
340
static PBytes doManaged (@ SuppressWarnings ("unused" ) Node inliningTarget , Object cls , byte [] bytes ,
341
341
@ SuppressWarnings ("unused" ) @ Shared @ Cached TypeNodes .NeedsNativeAllocationNode needsNativeAllocationNode ,
342
342
@ Cached PythonObjectFactory factory ) {
343
343
return factory .createBytes (cls , bytes );
344
344
}
345
345
346
- @ Specialization (guards = "needsNativeAllocationNode.execute(inliningTarget, cls)" , limit = "1" )
346
+ @ Specialization (guards = "needsNativeAllocationNode.execute(inliningTarget, cls)" )
347
347
static Object doNative (@ SuppressWarnings ("unused" ) Node inliningTarget , Object cls , byte [] bytes ,
348
348
@ SuppressWarnings ("unused" ) @ Shared @ Cached TypeNodes .NeedsNativeAllocationNode needsNativeAllocationNode ,
349
349
@ Cached PythonToNativeNode toNative ,
@@ -966,51 +966,51 @@ abstract static class FloatNode extends PythonBinaryBuiltinNode {
966
966
// Used for the recursive call
967
967
protected abstract double executeDouble (VirtualFrame frame , PythonBuiltinClassType cls , Object arg ) throws UnexpectedResultException ;
968
968
969
- @ Specialization (guards = "isPrimitiveFloat(this, cls, isPrimitiveFloatProfile)" , limit = "1" )
969
+ @ Specialization (guards = "isPrimitiveFloat(this, cls, isPrimitiveFloatProfile)" )
970
970
static double floatFromDouble (@ SuppressWarnings ("unused" ) Object cls , double arg ,
971
971
@ SuppressWarnings ("unused" ) @ Bind ("this" ) Node inliningTarget ,
972
972
@ SuppressWarnings ("unused" ) @ Shared ("isFloat" ) @ Cached InlineIsBuiltinClassProfile isPrimitiveFloatProfile ) {
973
973
return arg ;
974
974
}
975
975
976
- @ Specialization (guards = "isPrimitiveFloat(this, cls, isPrimitiveFloatProfile)" , limit = "1" )
976
+ @ Specialization (guards = "isPrimitiveFloat(this, cls, isPrimitiveFloatProfile)" )
977
977
static double floatFromInt (@ SuppressWarnings ("unused" ) Object cls , int arg ,
978
978
@ SuppressWarnings ("unused" ) @ Bind ("this" ) Node inliningTarget ,
979
979
@ SuppressWarnings ("unused" ) @ Shared ("isFloat" ) @ Cached InlineIsBuiltinClassProfile isPrimitiveFloatProfile ) {
980
980
return arg ;
981
981
}
982
982
983
- @ Specialization (guards = "isPrimitiveFloat(this, cls, isPrimitiveFloatProfile)" , limit = "1" )
983
+ @ Specialization (guards = "isPrimitiveFloat(this, cls, isPrimitiveFloatProfile)" )
984
984
static double floatFromLong (@ SuppressWarnings ("unused" ) Object cls , long arg ,
985
985
@ SuppressWarnings ("unused" ) @ Bind ("this" ) Node inliningTarget ,
986
986
@ SuppressWarnings ("unused" ) @ Shared ("isFloat" ) @ Cached InlineIsBuiltinClassProfile isPrimitiveFloatProfile ) {
987
987
return arg ;
988
988
}
989
989
990
- @ Specialization (guards = "isPrimitiveFloat(this, cls, isPrimitiveFloatProfile)" , limit = "1" )
990
+ @ Specialization (guards = "isPrimitiveFloat(this, cls, isPrimitiveFloatProfile)" )
991
991
static double floatFromBoolean (@ SuppressWarnings ("unused" ) Object cls , boolean arg ,
992
992
@ SuppressWarnings ("unused" ) @ Bind ("this" ) Node inliningTarget ,
993
993
@ SuppressWarnings ("unused" ) @ Shared ("isFloat" ) @ Cached InlineIsBuiltinClassProfile isPrimitiveFloatProfile ) {
994
994
return arg ? 1d : 0d ;
995
995
}
996
996
997
- @ Specialization (guards = "isPrimitiveFloat(this, cls, isPrimitiveFloatProfile)" , limit = "1" )
997
+ @ Specialization (guards = "isPrimitiveFloat(this, cls, isPrimitiveFloatProfile)" )
998
998
static double floatFromString (VirtualFrame frame , @ SuppressWarnings ("unused" ) Object cls , TruffleString obj ,
999
999
@ SuppressWarnings ("unused" ) @ Bind ("this" ) Node inliningTarget ,
1000
1000
@ SuppressWarnings ("unused" ) @ Shared ("isFloat" ) @ Cached InlineIsBuiltinClassProfile isPrimitiveFloatProfile ,
1001
1001
@ Shared ("fromString" ) @ Cached PyFloatFromString fromString ) {
1002
1002
return fromString .execute (frame , obj );
1003
1003
}
1004
1004
1005
- @ Specialization (guards = {"isPrimitiveFloat(this, cls, isPrimitiveFloatProfile)" , "isNoValue(obj)" }, limit = "1" )
1005
+ @ Specialization (guards = {"isPrimitiveFloat(this, cls, isPrimitiveFloatProfile)" , "isNoValue(obj)" })
1006
1006
static double floatFromNoValue (@ SuppressWarnings ("unused" ) Object cls , @ SuppressWarnings ("unused" ) PNone obj ,
1007
1007
@ SuppressWarnings ("unused" ) @ Bind ("this" ) Node inliningTarget ,
1008
1008
@ SuppressWarnings ("unused" ) @ Shared ("isFloat" ) @ Cached InlineIsBuiltinClassProfile isPrimitiveFloatProfile ) {
1009
1009
return 0.0 ;
1010
1010
}
1011
1011
1012
1012
@ Specialization (guards = {"isPrimitiveFloat(this, cls, isPrimitiveFloatProfile)" , "!isNoValue(obj)" }, //
1013
- replaces = "floatFromString" , limit = "1" )
1013
+ replaces = "floatFromString" )
1014
1014
static double floatFromObject (VirtualFrame frame , @ SuppressWarnings ("unused" ) Object cls , Object obj ,
1015
1015
@ Bind ("this" ) Node inliningTarget ,
1016
1016
@ SuppressWarnings ("unused" ) @ Shared ("isFloat" ) @ Cached InlineIsBuiltinClassProfile isPrimitiveFloatProfile ,
@@ -1026,8 +1026,7 @@ static double floatFromObject(VirtualFrame frame, @SuppressWarnings("unused") Ob
1026
1026
@ Specialization (guards = {
1027
1027
"!needsNativeAllocationNode.execute(inliningTarget, cls)" , //
1028
1028
"!isPrimitiveFloat(this, cls, isPrimitiveFloatProfile)" , //
1029
- "isNoValue(obj)" }, //
1030
- limit = "1" )
1029
+ "isNoValue(obj)" })
1031
1030
Object floatFromNoneManagedSubclass (Object cls , PNone obj ,
1032
1031
@ Bind ("this" ) Node inliningTarget ,
1033
1032
@ SuppressWarnings ("unused" ) @ Shared @ Cached TypeNodes .NeedsNativeAllocationNode needsNativeAllocationNode ,
@@ -1037,8 +1036,7 @@ Object floatFromNoneManagedSubclass(Object cls, PNone obj,
1037
1036
1038
1037
@ Specialization (guards = {
1039
1038
"!needsNativeAllocationNode.execute(inliningTarget, cls)" , //
1040
- "!isPrimitiveFloat(this, cls, isPrimitiveFloatProfile)" }, //
1041
- limit = "1" )
1039
+ "!isPrimitiveFloat(this, cls, isPrimitiveFloatProfile)" })
1042
1040
Object floatFromObjectManagedSubclass (VirtualFrame frame , Object cls , Object obj ,
1043
1041
@ SuppressWarnings ("unused" ) @ Bind ("this" ) Node inliningTarget ,
1044
1042
@ SuppressWarnings ("unused" ) @ Shared @ Cached TypeNodes .NeedsNativeAllocationNode needsNativeAllocationNode ,
@@ -1089,14 +1087,14 @@ public PFrozenSet frozensetEmpty(Object cls, @SuppressWarnings("unused") PNone a
1089
1087
return factory ().createFrozenSet (cls );
1090
1088
}
1091
1089
1092
- @ Specialization (guards = "isBuiltinClass.profileIsAnyBuiltinClass(inliningTarget, cls)" , limit = "1" )
1090
+ @ Specialization (guards = "isBuiltinClass.profileIsAnyBuiltinClass(inliningTarget, cls)" )
1093
1091
public static PFrozenSet frozensetIdentity (@ SuppressWarnings ("unused" ) Object cls , PFrozenSet arg ,
1094
1092
@ Bind ("this" ) Node inliningTarget ,
1095
1093
@ Shared ("isBuiltinProfile" ) @ SuppressWarnings ("unused" ) @ Cached IsAnyBuiltinClassProfile isBuiltinClass ) {
1096
1094
return arg ;
1097
1095
}
1098
1096
1099
- @ Specialization (guards = "!isBuiltinClass.profileIsAnyBuiltinClass(inliningTarget, cls)" , limit = "1" )
1097
+ @ Specialization (guards = "!isBuiltinClass.profileIsAnyBuiltinClass(inliningTarget, cls)" )
1100
1098
public PFrozenSet subFrozensetIdentity (Object cls , PFrozenSet arg ,
1101
1099
@ Bind ("this" ) Node inliningTarget ,
1102
1100
@ Shared ("isBuiltinProfile" ) @ SuppressWarnings ("unused" ) @ Cached IsAnyBuiltinClassProfile isBuiltinClass ) {
@@ -2111,7 +2109,7 @@ public final Object executeWith(VirtualFrame frame, Object arg) {
2111
2109
2112
2110
public abstract Object executeWith (VirtualFrame frame , Object cls , Object arg , Object encoding , Object errors );
2113
2111
2114
- @ Specialization (guards = {"!needsNativeAllocationNode.execute(inliningTarget, cls)" , "isNoValue(arg)" }, limit = "1" )
2112
+ @ Specialization (guards = {"!needsNativeAllocationNode.execute(inliningTarget, cls)" , "isNoValue(arg)" })
2115
2113
@ SuppressWarnings ("unused" )
2116
2114
Object strNoArgs (Object cls , PNone arg , Object encoding , Object errors ,
2117
2115
@ Bind ("this" ) Node inliningTarget ,
@@ -2120,7 +2118,7 @@ Object strNoArgs(Object cls, PNone arg, Object encoding, Object errors,
2120
2118
return asPString (cls , T_EMPTY_STRING , inliningTarget , isPrimitiveProfile );
2121
2119
}
2122
2120
2123
- @ Specialization (guards = {"!needsNativeAllocationNode.execute(inliningTarget, cls)" , "!isNoValue(obj)" , "isNoValue(encoding)" , "isNoValue(errors)" }, limit = "1" )
2121
+ @ Specialization (guards = {"!needsNativeAllocationNode.execute(inliningTarget, cls)" , "!isNoValue(obj)" , "isNoValue(encoding)" , "isNoValue(errors)" })
2124
2122
Object strOneArg (VirtualFrame frame , Object cls , Object obj , @ SuppressWarnings ("unused" ) PNone encoding , @ SuppressWarnings ("unused" ) PNone errors ,
2125
2123
@ Bind ("this" ) Node inliningTarget ,
2126
2124
@ SuppressWarnings ("unused" ) @ Shared @ Cached TypeNodes .NeedsNativeAllocationNode needsNativeAllocationNode ,
@@ -2259,7 +2257,7 @@ public static StrNode create() {
2259
2257
@ GenerateNodeFactory
2260
2258
public abstract static class TupleNode extends PythonBinaryBuiltinNode {
2261
2259
2262
- @ Specialization (guards = "!needsNativeAllocationNode.execute(inliningTarget, cls)" , limit = "1" )
2260
+ @ Specialization (guards = "!needsNativeAllocationNode.execute(inliningTarget, cls)" )
2263
2261
static PTuple constructTuple (VirtualFrame frame , Object cls , Object iterable ,
2264
2262
@ SuppressWarnings ("unused" ) @ Bind ("this" ) Node inliningTarget ,
2265
2263
@ SuppressWarnings ("unused" ) @ Shared @ Cached TypeNodes .NeedsNativeAllocationNode needsNativeAllocationNode ,
@@ -2908,7 +2906,7 @@ public final Object varArgExecute(VirtualFrame frame, Object self, Object[] argu
2908
2906
return execute (frame , arguments [0 ], argsWithoutSelf , keywords );
2909
2907
}
2910
2908
2911
- @ Specialization (guards = "!needsNativeAllocationNode.execute(inliningTarget, cls)" , limit = "1" )
2909
+ @ Specialization (guards = "!needsNativeAllocationNode.execute(inliningTarget, cls)" )
2912
2910
static Object doManaged (Object cls , @ SuppressWarnings ("unused" ) Object [] args , @ SuppressWarnings ("unused" ) PKeyword [] kwargs ,
2913
2911
@ Bind ("this" ) Node inliningTarget ,
2914
2912
@ SuppressWarnings ("unused" ) @ Shared @ Cached TypeNodes .NeedsNativeAllocationNode needsNativeAllocationNode ,
@@ -2921,7 +2919,7 @@ static Object doManaged(Object cls, @SuppressWarnings("unused") Object[] args, @
2921
2919
}
2922
2920
}
2923
2921
2924
- @ Specialization (guards = "needsNativeAllocationNode.execute(inliningTarget, cls)" , limit = "1" )
2922
+ @ Specialization (guards = "needsNativeAllocationNode.execute(inliningTarget, cls)" )
2925
2923
static Object doNativeSubtype (Object cls , Object [] args , @ SuppressWarnings ("unused" ) PKeyword [] kwargs ,
2926
2924
@ SuppressWarnings ("unused" ) @ Bind ("this" ) Node inliningTarget ,
2927
2925
@ SuppressWarnings ("unused" ) @ Shared @ Cached TypeNodes .NeedsNativeAllocationNode needsNativeAllocationNode ,
0 commit comments