File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed
graalpython/com.oracle.graal.python/src/com/oracle/graal/python/nodes Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -131,11 +131,11 @@ public static boolean isIntStorage(PList list) {
131
131
return list .getSequenceStorage () instanceof IntSequenceStorage ;
132
132
}
133
133
134
- public static boolean isIntStorage (PArray array ) {
134
+ public static boolean isIntStorage (PSequence array ) {
135
135
return array .getSequenceStorage () instanceof IntSequenceStorage ;
136
136
}
137
137
138
- public static boolean isByteStorage (PArray array ) {
138
+ public static boolean isByteStorage (PSequence array ) {
139
139
return array .getSequenceStorage () instanceof ByteSequenceStorage ;
140
140
}
141
141
Original file line number Diff line number Diff line change 42
42
43
43
import java .util .ArrayList ;
44
44
import java .util .Iterator ;
45
- import java .util .List ;
46
45
47
46
import com .oracle .graal .python .builtins .objects .PNone ;
48
47
import com .oracle .graal .python .builtins .objects .dict .PDict ;
54
53
import com .oracle .graal .python .nodes .control .GetNextNode ;
55
54
import com .oracle .graal .python .runtime .exception .PException ;
56
55
import com .oracle .graal .python .runtime .exception .PythonErrorType ;
56
+ import com .oracle .truffle .api .CompilerDirectives .TruffleBoundary ;
57
57
import com .oracle .truffle .api .dsl .Cached ;
58
58
import com .oracle .truffle .api .dsl .NodeChild ;
59
59
import com .oracle .truffle .api .dsl .NodeChildren ;
@@ -119,13 +119,14 @@ Object[] starargs(PNone none) {
119
119
}
120
120
121
121
@ Specialization
122
+ @ TruffleBoundary (allowInlining = true )
122
123
Object [] starargs (Object object ,
123
124
@ Cached ("create()" ) GetIteratorNode getIterator ,
124
125
@ Cached ("create()" ) GetNextNode next ,
125
126
@ Cached ("createBinaryProfile()" ) ConditionProfile errorProfile ) {
126
127
Object iterator = getIterator .executeWith (object );
127
128
if (iterator != PNone .NO_VALUE && iterator != PNone .NONE ) {
128
- List <Object > internalStorage = new ArrayList <>();
129
+ ArrayList <Object > internalStorage = new ArrayList <>();
129
130
while (true ) {
130
131
try {
131
132
internalStorage .add (next .execute (iterator ));
You can’t perform that action at this time.
0 commit comments