v8/test/cctest/wasm
Clemens Backes a58a5e594e Reland "[wasm] Pass the script ID to code logging"
This is a reland of ab4d9717f2.
The original CL did a std::move before the final use of the NativeModule.
PS2 removes that.

TBR=petermarshall@chromium.org, thibaudm@chromium.org

Original change's description:
> [wasm] Pass the script ID to code logging
>
> We didn't pass a script ID with the code creation events for profiling.
> This made DevTools lose the connection to the wasm script, hence
> jumping from the profiler entry to the source did not work.
>
> This CL changes the timing of code logging a bit such that the script is
> always allocated before logging. In the queue of code to be logged we
> then also store the script ID, and finally set it on the {CodeEntry}
> object.
>
> R=thibaudm@chromium.org
>
> Bug: chromium:1125986
> Change-Id: I2248c1d520bc819436bbe732373f7a3446b64f48
> Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2575057
> Commit-Queue: Clemens Backes <clemensb@chromium.org>
> Reviewed-by: Peter Marshall <petermarshall@chromium.org>
> Reviewed-by: Thibaud Michaud <thibaudm@chromium.org>
> Cr-Commit-Position: refs/heads/master@{#71654}

Bug: chromium:1125986
Cq-Include-Trybots: luci.v8.try:v8_linux64_ubsan_rel_ng
Change-Id: I2a7c5fe04fff726836b1279e3d05b1702a4efb76
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2578980
Reviewed-by: Clemens Backes <clemensb@chromium.org>
Reviewed-by: Peter Marshall <petermarshall@chromium.org>
Reviewed-by: Thibaud Michaud <thibaudm@chromium.org>
Commit-Queue: Clemens Backes <clemensb@chromium.org>
Cr-Commit-Position: refs/heads/master@{#71663}
2020-12-08 15:51:15 +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
test-c-wasm-entry.cc Use safe conversion helper to convert double to int64_t 2020-10-15 19:47:13 +00:00
test-compilation-cache.cc Reland "Reland "[wasm] Cache streaming compilation result"" 2020-02-03 13:49:18 +00:00
test-gc.cc [wasm-gc] Implement JS roundtrip for anyref 2020-11-23 14:18:31 +00:00
test-grow-memory.cc [wasm][fuzzer] Merge redundant functions 2020-08-11 12:30:53 +00:00
test-jump-table-assembler.cc [cctest][wasm] Fix JumpTablePatchingStress on systems with 64k pages 2020-10-12 15:43:15 +00:00
test-liftoff-inspection.cc [wasm] Remove ExecutionTier::kInterpreter 2020-08-06 09:31:18 +00:00
test-run-wasm-64.cc Reland "Add int64_t min and max to value helpers for test" 2020-10-27 23:20:41 +00:00
test-run-wasm-asmjs.cc [wasm] Remove ExecutionTier::kInterpreter 2020-08-06 09:31:18 +00:00
test-run-wasm-atomics64.cc [wasm] Remove ExecutionTier::kInterpreter 2020-08-06 09:31:18 +00:00
test-run-wasm-atomics.cc [wasm] Remove ExecutionTier::kInterpreter 2020-08-06 09:31:18 +00:00
test-run-wasm-bulk-memory.cc [wasm] Remove ExecutionTier::kInterpreter 2020-08-06 09:31:18 +00:00
test-run-wasm-exceptions.cc [wasm][eh] Revert to catch with tag immediate 2020-12-03 18:55:31 +00:00
test-run-wasm-interpreter.cc [wasm][cleanup] Rename kLocal<type> constants -> k<type>Code 2020-09-29 08:48:21 +00:00
test-run-wasm-js.cc [wasm] Remove ExecutionTier::kInterpreter 2020-08-06 09:31:18 +00:00
test-run-wasm-module.cc [wasm][memory64] Start implementing the memory64 proposal 2020-09-24 09:38:08 +00:00
test-run-wasm-sign-extension.cc [wasm] Remove Sign Extension flag, and helper functions 2019-12-06 13:14:44 +00:00
test-run-wasm-simd-liftoff.cc [wasm-simd] Rename shuffle & swizzle instructions to match spec 2020-09-25 19:07:12 +00:00
test-run-wasm-simd-scalar-lowering.cc [wasm-simd][scalar-lowering] Fix replacement for call nodes 2020-11-17 02:38:57 +00:00
test-run-wasm-simd.cc [wasm-simd][arm64] Prototype sign select 2020-12-08 01:32:29 +00:00
test-run-wasm-wrappers.cc [wasm] Add cctest for indirect js-to-wasm calls 2020-11-17 11:59:46 +00:00
test-run-wasm.cc [wasm-gc][bug] call_indirect should check for null table entries 2020-10-05 13:08:20 +00:00
test-streaming-compilation.cc Reland "Reland "[wasm]: Use CancelAndDetach and barrier on BackgroundCompileJob."" 2020-12-08 15:42:15 +00:00
test-wasm-breakpoints.cc [wasm][debug] Fix DebugInfo deadlock 2020-09-14 16:54:06 +00:00
test-wasm-codegen.cc [zone] Cleanup zone allocations in src/wasm and tests 2020-07-10 12:11:55 +00:00
test-wasm-debug-evaluate.cc [wasm debug] Cache name tables for the wasm debug proxy. 2020-12-03 08:24:53 +00:00
test-wasm-import-wrapper-cache.cc [wasm] Faster wasm-to-js calls with arguments mismatch 2020-07-28 15:53:21 +00:00
test-wasm-metrics.cc Reland "Reland "[wasm]: Use CancelAndDetach and barrier on BackgroundCompileJob."" 2020-12-08 15:42:15 +00:00
test-wasm-serialization.cc [asserts] Make assert scopes LocalHeap friendly 2020-11-20 17:39:14 +00:00
test-wasm-shared-engine.cc [wasm] Allow specifying larger code space limits 2020-08-28 16:25:36 +00:00
test-wasm-stack.cc [wasm] Remove interpreter entry code 2020-05-05 11:18:05 +00:00
test-wasm-trap-position.cc [wasm] Remove interpreter entry code 2020-05-05 11:18:05 +00:00
wasm-atomics-utils.h [wasm][cleanup] Using 'using' instead of 'typedef' 2019-03-29 10:20:30 +00:00
wasm-run-utils.cc Reland "[wasm] Pass the script ID to code logging" 2020-12-08 15:51:15 +00:00
wasm-run-utils.h [wasm-gc][bug] Fix signature canonicalization 2020-10-05 16:16:51 +00:00