v8/src
Clemens Backes 729235c21a [wasm][memory64] Prepare atomic builtins for i64 indexes
The offset (also called "address") passed to the atomic builtins was
32-bit until now. With memory64, we will have to also accept 64-bit
values there, or at least values within the allocatable memory range.
This CL thus changes the builtins to receive uintptr values instead of
uint32, and pass them on to the runtime functions as double (as before).
The runtime then casts them back to uintptr_t instead of uint32_t.

Liftoff is extended to zero-extend the uint32 value if needed. TurboFan
already passed a machine-word sized integer before.

Drive-by: Rename some "address" to "offset" to make the semantics more
clear.

R=ahaas@chromium.org
CC=​​manoskouk@chromium.org

Bug: v8:10949
Change-Id: I66968cc99a908775156c952da46d2f26219ffb58
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2489685
Commit-Queue: Clemens Backes <clemensb@chromium.org>
Reviewed-by: Andreas Haas <ahaas@chromium.org>
Cr-Commit-Position: refs/heads/master@{#70700}
2020-10-22 10:41:22 +00:00
..
api [unwinder] Copy constructor cleanups 2020-10-21 16:00:09 +00:00
asmjs Add DIR_METADATA files to v8. 2020-10-20 22:12:28 +00:00
ast Add DIR_METADATA files to v8. 2020-10-20 22:12:28 +00:00
base Add DIR_METADATA files to v8. 2020-10-20 22:12:28 +00:00
builtins [wasm][memory64] Prepare atomic builtins for i64 indexes 2020-10-22 10:41:22 +00:00
codegen Reland "Reland "[deoptimizer] Change deopt entries into builtins"" 2020-10-21 06:01:38 +00:00
common Implement string literal module export names 2020-10-21 21:39:10 +00:00
compiler [wasm][memory64] Prepare atomic builtins for i64 indexes 2020-10-22 10:41:22 +00:00
compiler-dispatcher Add DIR_METADATA files to v8. 2020-10-20 22:12:28 +00:00
d8 [fuzzing] Don't expose OS methods when fuzzing 2020-10-16 11:47:55 +00:00
date Add DIR_METADATA files to v8. 2020-10-20 22:12:28 +00:00
debug Add DIR_METADATA files to v8. 2020-10-20 22:12:28 +00:00
deoptimizer Reland "Reland "[deoptimizer] Change deopt entries into builtins"" 2020-10-21 06:01:38 +00:00
diagnostics [mips][unwinder] Restore callee saved registers after unwinding 2020-10-22 08:59:42 +00:00
execution Reland "Reland "[deoptimizer] Change deopt entries into builtins"" 2020-10-21 06:01:38 +00:00
extensions [clang-tidy] Remove unneeded casts 2020-06-10 20:47:50 +00:00
flags [wasm] Enable --wasm-opt 2020-10-21 19:05:39 +00:00
handles Add DIR_METADATA files to v8. 2020-10-20 22:12:28 +00:00
heap cppgc: Allow MarkingVerifier to be specialized for unified heap 2020-10-21 12:58:49 +00:00
ic Revert "[ic] Append deprecated maps after appending new map" 2020-10-22 07:34:24 +00:00
init Add DIR_METADATA files to v8. 2020-10-20 22:12:28 +00:00
inspector Add DIR_METADATA files to v8. 2020-10-20 22:12:28 +00:00
interpreter Add DIR_METADATA files to v8. 2020-10-20 22:12:28 +00:00
json Add DIR_METADATA files to v8. 2020-10-20 22:12:28 +00:00
libplatform Add DIR_METADATA files to v8. 2020-10-20 22:12:28 +00:00
libsampler Add DIR_METADATA files to v8. 2020-10-20 22:12:28 +00:00
logging Reland "Reland "[deoptimizer] Change deopt entries into builtins"" 2020-10-21 06:01:38 +00:00
numbers Add DIR_METADATA files to v8. 2020-10-20 22:12:28 +00:00
objects Reland "Reland "[deoptimizer] Change deopt entries into builtins"" 2020-10-21 06:01:38 +00:00
parsing Implement string literal module export names 2020-10-21 21:39:10 +00:00
profiler Add DIR_METADATA files to v8. 2020-10-20 22:12:28 +00:00
protobuf Add OWNERS to src/protobuf 2019-05-15 11:17:23 +00:00
regexp PPC: [regexp] Use cmp to compare large backtrack_limit inputs 2020-10-21 17:50:59 +00:00
roots Add DIR_METADATA files to v8. 2020-10-20 22:12:28 +00:00
runtime [wasm][memory64] Prepare atomic builtins for i64 indexes 2020-10-22 10:41:22 +00:00
sanitizer [platform] Add SharedMemory allocation and mapping 2020-07-30 18:31:21 +00:00
snapshot Reland "Reland "[deoptimizer] Change deopt entries into builtins"" 2020-10-21 06:01:38 +00:00
strings Implement string literal module export names 2020-10-21 21:39:10 +00:00
tasks Reland2: [Atomics.waitAsync] Implement Atomics.waitAsync 2020-07-21 06:43:48 +00:00
third_party Enable full WASM function names with arguments for Intel VTune 2020-07-13 14:01:27 +00:00
torque [torque] Strict verification of abstract types 2020-10-22 08:52:24 +00:00
tracing Add DIR_METADATA files to v8. 2020-10-20 22:12:28 +00:00
trap-handler Add DIR_METADATA files to v8. 2020-10-20 22:12:28 +00:00
utils Add DIR_METADATA files to v8. 2020-10-20 22:12:28 +00:00
wasm [wasm][memory64] Prepare atomic builtins for i64 indexes 2020-10-22 10:41:22 +00:00
zone Add bucket_count parameter to ZoneUnorderedSet 2020-10-06 19:02:15 +00:00
DEPS [heap] Add conservative stack scanning 2020-09-01 12:21:29 +00:00
DIR_METADATA Add DIR_METADATA files to v8. 2020-10-20 22:12:28 +00:00
OWNERS Add DIR_METADATA files to v8. 2020-10-20 22:12:28 +00:00