@@ -672,20 +672,20 @@ _PyJIT_Compile(_PyExecutorObject *executor, const _PyUOpInstruction trace[], siz
672672 return 0 ;
673673}
674674
675- /* One-off compilation of the jit entry trampoline
675+ /* One-off compilation of the jit entry shim
676676 * We compile this once only as it effectively a normal
677677 * function, but we need to use the JIT because it needs
678678 * to understand the jit-specific calling convention.
679679 */
680680static _PyJitEntryFuncPtr
681- compile_trampoline (void )
681+ compile_shim (void )
682682{
683683 _PyExecutorObject dummy ;
684684 const StencilGroup * group ;
685685 size_t code_size = 0 ;
686686 size_t data_size = 0 ;
687687 jit_state state = {0 };
688- group = & trampoline ;
688+ group = & shim ;
689689 code_size += group -> code_size ;
690690 data_size += group -> data_size ;
691691 combine_symbol_mask (group -> trampoline_mask , state .trampolines .mask );
@@ -707,7 +707,7 @@ compile_trampoline(void)
707707 // Compile the shim, which handles converting between the native
708708 // calling convention and the calling convention used by jitted code
709709 // (which may be different for efficiency reasons).
710- group = & trampoline ;
710+ group = & shim ;
711711 group -> emit (code , data , & dummy , NULL , & state );
712712 code += group -> code_size ;
713713 data += group -> data_size ;
@@ -723,17 +723,17 @@ compile_trampoline(void)
723723static PyMutex lazy_jit_mutex = { 0 };
724724
725725_Py_CODEUNIT *
726- _Py_LazyJitTrampoline (
726+ _Py_LazyJitShim (
727727 _PyExecutorObject * executor , _PyInterpreterFrame * frame , _PyStackRef * stack_pointer , PyThreadState * tstate
728728) {
729729 PyMutex_Lock (& lazy_jit_mutex );
730- if (_Py_jit_entry == _Py_LazyJitTrampoline ) {
731- _PyJitEntryFuncPtr trampoline = compile_trampoline ();
732- if (trampoline == NULL ) {
730+ if (_Py_jit_entry == _Py_LazyJitShim ) {
731+ _PyJitEntryFuncPtr shim = compile_shim ();
732+ if (shim == NULL ) {
733733 PyMutex_Unlock (& lazy_jit_mutex );
734734 Py_FatalError ("Cannot allocate core JIT code" );
735735 }
736- _Py_jit_entry = trampoline ;
736+ _Py_jit_entry = shim ;
737737 }
738738 PyMutex_Unlock (& lazy_jit_mutex );
739739 return _Py_jit_entry (executor , frame , stack_pointer , tstate );
0 commit comments