@@ -1828,12 +1828,6 @@ private int sumIntInternal(VirtualFrame frame, Object arg1, int start, PythonObj
1828
1828
}
1829
1829
}
1830
1830
1831
- @ Specialization (rewriteOn = UnexpectedResultException .class )
1832
- double sumDoubleNone (VirtualFrame frame , Object arg1 , @ SuppressWarnings ("unused" ) PNone start ,
1833
- @ Shared ("lib" ) @ CachedLibrary (limit = "getCallSiteInlineCacheMaxDepth()" ) PythonObjectLibrary lib ) throws UnexpectedResultException {
1834
- return sumDoubleInternal (frame , arg1 , 0 , lib );
1835
- }
1836
-
1837
1831
@ Specialization (rewriteOn = UnexpectedResultException .class )
1838
1832
double sumDoubleDouble (VirtualFrame frame , Object arg1 , double start ,
1839
1833
@ Shared ("lib" ) @ CachedLibrary (limit = "getCallSiteInlineCacheMaxDepth()" ) PythonObjectLibrary lib ) throws UnexpectedResultException {
@@ -1862,7 +1856,7 @@ private double sumDoubleInternal(VirtualFrame frame, Object arg1, double start,
1862
1856
}
1863
1857
}
1864
1858
1865
- @ Specialization (replaces = {"sumIntNone" , "sumIntInt" , "sumDoubleNone" , " sumDoubleDouble" })
1859
+ @ Specialization (replaces = {"sumIntNone" , "sumIntInt" , "sumDoubleDouble" })
1866
1860
Object sum (VirtualFrame frame , Object arg1 , Object start ,
1867
1861
@ Shared ("lib" ) @ CachedLibrary (limit = "getCallSiteInlineCacheMaxDepth()" ) PythonObjectLibrary lib ,
1868
1862
@ Cached ("createBinaryProfile()" ) ConditionProfile hasStart ,
@@ -1898,7 +1892,7 @@ private Object iterateGeneric(VirtualFrame frame, Object iterator, Object start,
1898
1892
}
1899
1893
}
1900
1894
1901
- @ Builtin (name = "globals" , minNumOfPositionalArgs = 0 )
1895
+ @ Builtin (name = "globals" )
1902
1896
@ GenerateNodeFactory
1903
1897
public abstract static class GlobalsNode extends PythonBuiltinNode {
1904
1898
@ Child private ReadCallerFrameNode readCallerFrameNode = ReadCallerFrameNode .create ();
@@ -1933,7 +1927,7 @@ public static GlobalsNode create() {
1933
1927
}
1934
1928
}
1935
1929
1936
- @ Builtin (name = "locals" , minNumOfPositionalArgs = 0 , needsFrame = true , alwaysNeedsCallerFrame = true )
1930
+ @ Builtin (name = "locals" , needsFrame = true , alwaysNeedsCallerFrame = true )
1937
1931
@ GenerateNodeFactory
1938
1932
abstract static class LocalsNode extends PythonBuiltinNode {
1939
1933
0 commit comments