GH-117512: Allow 64-bit JIT operands on 32-bit platforms (GH-117527)

This commit is contained in:
Brandt Bucher 2024-04-06 08:26:43 -07:00 committed by GitHub
parent df4d84c3cd
commit 62aeb0ee69
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 47 additions and 31 deletions

View file

@ -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 "}"