34
34
import com .oracle .graal .python .builtins .PythonBuiltinClassType ;
35
35
import com .oracle .graal .python .builtins .PythonBuiltins ;
36
36
import 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 ;
37
40
import com .oracle .graal .python .builtins .objects .tuple .PTuple ;
38
41
import com .oracle .graal .python .nodes .SpecialMethodNames ;
39
42
import com .oracle .graal .python .nodes .function .PythonBuiltinBaseNode ;
@@ -90,7 +93,7 @@ protected Object getNone(@SuppressWarnings("unused") PSlice self) {
90
93
}
91
94
92
95
public static StartNode create () {
93
- return SliceBuiltinsFactory . StartNodeFactory .create ();
96
+ return StartNodeFactory .create ();
94
97
}
95
98
}
96
99
@@ -110,7 +113,7 @@ protected Object getNone(@SuppressWarnings("unused") PSlice self) {
110
113
}
111
114
112
115
public static StopNode create () {
113
- return SliceBuiltinsFactory . StopNodeFactory .create ();
116
+ return StopNodeFactory .create ();
114
117
}
115
118
}
116
119
@@ -130,16 +133,16 @@ protected Object getNone(@SuppressWarnings("unused") PSlice self) {
130
133
}
131
134
132
135
public static StepNode create () {
133
- return SliceBuiltinsFactory . StepNodeFactory .create ();
136
+ return StepNodeFactory .create ();
134
137
}
135
138
}
136
139
137
140
@ Builtin (name = "indices" , fixedNumOfPositionalArgs = 2 )
138
141
@ GenerateNodeFactory
139
- @ ImportStatic (SequenceUtil .class )
142
+ @ ImportStatic (PSlice .class )
140
143
abstract static class IndicesNode extends PythonBinaryBuiltinNode {
141
144
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 ) {
143
146
int _start = start ;
144
147
int _stop = stop ;
145
148
0 commit comments