@@ -691,7 +691,6 @@ private <A, T extends Node> T insertChildNode(Node[] nodes, int nodeIndex, Class
691
691
return CompilerDirectives .castExact (doInsertChildNode (nodes , nodeIndex , nodeSupplier , argument ), cachedClass );
692
692
}
693
693
694
- @ InliningCutoff
695
694
@ SuppressWarnings ("unchecked" )
696
695
private <A , T extends Node > T doInsertChildNode (Node [] nodes , int nodeIndex , NodeFunction <A , T > nodeSupplier , A argument ) {
697
696
CompilerDirectives .transferToInterpreterAndInvalidate ();
@@ -727,7 +726,6 @@ private <T extends Node, U> T insertChildNodeInt(Node[] nodes, int nodeIndex, Cl
727
726
return doInsertChildNodeInt (nodes , nodeIndex , nodeSupplier , argument );
728
727
}
729
728
730
- @ InliningCutoff
731
729
@ SuppressWarnings ("unchecked" )
732
730
private <T extends Node > T doInsertChildNodeInt (Node [] nodes , int nodeIndex , IntNodeFunction <T > nodeSupplier , int argument ) {
733
731
CompilerDirectives .transferToInterpreterAndInvalidate ();
@@ -751,7 +749,6 @@ private <T extends Node, U extends T> U insertChildNode(Node[] nodes, int nodeIn
751
749
return CompilerDirectives .castExact (doInsertChildNode (nodes , nodeIndex , nodeSupplier ), cachedClass );
752
750
}
753
751
754
- @ InliningCutoff
755
752
@ SuppressWarnings ("unchecked" )
756
753
private <T extends Node > T doInsertChildNode (Node [] nodes , int nodeIndex , NodeSupplier <T > nodeSupplier ) {
757
754
CompilerDirectives .transferToInterpreterAndInvalidate ();
@@ -2426,13 +2423,11 @@ private void chainPythonExceptions(VirtualFrame virtualFrame, MutableLoopData mu
2426
2423
}
2427
2424
}
2428
2425
2429
- @ InliningCutoff
2430
2426
private PException raiseUnkownBytecodeError (final byte bc ) {
2431
2427
CompilerDirectives .transferToInterpreterAndInvalidate ();
2432
2428
throw PRaiseNode .raiseUncached (this , SystemError , toTruffleStringUncached ("not implemented bytecode %s" ), OpCodes .fromOpCode (bc ));
2433
2429
}
2434
2430
2435
- @ InliningCutoff
2436
2431
private void generalizeForIterI (int bci , QuickeningGeneralizeException e ) {
2437
2432
CompilerDirectives .transferToInterpreterAndInvalidate ();
2438
2433
if (e .type == QuickeningTypes .OBJECT ) {
@@ -2442,7 +2437,6 @@ private void generalizeForIterI(int bci, QuickeningGeneralizeException e) {
2442
2437
}
2443
2438
}
2444
2439
2445
- @ InliningCutoff
2446
2440
private void bytecodeForIter (int bci ) {
2447
2441
CompilerDirectives .transferToInterpreterAndInvalidate ();
2448
2442
if ((outputCanQuicken [bci ] & QuickeningTypes .INT ) != 0 ) {
@@ -2452,14 +2446,12 @@ private void bytecodeForIter(int bci) {
2452
2446
}
2453
2447
}
2454
2448
2455
- @ InliningCutoff
2456
2449
private void generalizePopAndJumpIfTrueB (int bci ) {
2457
2450
CompilerDirectives .transferToInterpreterAndInvalidate ();
2458
2451
generalizeInputs (bci );
2459
2452
bytecode [bci ] = OpCodesConstants .POP_AND_JUMP_IF_TRUE_O ;
2460
2453
}
2461
2454
2462
- @ InliningCutoff
2463
2455
private void generalizePopAndJumpIfFalseB (int bci ) {
2464
2456
CompilerDirectives .transferToInterpreterAndInvalidate ();
2465
2457
generalizeInputs (bci );
@@ -2484,14 +2476,12 @@ private boolean bytecodePopCondition(VirtualFrame virtualFrame, int stackTop, No
2484
2476
return isTrue .execute (virtualFrame , cond );
2485
2477
}
2486
2478
2487
- @ InliningCutoff
2488
2479
private Object generalizePopCondition (VirtualFrame virtualFrame , int stackTop , int bci ) {
2489
2480
CompilerDirectives .transferToInterpreterAndInvalidate ();
2490
2481
generalizeInputs (bci );
2491
2482
return virtualFrame .getValue (stackTop );
2492
2483
}
2493
2484
2494
- @ InliningCutoff
2495
2485
private void bytecodeBinaryOpAdaptive (VirtualFrame virtualFrame , int stackTop , byte [] localBC , int bci , Node [] localNodes , int op , boolean useCachedNodes ) {
2496
2486
CompilerDirectives .transferToInterpreterAndInvalidate ();
2497
2487
if (virtualFrame .isObject (stackTop ) && virtualFrame .isObject (stackTop - 1 )) {
@@ -2644,7 +2634,6 @@ private void bytecodeBinaryOpIIO(VirtualFrame virtualFrame, int stackTop, int bc
2644
2634
right = virtualFrame .getInt (stackTop );
2645
2635
left = virtualFrame .getInt (stackTop - 1 );
2646
2636
} else {
2647
- CompilerDirectives .transferToInterpreterAndInvalidate ();
2648
2637
generalizeBinaryOp (virtualFrame , stackTop , bci , localNodes , op );
2649
2638
return ;
2650
2639
}
@@ -2823,7 +2812,6 @@ private void bytecodeBinaryOpDDD(VirtualFrame virtualFrame, int stackTop, int bc
2823
2812
right = virtualFrame .getDouble (stackTop );
2824
2813
left = virtualFrame .getDouble (stackTop - 1 );
2825
2814
} else {
2826
- CompilerDirectives .transferToInterpreterAndInvalidate ();
2827
2815
generalizeBinaryOp (virtualFrame , stackTop , bci , adoptedNodes , op );
2828
2816
return ;
2829
2817
}
@@ -2861,7 +2849,6 @@ private void bytecodeBinaryOpDDB(VirtualFrame virtualFrame, int stackTop, int bc
2861
2849
right = virtualFrame .getDouble (stackTop );
2862
2850
left = virtualFrame .getDouble (stackTop - 1 );
2863
2851
} else {
2864
- CompilerDirectives .transferToInterpreterAndInvalidate ();
2865
2852
generalizeBinaryOp (virtualFrame , stackTop , bci , adoptedNodes , op );
2866
2853
return ;
2867
2854
}
@@ -2898,7 +2885,6 @@ private void bytecodeBinaryOpDDO(VirtualFrame virtualFrame, int stackTop, int bc
2898
2885
right = virtualFrame .getInt (stackTop );
2899
2886
left = virtualFrame .getInt (stackTop - 1 );
2900
2887
} else {
2901
- CompilerDirectives .transferToInterpreterAndInvalidate ();
2902
2888
generalizeBinaryOp (virtualFrame , stackTop , bci , localNodes , op );
2903
2889
return ;
2904
2890
}
@@ -2950,7 +2936,6 @@ private void bytecodeBinaryOpDDO(VirtualFrame virtualFrame, int stackTop, int bc
2950
2936
virtualFrame .setObject (stackTop - 1 , result );
2951
2937
}
2952
2938
2953
- @ InliningCutoff
2954
2939
private void generalizeBinaryOp (VirtualFrame virtualFrame , int stackTop , int bci , Node [] localNodes , int op ) {
2955
2940
CompilerDirectives .transferToInterpreterAndInvalidate ();
2956
2941
virtualFrame .setObject (stackTop , virtualFrame .getValue (stackTop ));
@@ -2960,7 +2945,6 @@ private void generalizeBinaryOp(VirtualFrame virtualFrame, int stackTop, int bci
2960
2945
bytecodeBinaryOpOOO (virtualFrame , stackTop , bci , localNodes , op , bcioffset );
2961
2946
}
2962
2947
2963
- @ InliningCutoff
2964
2948
private void generalizeBinaryOpIIIOverflow (VirtualFrame virtualFrame , int stackTop , int bci , int op ) {
2965
2949
CompilerDirectives .transferToInterpreterAndInvalidate ();
2966
2950
bytecode [bci ] = OpCodesConstants .BINARY_OP_II_O ;
@@ -2984,7 +2968,6 @@ private void bytecodeBinaryOpOOO(VirtualFrame virtualFrame, int stackTop, int bc
2984
2968
virtualFrame .setObject (stackTop - 1 , result );
2985
2969
}
2986
2970
2987
- @ InliningCutoff
2988
2971
private void bytecodeUnaryOpAdaptive (VirtualFrame virtualFrame , int stackTop , int bci , byte [] localBC , Node [] localNodes ) {
2989
2972
CompilerDirectives .transferToInterpreterAndInvalidate ();
2990
2973
int op = Byte .toUnsignedInt (localBC [bci + 1 ]);
@@ -3178,7 +3161,6 @@ private void bytecodeUnaryOpBO(VirtualFrame virtualFrame, int stackTop, int bci,
3178
3161
}
3179
3162
}
3180
3163
3181
- @ InliningCutoff
3182
3164
private void generalizeUnaryOp (VirtualFrame virtualFrame , int stackTop , int bci , int op ) {
3183
3165
CompilerDirectives .transferToInterpreterAndInvalidate ();
3184
3166
virtualFrame .setObject (stackTop , virtualFrame .getValue (stackTop ));
@@ -3204,7 +3186,6 @@ private void bytecodeUnaryOpOO(VirtualFrame virtualFrame, int stackTop, int bci,
3204
3186
virtualFrame .setObject (stackTop , result );
3205
3187
}
3206
3188
3207
- @ InliningCutoff
3208
3189
private void bytecodeStoreFastAdaptive (VirtualFrame virtualFrame , Frame localFrame , int stackTop , int bci , byte [] localBC , int index , boolean inCompiledCode ) {
3209
3190
CompilerDirectives .transferToInterpreterAndInvalidate ();
3210
3191
byte stackType = stackSlotTypeToTypeId (virtualFrame , stackTop );
@@ -3337,8 +3318,7 @@ private void bytecodeStoreFastUnboxI(VirtualFrame virtualFrame, Frame localFrame
3337
3318
try {
3338
3319
object = virtualFrame .getObject (stackTop );
3339
3320
} catch (FrameSlotTypeException e ) {
3340
- // This should only happen when quickened concurrently in multi-context
3341
- // mode
3321
+ // This should only happen when quickened concurrently in multi-context mode
3342
3322
generalizeStoreFast (virtualFrame , localFrame , stackTop , bci , index );
3343
3323
return ;
3344
3324
}
@@ -3356,9 +3336,7 @@ private void bytecodeStoreFastBoxedI(VirtualFrame virtualFrame, Frame localFrame
3356
3336
try {
3357
3337
object = virtualFrame .getObject (stackTop );
3358
3338
} catch (FrameSlotTypeException e ) {
3359
- CompilerDirectives .transferToInterpreterAndInvalidate ();
3360
- // This should only happen when quickened concurrently in multi-context
3361
- // mode
3339
+ // This should only happen when quickened concurrently in multi-context mode
3362
3340
generalizeStoreFast (virtualFrame , localFrame , stackTop , bci , index );
3363
3341
return ;
3364
3342
}
@@ -3389,8 +3367,7 @@ private void bytecodeStoreFastUnboxL(VirtualFrame virtualFrame, Frame localFrame
3389
3367
try {
3390
3368
object = virtualFrame .getObject (stackTop );
3391
3369
} catch (FrameSlotTypeException e ) {
3392
- // This should only happen when quickened concurrently in multi-context
3393
- // mode
3370
+ // This should only happen when quickened concurrently in multi-context mode
3394
3371
generalizeStoreFast (virtualFrame , localFrame , stackTop , bci , index );
3395
3372
return ;
3396
3373
}
@@ -3408,9 +3385,7 @@ private void bytecodeStoreFastBoxedL(VirtualFrame virtualFrame, Frame localFrame
3408
3385
try {
3409
3386
object = virtualFrame .getObject (stackTop );
3410
3387
} catch (FrameSlotTypeException e ) {
3411
- CompilerDirectives .transferToInterpreterAndInvalidate ();
3412
- // This should only happen when quickened concurrently in multi-context
3413
- // mode
3388
+ // This should only happen when quickened concurrently in multi-context mode
3414
3389
generalizeStoreFast (virtualFrame , localFrame , stackTop , bci , index );
3415
3390
return ;
3416
3391
}
@@ -3441,8 +3416,7 @@ private void bytecodeStoreFastUnboxD(VirtualFrame virtualFrame, Frame localFrame
3441
3416
try {
3442
3417
object = virtualFrame .getObject (stackTop );
3443
3418
} catch (FrameSlotTypeException e ) {
3444
- // This should only happen when quickened concurrently in multi-context
3445
- // mode
3419
+ // This should only happen when quickened concurrently in multi-context mode
3446
3420
generalizeStoreFast (virtualFrame , localFrame , stackTop , bci , index );
3447
3421
return ;
3448
3422
}
@@ -3460,9 +3434,7 @@ private void bytecodeStoreFastBoxedD(VirtualFrame virtualFrame, Frame localFrame
3460
3434
try {
3461
3435
object = virtualFrame .getObject (stackTop );
3462
3436
} catch (FrameSlotTypeException e ) {
3463
- CompilerDirectives .transferToInterpreterAndInvalidate ();
3464
- // This should only happen when quickened concurrently in multi-context
3465
- // mode
3437
+ // This should only happen when quickened concurrently in multi-context mode
3466
3438
generalizeStoreFast (virtualFrame , localFrame , stackTop , bci , index );
3467
3439
return ;
3468
3440
}
@@ -3493,8 +3465,7 @@ private void bytecodeStoreFastUnboxB(VirtualFrame virtualFrame, Frame localFrame
3493
3465
try {
3494
3466
object = virtualFrame .getObject (stackTop );
3495
3467
} catch (FrameSlotTypeException e ) {
3496
- // This should only happen when quickened concurrently in multi-context
3497
- // mode
3468
+ // This should only happen when quickened concurrently in multi-context mode
3498
3469
generalizeStoreFast (virtualFrame , localFrame , stackTop , bci , index );
3499
3470
return ;
3500
3471
}
@@ -3512,8 +3483,7 @@ private void bytecodeStoreFastBoxedB(VirtualFrame virtualFrame, Frame localFrame
3512
3483
try {
3513
3484
object = virtualFrame .getObject (stackTop );
3514
3485
} catch (FrameSlotTypeException e ) {
3515
- // This should only happen when quickened concurrently in multi-context
3516
- // mode
3486
+ // This should only happen when quickened concurrently in multi-context mode
3517
3487
generalizeStoreFast (virtualFrame , localFrame , stackTop , bci , index );
3518
3488
return ;
3519
3489
}
@@ -3529,7 +3499,6 @@ private void bytecodeStoreFastBoxedB(VirtualFrame virtualFrame, Frame localFrame
3529
3499
virtualFrame .setObject (stackTop , null );
3530
3500
}
3531
3501
3532
- @ InliningCutoff
3533
3502
private void generalizeStoreFast (VirtualFrame virtualFrame , Frame localFrame , int stackTop , int bci , int index ) {
3534
3503
CompilerDirectives .transferToInterpreterAndInvalidate ();
3535
3504
virtualFrame .setObject (index , virtualFrame .getValue (index ));
@@ -3545,8 +3514,7 @@ private void bytecodeStoreFastO(VirtualFrame virtualFrame, Frame localFrame, int
3545
3514
try {
3546
3515
object = virtualFrame .getObject (stackTop );
3547
3516
} catch (FrameSlotTypeException e ) {
3548
- // This should only happen when quickened concurrently in multi-context
3549
- // mode
3517
+ // This should only happen when quickened concurrently in multi-context mode
3550
3518
generalizeVariableStores (index );
3551
3519
object = virtualFrame .getValue (stackTop );
3552
3520
}
@@ -3665,7 +3633,6 @@ private void bytecodeLoadFastB(VirtualFrame virtualFrame, Frame localFrame, int
3665
3633
}
3666
3634
}
3667
3635
3668
- @ InliningCutoff
3669
3636
private void generalizeLoadFast (VirtualFrame virtualFrame , Frame localFrame , int stackTop , int bci , int index , boolean inCompiledCode ) {
3670
3637
CompilerDirectives .transferToInterpreterAndInvalidate ();
3671
3638
generalizeVariableStores (index );
@@ -3710,7 +3677,6 @@ private PException raiseVarReferencedBeforeAssignment(int bci, int index) {
3710
3677
throw raiseNode .raise (PythonBuiltinClassType .UnboundLocalError , ErrorMessages .LOCAL_VAR_REFERENCED_BEFORE_ASSIGMENT , varnames [index ]);
3711
3678
}
3712
3679
3713
- @ InliningCutoff
3714
3680
private Object generalizeBytecodeLoadFastO (Frame localFrame , int index ) {
3715
3681
CompilerDirectives .transferToInterpreterAndInvalidate ();
3716
3682
generalizeVariableStores (index );
@@ -3736,7 +3702,6 @@ private void generalizeInputs(int beginBci) {
3736
3702
}
3737
3703
}
3738
3704
3739
- @ InliningCutoff
3740
3705
private void generalizeVariableStores (int index ) {
3741
3706
CompilerDirectives .transferToInterpreterAndInvalidate ();
3742
3707
variableTypes [index ] = QuickeningTypes .OBJECT ;
@@ -3757,6 +3722,7 @@ private void generalizeVariableStores(int index) {
3757
3722
}
3758
3723
}
3759
3724
3725
+ @ InliningCutoff
3760
3726
protected PException wrapJavaExceptionIfApplicable (Throwable e ) {
3761
3727
if (e instanceof AbstractTruffleException ) {
3762
3728
return null ;
@@ -4882,7 +4848,6 @@ public void triggerDeferredDeprecationWarnings() {
4882
4848
}
4883
4849
}
4884
4850
4885
- @ InliningCutoff
4886
4851
private void bytecodePopAndJumpIfFalse (VirtualFrame virtualFrame , int bci , int stackTop ) {
4887
4852
CompilerDirectives .transferToInterpreterAndInvalidate ();
4888
4853
if (virtualFrame .isBoolean (stackTop )) {
@@ -4892,7 +4857,6 @@ private void bytecodePopAndJumpIfFalse(VirtualFrame virtualFrame, int bci, int s
4892
4857
}
4893
4858
}
4894
4859
4895
- @ InliningCutoff
4896
4860
private void bytecodePopAndJumpIfTrue (VirtualFrame virtualFrame , int bci , int stackTop ) {
4897
4861
CompilerDirectives .transferToInterpreterAndInvalidate ();
4898
4862
if (virtualFrame .isBoolean (stackTop )) {
0 commit comments