mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
GH-125911: Rename big trampoline to "shim" (GH-126339)
This commit is contained in:
parent
478a1c09c4
commit
c3a12ae13e
4 changed files with 9 additions and 11 deletions
|
@ -154,8 +154,8 @@ class _Target(typing.Generic[_S, _R]):
|
|||
with tempfile.TemporaryDirectory() as tempdir:
|
||||
work = pathlib.Path(tempdir).resolve()
|
||||
async with asyncio.TaskGroup() as group:
|
||||
coro = self._compile("trampoline", TOOLS_JIT / "trampoline.c", work)
|
||||
tasks.append(group.create_task(coro, name="trampoline"))
|
||||
coro = self._compile("shim", TOOLS_JIT / "shim.c", work)
|
||||
tasks.append(group.create_task(coro, name="shim"))
|
||||
template = TOOLS_JIT_TEMPLATE_C.read_text()
|
||||
for case, opname in cases_and_opnames:
|
||||
# Write out a copy of the template with *only* this case
|
||||
|
|
|
@ -22,11 +22,11 @@ def _dump_footer(
|
|||
yield " symbol_mask trampoline_mask;"
|
||||
yield "} StencilGroup;"
|
||||
yield ""
|
||||
yield f"static const StencilGroup trampoline = {groups['trampoline'].as_c('trampoline')};"
|
||||
yield f"static const StencilGroup shim = {groups['shim'].as_c('shim')};"
|
||||
yield ""
|
||||
yield "static const StencilGroup stencil_groups[MAX_UOP_ID + 1] = {"
|
||||
for opname, group in sorted(groups.items()):
|
||||
if opname == "trampoline":
|
||||
if opname == "shim":
|
||||
continue
|
||||
yield f" [{opname}] = {group.as_c(opname)},"
|
||||
yield "};"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue