|
44 | 44 |
|
45 | 45 | import com.oracle.graal.python.PythonLanguage; |
46 | 46 | import com.oracle.graal.python.builtins.objects.list.PList.ListOrigin; |
47 | | -import com.oracle.graal.python.builtins.objects.list.PList.ListOrigin.SizeEstimate; |
48 | 47 | import com.oracle.graal.python.nodes.PNodeWithContext; |
49 | 48 | import com.oracle.graal.python.runtime.PythonContext; |
50 | 49 | import com.oracle.graal.python.runtime.PythonOptions; |
|
60 | 59 | import com.oracle.graal.python.runtime.sequence.storage.SequenceStorageFactory; |
61 | 60 | import com.oracle.truffle.api.CompilerAsserts; |
62 | 61 | import com.oracle.truffle.api.CompilerDirectives; |
| 62 | +import com.oracle.truffle.api.CompilerDirectives.CompilationFinal; |
63 | 63 | import com.oracle.truffle.api.TruffleLogger; |
64 | 64 | import com.oracle.truffle.api.dsl.Specialization; |
65 | 65 | import com.oracle.truffle.api.frame.Frame; |
|
69 | 69 | import com.oracle.truffle.api.source.SourceSection; |
70 | 70 |
|
71 | 71 | abstract class SequenceFromStackNode extends PNodeWithContext { |
72 | | - @CompilerDirectives.CompilationFinal protected final int length; |
73 | | - @CompilerDirectives.CompilationFinal protected SequenceStorage.ListStorageType type = SequenceStorage.ListStorageType.Uninitialized; |
| 72 | + @CompilationFinal protected final int length; |
| 73 | + @CompilationFinal protected SequenceStorage.ListStorageType type = SequenceStorage.ListStorageType.Uninitialized; |
74 | 74 |
|
75 | 75 | SequenceFromStackNode(int length) { |
76 | 76 | this.length = length; |
@@ -199,7 +199,7 @@ private SequenceStorage genericFallback(VirtualFrame frame, Object array, int st |
199 | 199 | elements[j] = frame.getObject(i); |
200 | 200 | frame.setObject(i, null); |
201 | 201 | } |
202 | | - return new ObjectSequenceStorage(elements, elements.length); |
| 202 | + return new ObjectSequenceStorage(elements, length); |
203 | 203 | } |
204 | 204 |
|
205 | 205 | private static int castInt(Object o) throws UnexpectedResultException { |
|
0 commit comments