diff options
author | Savannah Ostrowski <savannahostrowski@gmail.com> | 2024-11-05 15:26:46 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-11-05 15:26:46 -0800 |
commit | c3a12ae13ee0212a096f570064407f8ba954e6aa (patch) | |
tree | 50ac65af58a7cb77225a671f8b19f941f2afcf97 /Python/jit.c | |
parent | 478a1c09c4cdb082c84f9102e3e452e6911b84f1 (diff) | |
download | cpython-c3a12ae13ee0212a096f570064407f8ba954e6aa.tar.gz cpython-c3a12ae13ee0212a096f570064407f8ba954e6aa.zip |
GH-125911: Rename big trampoline to "shim" (GH-126339)
Diffstat (limited to 'Python/jit.c')
-rw-r--r-- | Python/jit.c | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/Python/jit.c b/Python/jit.c index 135daeb1b1d..90f693dfb7c 100644 --- a/Python/jit.c +++ b/Python/jit.c @@ -470,7 +470,7 @@ _PyJIT_Compile(_PyExecutorObject *executor, const _PyUOpInstruction trace[], siz size_t code_size = 0; size_t data_size = 0; jit_state state = {0}; - group = &trampoline; + group = &shim; code_size += group->code_size; data_size += group->data_size; combine_symbol_mask(group->trampoline_mask, state.trampolines.mask); @@ -507,12 +507,10 @@ _PyJIT_Compile(_PyExecutorObject *executor, const _PyUOpInstruction trace[], siz unsigned char *code = memory; unsigned char *data = memory + code_size; state.trampolines.mem = memory + code_size + data_size; - // Compile the trampoline, which handles converting between the native + // Compile the shim, which handles converting between the native // calling convention and the calling convention used by jitted code - // (which may be different for efficiency reasons). On platforms where - // we don't change calling conventions, the trampoline is empty and - // nothing is emitted here: - group = &trampoline; + // (which may be different for efficiency reasons). + group = &shim; group->emit(code, data, executor, NULL, &state); code += group->code_size; data += group->data_size; @@ -536,7 +534,7 @@ _PyJIT_Compile(_PyExecutorObject *executor, const _PyUOpInstruction trace[], siz return -1; } executor->jit_code = memory; - executor->jit_side_entry = memory + trampoline.code_size; + executor->jit_side_entry = memory + shim.code_size; executor->jit_size = total_size; return 0; } |