File tree Expand file tree Collapse file tree 7 files changed +0
-32
lines changed
graalpython/com.oracle.graal.python/src/com/oracle/graal/python/runtime/sequence/storage Expand file tree Collapse file tree 7 files changed +0
-32
lines changed Original file line number Diff line number Diff line change 28
28
import java .util .Arrays ;
29
29
30
30
import com .oracle .graal .python .runtime .sequence .SequenceUtil ;
31
- import com .oracle .truffle .api .nodes .ExplodeLoop ;
32
31
33
32
public final class BoolSequenceStorage extends TypedSequenceStorage {
34
33
@@ -266,7 +265,6 @@ public int index(Object value) {
266
265
267
266
}
268
267
269
- @ ExplodeLoop
270
268
public int indexOfBool (boolean value ) {
271
269
for (int i = 0 ; i < length ; i ++) {
272
270
if (values [i ] == value ) {
@@ -313,7 +311,6 @@ public void extendWithBoolStorage(BoolSequenceStorage other) throws ArithmeticEx
313
311
length = extendedLength ;
314
312
}
315
313
316
- @ ExplodeLoop
317
314
@ Override
318
315
public void reverse () {
319
316
if (length > 0 ) {
@@ -330,7 +327,6 @@ public void reverse() {
330
327
}
331
328
332
329
// TODO: Should use Collection for sorting boolean
333
- @ ExplodeLoop
334
330
@ Override
335
331
public void sort () {
336
332
boolean [] copy = Arrays .copyOf (values , length );
@@ -355,7 +351,6 @@ public Object getIndicativeValue() {
355
351
return 0 ;
356
352
}
357
353
358
- @ ExplodeLoop
359
354
@ Override
360
355
public boolean equals (SequenceStorage other ) {
361
356
if (other .length () != length () || !(other instanceof BoolSequenceStorage )) {
Original file line number Diff line number Diff line change 32
32
33
33
import com .oracle .graal .python .PythonLanguage ;
34
34
import com .oracle .graal .python .runtime .sequence .SequenceUtil ;
35
- import com .oracle .truffle .api .nodes .ExplodeLoop ;
36
35
37
36
public final class ByteSequenceStorage extends TypedSequenceStorage {
38
37
@@ -288,7 +287,6 @@ public int index(Object value) {
288
287
289
288
}
290
289
291
- @ ExplodeLoop
292
290
public int indexOfByte (byte value ) {
293
291
for (int i = 0 ; i < length ; i ++) {
294
292
if (values [i ] == value ) {
@@ -299,7 +297,6 @@ public int indexOfByte(byte value) {
299
297
return -1 ;
300
298
}
301
299
302
- @ ExplodeLoop
303
300
public int indexOfInt (int value ) {
304
301
for (int i = 0 ; i < length ; i ++) {
305
302
if ((values [i ] & 0xFF ) == value ) {
@@ -342,7 +339,6 @@ public void extend(SequenceStorage other) throws SequenceStoreException {
342
339
}
343
340
}
344
341
345
- // @ExplodeLoop
346
342
public void extendWithByteStorage (ByteSequenceStorage other ) {
347
343
int extendedLength = length + other .length ();
348
344
ensureCapacity (extendedLength );
Original file line number Diff line number Diff line change 28
28
import java .util .Arrays ;
29
29
30
30
import com .oracle .graal .python .runtime .sequence .SequenceUtil ;
31
- import com .oracle .truffle .api .nodes .ExplodeLoop ;
32
31
33
32
public final class IntSequenceStorage extends TypedSequenceStorage {
34
33
@@ -312,7 +311,6 @@ public void extendWithIntStorage(IntSequenceStorage other) {
312
311
length = extendedLength ;
313
312
}
314
313
315
- @ ExplodeLoop
316
314
@ Override
317
315
public void reverse () {
318
316
if (length > 0 ) {
@@ -328,7 +326,6 @@ public void reverse() {
328
326
}
329
327
}
330
328
331
- @ ExplodeLoop
332
329
@ Override
333
330
public void sort () {
334
331
int [] copy = Arrays .copyOf (values , length );
@@ -342,7 +339,6 @@ public Object getIndicativeValue() {
342
339
return 0 ;
343
340
}
344
341
345
- @ ExplodeLoop
346
342
@ Override
347
343
public boolean equals (SequenceStorage other ) {
348
344
if (other .length () != length () || !(other instanceof IntSequenceStorage )) {
Original file line number Diff line number Diff line change 29
29
30
30
import com .oracle .graal .python .builtins .objects .list .PList ;
31
31
import com .oracle .graal .python .runtime .sequence .SequenceUtil ;
32
- import com .oracle .truffle .api .nodes .ExplodeLoop ;
33
32
34
33
public final class ListSequenceStorage extends TypedSequenceStorage {
35
34
@@ -286,7 +285,6 @@ public int index(Object value) {
286
285
287
286
}
288
287
289
- @ ExplodeLoop
290
288
public int indexOfList (PList value ) {
291
289
for (int i = 0 ; i < length ; i ++) {
292
290
if (values [i ] == value ) {
@@ -327,7 +325,6 @@ public void extend(SequenceStorage other) throws SequenceStoreException {
327
325
}
328
326
}
329
327
330
- @ ExplodeLoop
331
328
public void extendWithListStorage (ListSequenceStorage other ) {
332
329
int extendedLength = length + other .length ();
333
330
ensureCapacity (extendedLength );
@@ -340,7 +337,6 @@ public void extendWithListStorage(ListSequenceStorage other) {
340
337
length = extendedLength ;
341
338
}
342
339
343
- @ ExplodeLoop
344
340
@ Override
345
341
public void reverse () {
346
342
if (length > 0 ) {
@@ -356,7 +352,6 @@ public void reverse() {
356
352
}
357
353
}
358
354
359
- @ ExplodeLoop
360
355
@ Override
361
356
public void sort () {
362
357
// TODO: need to be tested
@@ -371,7 +366,6 @@ public Object getIndicativeValue() {
371
366
return length > 0 ? values [0 ] : null ;
372
367
}
373
368
374
- @ ExplodeLoop
375
369
@ Override
376
370
public boolean equals (SequenceStorage other ) {
377
371
// TODO: equal algorithm might need more tests
Original file line number Diff line number Diff line change 29
29
import java .util .Arrays ;
30
30
31
31
import com .oracle .graal .python .runtime .sequence .SequenceUtil ;
32
- import com .oracle .truffle .api .nodes .ExplodeLoop ;
33
32
34
33
public final class LongSequenceStorage extends TypedSequenceStorage {
35
34
@@ -274,7 +273,6 @@ public int index(Object val) {
274
273
275
274
}
276
275
277
- @ ExplodeLoop
278
276
public int indexOfLong (long value ) {
279
277
for (int i = 0 ; i < length ; i ++) {
280
278
if (values [i ] == value ) {
@@ -324,7 +322,6 @@ public void extendWithLongStorage(LongSequenceStorage other) {
324
322
length = extendedLength ;
325
323
}
326
324
327
- @ ExplodeLoop
328
325
@ Override
329
326
public void reverse () {
330
327
if (length > 0 ) {
@@ -340,7 +337,6 @@ public void reverse() {
340
337
}
341
338
}
342
339
343
- @ ExplodeLoop
344
340
@ Override
345
341
public void sort () {
346
342
long [] copy = Arrays .copyOf (values , length );
@@ -354,7 +350,6 @@ public Object getIndicativeValue() {
354
350
return 0 ;
355
351
}
356
352
357
- @ ExplodeLoop
358
353
@ Override
359
354
public boolean equals (SequenceStorage other ) {
360
355
if (other .length () != length () || !(other instanceof LongSequenceStorage )) {
Original file line number Diff line number Diff line change 28
28
import java .util .Arrays ;
29
29
30
30
import com .oracle .graal .python .runtime .sequence .SequenceUtil ;
31
- import com .oracle .truffle .api .nodes .ExplodeLoop ;
32
31
33
32
public final class ObjectSequenceStorage extends BasicSequenceStorage {
34
33
@@ -266,7 +265,6 @@ public Object getIndicativeValue() {
266
265
}
267
266
268
267
@ Override
269
- @ ExplodeLoop
270
268
public boolean equals (SequenceStorage other ) {
271
269
if (other .length () != length ()) {
272
270
return false ;
Original file line number Diff line number Diff line change 29
29
30
30
import com .oracle .graal .python .builtins .objects .tuple .PTuple ;
31
31
import com .oracle .graal .python .runtime .sequence .SequenceUtil ;
32
- import com .oracle .truffle .api .nodes .ExplodeLoop ;
33
32
34
33
public final class TupleSequenceStorage extends TypedSequenceStorage {
35
34
@@ -267,7 +266,6 @@ public int index(Object value) {
267
266
268
267
}
269
268
270
- @ ExplodeLoop
271
269
public int indexOfPTuple (PTuple value ) {
272
270
for (int i = 0 ; i < length ; i ++) {
273
271
if (values [i ] == value ) {
@@ -302,7 +300,6 @@ public void extend(SequenceStorage other) throws SequenceStoreException {
302
300
}
303
301
}
304
302
305
- @ ExplodeLoop
306
303
public void extendWithPTupleStorage (TupleSequenceStorage other ) {
307
304
int extendedLength = length + other .length ();
308
305
ensureCapacity (extendedLength );
@@ -315,7 +312,6 @@ public void extendWithPTupleStorage(TupleSequenceStorage other) {
315
312
length = extendedLength ;
316
313
}
317
314
318
- @ ExplodeLoop
319
315
@ Override
320
316
public void reverse () {
321
317
if (length > 0 ) {
@@ -331,7 +327,6 @@ public void reverse() {
331
327
}
332
328
}
333
329
334
- @ ExplodeLoop
335
330
@ Override
336
331
public void sort () {
337
332
PTuple [] copy = Arrays .copyOf (values , length );
@@ -345,7 +340,6 @@ public Object getIndicativeValue() {
345
340
return length > 0 ? values [0 ] : null ;
346
341
}
347
342
348
- @ ExplodeLoop
349
343
@ Override
350
344
public boolean equals (SequenceStorage other ) {
351
345
if (other .length () != length () || !(other instanceof TupleSequenceStorage )) {
You can’t perform that action at this time.
0 commit comments