mirror of
https://github.com/python/cpython.git
synced 2025-08-30 13:38:43 +00:00
GH-115869: Make jit_stencils.h reproducible (GH-127166)
This commit is contained in:
parent
307c633586
commit
17c16aea66
5 changed files with 18 additions and 9 deletions
|
@ -202,7 +202,8 @@ class Stencil:
|
|||
"""Pad the stencil to the given alignment."""
|
||||
offset = len(self.body)
|
||||
padding = -offset % alignment
|
||||
self.disassembly.append(f"{offset:x}: {' '.join(['00'] * padding)}")
|
||||
if padding:
|
||||
self.disassembly.append(f"{offset:x}: {' '.join(['00'] * padding)}")
|
||||
self.body.extend([0] * padding)
|
||||
|
||||
def remove_jump(self, *, alignment: int = 1) -> None:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue