mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-01-06 11:09:05 +03:00
2b69af2dfe
JS::Value stores 48 bit pointers to separately allocated objects in its payload. On x86-64, canonical addresses have their top 16 bits set to the same value as bit 47, effectively meaning that the value has to be sign-extended to get the pointer. AArch64, however, expects the topmost bits to be all zeros. This commit gates sign extension behind `#if ARCH(X86_64)`, and adds an `#error` for unsupported architectures, so that we do not forget to think about pointer handling when porting to a new architecture. Fixes #15290 Fixes SerenityOS/ladybird#56 |
||
---|---|---|
.. | ||
CMakeLists.txt | ||
test262-runner.cpp | ||
test-bytecode-js.cpp | ||
test-invalid-unicode-js.cpp | ||
test-js.cpp | ||
test-test262.cpp | ||
test-value-js.cpp |