mirror of
https://github.com/python/cpython.git
synced 2025-11-03 03:22:27 +00:00
GH-117512: Allow 64-bit JIT operands on 32-bit platforms (GH-117527)
This commit is contained in:
parent
df4d84c3cd
commit
62aeb0ee69
4 changed files with 47 additions and 31 deletions
|
|
@ -17,7 +17,7 @@ def _dump_header() -> typing.Iterator[str]:
|
|||
yield "} HoleValue;"
|
||||
yield ""
|
||||
yield "typedef struct {"
|
||||
yield " const uint64_t offset;"
|
||||
yield " const size_t offset;"
|
||||
yield " const HoleKind kind;"
|
||||
yield " const HoleValue value;"
|
||||
yield " const void *symbol;"
|
||||
|
|
@ -58,7 +58,7 @@ def _dump_footer(opnames: typing.Iterable[str]) -> typing.Iterator[str]:
|
|||
yield ""
|
||||
yield "#define GET_PATCHES() { \\"
|
||||
for value in _stencils.HoleValue:
|
||||
yield f" [HoleValue_{value.name}] = (uint64_t)0xBADBADBADBADBADB, \\"
|
||||
yield f" [HoleValue_{value.name}] = (uintptr_t)0xBADBADBADBADBADB, \\"
|
||||
yield "}"
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue