3434import com .oracle .graal .python .builtins .PythonBuiltinClassType ;
3535import com .oracle .graal .python .builtins .PythonBuiltins ;
3636import com .oracle .graal .python .builtins .objects .PNone ;
37+ import com .oracle .graal .python .builtins .objects .slice .SliceBuiltinsFactory .StartNodeFactory ;
38+ import com .oracle .graal .python .builtins .objects .slice .SliceBuiltinsFactory .StepNodeFactory ;
39+ import com .oracle .graal .python .builtins .objects .slice .SliceBuiltinsFactory .StopNodeFactory ;
3740import com .oracle .graal .python .builtins .objects .tuple .PTuple ;
3841import com .oracle .graal .python .nodes .SpecialMethodNames ;
3942import com .oracle .graal .python .nodes .function .PythonBuiltinBaseNode ;
@@ -90,7 +93,7 @@ protected Object getNone(@SuppressWarnings("unused") PSlice self) {
9093 }
9194
9295 public static StartNode create () {
93- return SliceBuiltinsFactory . StartNodeFactory .create ();
96+ return StartNodeFactory .create ();
9497 }
9598 }
9699
@@ -110,7 +113,7 @@ protected Object getNone(@SuppressWarnings("unused") PSlice self) {
110113 }
111114
112115 public static StopNode create () {
113- return SliceBuiltinsFactory . StopNodeFactory .create ();
116+ return StopNodeFactory .create ();
114117 }
115118 }
116119
@@ -130,16 +133,16 @@ protected Object getNone(@SuppressWarnings("unused") PSlice self) {
130133 }
131134
132135 public static StepNode create () {
133- return SliceBuiltinsFactory . StepNodeFactory .create ();
136+ return StepNodeFactory .create ();
134137 }
135138 }
136139
137140 @ Builtin (name = "indices" , fixedNumOfPositionalArgs = 2 )
138141 @ GenerateNodeFactory
139- @ ImportStatic (SequenceUtil .class )
142+ @ ImportStatic (PSlice .class )
140143 abstract static class IndicesNode extends PythonBinaryBuiltinNode {
141144
142- private Object [] adjustIndices (int length , int start , int stop , int step ) {
145+ private static Object [] adjustIndices (int length , int start , int stop , int step ) {
143146 int _start = start ;
144147 int _stop = stop ;
145148
0 commit comments