v8/test/cctest/wasm
Dan Elphick f2e652264d Reland "[compiler] Don't collect source positions for the top frame"
Fixed crashes by adding missing call to EnsureSourcePositionsAvailable,
which requires clearing and restoring the pending exception.

> While most source positions were not collected even throwing exceptions,
> the top frame still was always collected as it was used to initialize
> the JSMessageObject. This skips even that frame, by storing the
> SharedFunctionInfo and bytecode offset in the JSMessageObject allowing
> it to lazily evaluate the actual source position.
>
> Also adds tests to test-api.cc that test each of the source position
> functions in isolation to ensure that they don't rely on previous
> invocations to call the source collection function.
>
> Since no source positions are now collected at the point when an
> exception is thrown, the mjsunit/stack-traces-overflow now passes again
> with the flag enabled. (cctest/test-cpu-profiler/Inlining2 is now the
> only failure).

Bug: v8:8510
Change-Id: Ifa5fe31d3db34a6c6d6a9cef3d646ad620dabd81
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/1601270
Commit-Queue: Dan Elphick <delphick@chromium.org>
Reviewed-by: Ulan Degenbaev <ulan@chromium.org>
Reviewed-by: Ross McIlroy <rmcilroy@chromium.org>
Cr-Commit-Position: refs/heads/master@{#61372}
2019-05-09 10:20:18 +00:00
..
OWNERS Reduce wasm OWNERS to current team members 2018-10-15 14:47:49 +00:00
test-c-wasm-entry.cc [wasm-hints] Merged Tier Enum 2019-04-03 16:13:21 +00:00
test-jump-table-assembler.cc [wasm][x64] Use near jump in jump table 2019-04-11 13:49:29 +00:00
test-run-wasm-64.cc [test] Modernize value helpers 2019-02-01 12:56:59 +00:00
test-run-wasm-asmjs.cc [test] Modernize value helpers 2019-02-01 12:56:59 +00:00
test-run-wasm-atomics64.cc [wasm] Fix Int64-lowering to handle non-const index for I64Atomic ops 2019-04-11 21:10:40 +00:00
test-run-wasm-atomics.cc [test] Modernize value helpers 2019-02-01 12:56:59 +00:00
test-run-wasm-bulk-memory.cc Remove Vector constructor accepting static array 2019-04-24 11:12:47 +00:00
test-run-wasm-exceptions.cc [wasm] Call through dispatch table in interpreter 2019-03-21 07:35:27 +00:00
test-run-wasm-interpreter.cc [wasm] Fix lifetime of reference values on interpreter stack. 2019-04-05 12:47:56 +00:00
test-run-wasm-js.cc [cleanup] Use Vector::begin instead of Vector::start 2019-04-29 12:43:16 +00:00
test-run-wasm-module.cc [wasm-hints] Lazy Baseline Compilation 2019-04-29 12:26:26 +00:00
test-run-wasm-sign-extension.cc [wasm] Unify all enums representing execution tiers 2018-08-21 15:45:18 +00:00
test-run-wasm-simd.cc [wasm-hints] Merged Tier Enum 2019-04-03 16:13:21 +00:00
test-run-wasm.cc [cleanup] Use Vector::begin instead of Vector::start 2019-04-29 12:43:16 +00:00
test-streaming-compilation.cc [wasm] Fix Streaming API Error Messages 2019-05-03 13:39:03 +00:00
test-wasm-breakpoints.cc [ubsan] Port JSReceiver and subclasses to the new design 2018-12-08 04:05:50 +00:00
test-wasm-codegen.cc [wasm][cleanup] Using 'using' instead of 'typedef' 2019-03-29 10:20:30 +00:00
test-wasm-import-wrapper-cache.cc [wasm][gc] Add code ref scopes for code GC 2019-04-02 11:37:41 +00:00
test-wasm-interpreter-entry.cc [wasm-hints] Merged Tier Enum 2019-04-03 16:13:21 +00:00
test-wasm-serialization.cc [cleanup] Use Vector::begin instead of Vector::start 2019-04-29 12:43:16 +00:00
test-wasm-shared-engine.cc [wasm][test] Remove check for use count of shared_ptr 2019-04-11 14:39:08 +00:00
test-wasm-stack.cc Reland "[compiler] Don't collect source positions for the top frame" 2019-05-09 10:20:18 +00:00
test-wasm-trap-position.cc [cleanup] Refactor base, compiler, and wasm classes to use bools instead of converting ints. 2018-09-20 09:14:25 +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 [cleanup] Move WriteBarrierKind to v8::internal::compiler namespace 2019-05-07 16:54:56 +00:00
wasm-run-utils.h [cleanup] Removing GraphBuilderTester class 2019-05-07 09:54:51 +00:00