@@ -470,7 +470,7 @@ _PyJIT_Compile(_PyExecutorObject *executor, const _PyUOpInstruction trace[], siz
470470 size_t code_size = 0 ;
471471 size_t data_size = 0 ;
472472 jit_state state = {0 };
473- group = & trampoline ;
473+ group = & shim ;
474474 code_size += group -> code_size ;
475475 data_size += group -> data_size ;
476476 combine_symbol_mask (group -> trampoline_mask , state .trampolines .mask );
@@ -507,12 +507,10 @@ _PyJIT_Compile(_PyExecutorObject *executor, const _PyUOpInstruction trace[], siz
507507 unsigned char * code = memory ;
508508 unsigned char * data = memory + code_size ;
509509 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
511511 // 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 ;
516514 group -> emit (code , data , executor , NULL , & state );
517515 code += group -> code_size ;
518516 data += group -> data_size ;
@@ -536,7 +534,7 @@ _PyJIT_Compile(_PyExecutorObject *executor, const _PyUOpInstruction trace[], siz
536534 return -1 ;
537535 }
538536 executor -> jit_code = memory ;
539- executor -> jit_side_entry = memory + trampoline .code_size ;
537+ executor -> jit_side_entry = memory + shim .code_size ;
540538 executor -> jit_size = total_size ;
541539 return 0 ;
542540}
0 commit comments