@@ -470,7 +470,7 @@ _PyJIT_Compile(_PyExecutorObject *executor, const _PyUOpInstruction trace[], siz
470
470
size_t code_size = 0 ;
471
471
size_t data_size = 0 ;
472
472
jit_state state = {0 };
473
- group = & trampoline ;
473
+ group = & shim ;
474
474
code_size += group -> code_size ;
475
475
data_size += group -> data_size ;
476
476
combine_symbol_mask (group -> trampoline_mask , state .trampolines .mask );
@@ -507,12 +507,10 @@ _PyJIT_Compile(_PyExecutorObject *executor, const _PyUOpInstruction trace[], siz
507
507
unsigned char * code = memory ;
508
508
unsigned char * data = memory + code_size ;
509
509
state .trampolines .mem = memory + code_size + data_size ;
510
- // Compile the trampoline , which handles converting between the native
510
+ // Compile the shim , which handles converting between the native
511
511
// calling convention and the calling convention used by jitted code
512
- // (which may be different for efficiency reasons). On platforms where
513
- // we don't change calling conventions, the trampoline is empty and
514
- // nothing is emitted here:
515
- group = & trampoline ;
512
+ // (which may be different for efficiency reasons).
513
+ group = & shim ;
516
514
group -> emit (code , data , executor , NULL , & state );
517
515
code += group -> code_size ;
518
516
data += group -> data_size ;
@@ -536,7 +534,7 @@ _PyJIT_Compile(_PyExecutorObject *executor, const _PyUOpInstruction trace[], siz
536
534
return -1 ;
537
535
}
538
536
executor -> jit_code = memory ;
539
- executor -> jit_side_entry = memory + trampoline .code_size ;
537
+ executor -> jit_side_entry = memory + shim .code_size ;
540
538
executor -> jit_size = total_size ;
541
539
return 0 ;
542
540
}
0 commit comments