Skip to content

Commit 21212d9

Browse files
committed
Address Brandt's feedback
1 parent 60168ee commit 21212d9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Tools/jit/_stencils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -364,7 +364,7 @@ def _get_trampoline_mask(self) -> str:
364364

365365
def as_c(self, opname: str) -> str:
366366
"""Dump this hole as a StencilGroup initializer."""
367-
return f"{{emit_{opname}, {len(self.code.body)}, {self._get_trampoline_mask()}, {len(self.data.body)}}}"
367+
return f"{{emit_{opname}, {len(self.code.body)}, {len(self.data.body)}, {self._get_trampoline_mask()}}}"
368368

369369

370370
def symbol_to_value(symbol: str) -> tuple[HoleValue, str | None]:

Tools/jit/_writer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ def _dump_footer(
1818
yield " unsigned char *code, unsigned char *data, _PyExecutorObject *executor,"
1919
yield " const _PyUOpInstruction *instruction, jit_state *state);"
2020
yield " size_t code_size;"
21-
yield " symbol_mask trampoline_mask;"
2221
yield " size_t data_size;"
22+
yield " symbol_mask trampoline_mask;"
2323
yield "} StencilGroup;"
2424
yield ""
2525
yield f"static const StencilGroup shim = {groups['shim'].as_c('shim')};"

0 commit comments

Comments
 (0)