@@ -1432,6 +1432,7 @@ protected boolean isSetSubtype(VirtualFrame frame, Object obj, GetClassNode getC
1432
1432
}
1433
1433
1434
1434
@ Builtin (name = "PySet_NextEntry" , minNumOfPositionalArgs = 2 )
1435
+ @ TypeSystemReference (PythonTypes .class )
1435
1436
@ GenerateNodeFactory
1436
1437
public abstract static class PySetNextEntryNode extends PythonBinaryBuiltinNode {
1437
1438
@ Specialization (guards = "pos < size(frame, set, sizeNode)" , limit = "3" )
@@ -1808,19 +1809,13 @@ protected boolean isAcceptedSubtype(VirtualFrame frame, Object obj, GetClassNode
1808
1809
1809
1810
///////////// list /////////////
1810
1811
@ Builtin (name = "PyList_New" , minNumOfPositionalArgs = 1 )
1812
+ @ TypeSystemReference (PythonTypes .class )
1811
1813
@ GenerateNodeFactory
1812
1814
public abstract static class PyListNewNode extends PythonUnaryBuiltinNode {
1813
- @ Specialization (guards = "size < 0" )
1814
- public Object newList (VirtualFrame frame , int size ,
1815
- @ Shared ("raiseNative" ) @ Cached PRaiseNativeNode raiseNativeNode ,
1816
- @ Shared ("nativeNull" ) @ Cached GetNativeNullNode getNativeNullNode ) {
1817
- return raiseNativeNode .raise (frame , getNativeNullNode .execute (), SystemError , BAD_ARG_TO_INTERNAL_FUNC_S , size );
1818
- }
1819
-
1820
1815
@ Specialization (guards = "size < 0" )
1821
1816
public Object newList (VirtualFrame frame , long size ,
1822
- @ Shared ( "raiseNative" ) @ Cached PRaiseNativeNode raiseNativeNode ,
1823
- @ Shared ( "nativeNull" ) @ Cached GetNativeNullNode getNativeNullNode ) {
1817
+ @ Cached PRaiseNativeNode raiseNativeNode ,
1818
+ @ Cached GetNativeNullNode getNativeNullNode ) {
1824
1819
return raiseNativeNode .raise (frame , getNativeNullNode .execute (), SystemError , BAD_ARG_TO_INTERNAL_FUNC_S , size );
1825
1820
}
1826
1821
@@ -1848,6 +1843,7 @@ public Object newList(long size) {
1848
1843
}
1849
1844
1850
1845
@ Builtin (name = "PyList_GetItem" , minNumOfPositionalArgs = 2 )
1846
+ @ TypeSystemReference (PythonTypes .class )
1851
1847
@ GenerateNodeFactory
1852
1848
abstract static class PyListGetItemNode extends PythonBinaryBuiltinNode {
1853
1849
0 commit comments