• Dan Elphick's avatar
    Revert "[compiler] Don't collect source positions for the top frame" · 4bb78818
    Dan Elphick authored
    This reverts commit 758700a7.
    
    Reason for revert: Broken
    
    Original change's description:
    > [compiler] Don't collect source positions for the top frame
    > 
    > 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: Ic5382bdbab65cd8838f0c84b544fabb1a9109d13
    > Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/1587385
    > 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@{#61271}
    
    TBR=ulan@chromium.org,rmcilroy@chromium.org,delphick@chromium.org
    
    Change-Id: I3ee0b5db5f8a1b3255f68070dc10d27d0e013048
    No-Presubmit: true
    No-Tree-Checks: true
    No-Try: true
    Bug: v8:8510
    Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/1598758Reviewed-by: 's avatarDan Elphick <delphick@chromium.org>
    Commit-Queue: Dan Elphick <delphick@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#61273}
    4bb78818
Name
Last commit
Last update
..
OWNERS Loading commit data...
test-c-wasm-entry.cc Loading commit data...
test-jump-table-assembler.cc Loading commit data...
test-run-wasm-64.cc Loading commit data...
test-run-wasm-asmjs.cc Loading commit data...
test-run-wasm-atomics.cc Loading commit data...
test-run-wasm-atomics64.cc Loading commit data...
test-run-wasm-bulk-memory.cc Loading commit data...
test-run-wasm-exceptions.cc Loading commit data...
test-run-wasm-interpreter.cc Loading commit data...
test-run-wasm-js.cc Loading commit data...
test-run-wasm-module.cc Loading commit data...
test-run-wasm-sign-extension.cc Loading commit data...
test-run-wasm-simd.cc Loading commit data...
test-run-wasm.cc Loading commit data...
test-streaming-compilation.cc Loading commit data...
test-wasm-breakpoints.cc Loading commit data...
test-wasm-codegen.cc Loading commit data...
test-wasm-import-wrapper-cache.cc Loading commit data...
test-wasm-interpreter-entry.cc Loading commit data...
test-wasm-serialization.cc Loading commit data...
test-wasm-shared-engine.cc Loading commit data...
test-wasm-stack.cc Loading commit data...
test-wasm-trap-position.cc Loading commit data...
wasm-atomics-utils.h Loading commit data...
wasm-run-utils.cc Loading commit data...
wasm-run-utils.h Loading commit data...