v8/test
Simon Zünd c8206043e1 [stack-trace] Use ErrorStack accessor for formatted stack traces
When a stack trace is captured, it is stored in a private symbol on
the respective Error object. The first access to "Error.stack"  will
then format the stack trace, with a possible call into user JS via
the Error.prepareStackTrace callback.

Until now, the accessor converted ".stack" to a normal data
property containing the formatted stack trace. This causes a new Map
with a new DescriptorArray to be created, which will not be shared
with anything else (also not other error objects with formated
stack traces).

This CL changes the accessor to store the formatted stack trace in
the same symbol (stack_trace_symbol) as the structured data. The
result is that an error object will have the same Map before and
after "Error.stack" is accessed.

Bug: v8:9115
Change-Id: I7d6bf49be76d63b57fbbaf904cc6ed7dbdbfb96b
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/1564061
Commit-Queue: Simon Zünd <szuend@chromium.org>
Reviewed-by: Jakob Gruber <jgruber@chromium.org>
Reviewed-by: Benedikt Meurer <bmeurer@chromium.org>
Cr-Commit-Position: refs/heads/master@{#60865}
2019-04-16 12:02:40 +00:00
..
benchmarks Reland "Preparing v8 to use with python3 /test" 2019-03-20 09:56:06 +00:00
cctest [compiler] Don't collect source positions when throwing exceptions 2019-04-15 14:10:15 +00:00
common [wasm] Use engine's allocator consistently 2019-04-03 14:33:30 +00:00
debugger Redirect BytecodeArray pointers on stack when clearing DebugInfo 2019-04-11 13:01:44 +00:00
fuzzer [wasm] Use engine's allocator consistently 2019-04-03 14:33:30 +00:00
inspector [wasm] Remove sequential compilation path 2019-04-10 11:02:27 +00:00
intl Split out tests of "bn" locale to a different file. 2019-04-11 16:13:52 +00:00
js-perf-test [tools] Implement retry mechanism for failures and use it for some flaky tests 2019-04-12 12:25:44 +00:00
memory [snapshot] Remove the builtins snapshot 2018-10-31 10:18:28 +00:00
message [ast] Refactor resolution of private names 2019-04-09 23:45:14 +00:00
mjsunit [stack-trace] Use ErrorStack accessor for formatted stack traces 2019-04-16 12:02:40 +00:00
mkgrokdump Revert "[heap] Skip ro-space from heap iterators, add CombinedHeapIterator." 2019-04-12 16:38:00 +00:00
mozilla [torque]: Allow const-qualified struct and class fields 2019-04-03 10:55:33 +00:00
preparser [test] Don't test jitless without embedded-builtins 2019-02-26 14:33:01 +00:00
test262 Update V8 DEPS. 2019-04-15 11:23:24 +00:00
torque [torque] add references to HeapObject fields. 2019-04-11 14:11:18 +00:00
unittests Reland^3 "[torque] Throw exception instead of aborting if something goes wrong" 2019-04-16 10:41:20 +00:00
wasm-js [testrunner] handle timeout param in file 2019-02-27 17:49:17 +00:00
wasm-spec-tests [wasm] Update core spec tests 2019-03-28 15:25:12 +00:00
webkit [test] Test more wasm variants 2019-04-09 13:41:52 +00:00
BUILD.gn [cctest] Enable shared linking for cctest 2019-04-09 12:12:19 +00:00
OWNERS Make tmrts an infra OWNER 2019-02-15 09:02:24 +00:00