DescriptionRefactor call site handling for stack formatting
This commit introduces several new types:
* JSStackFrame and WasmStackFrame are wrapper classes around a single frame
in a FrameArray.
* They both inherit from StackFrameBase, which uses virtual dispatch to call
the correct implementation.
* FrameArrayIterator contains a static instance of JSStackFrame and
WasmStackFrame and returns a pointer to the corresponding type for each
frame.
* The JS callsite object now contains the frame array and frame index
as internal fields.
Internal stack formatting now relies completely on FrameArrayIterator and the
{JS,Wasm}StackFrame types. JS callsite instances are allocated only for custom
user formatting through Error.prepareStackTrace.
BUG=
Committed: https://crrev.com/f7bc1fc733e9189f67ed16bd492553f2a33de59f
Cr-Commit-Position: refs/heads/master@{#39015}
Patch Set 1 #Patch Set 2 : Tweaks #Patch Set 3 : Tolerate negative offsets for JS frames #Patch Set 4 : Remove JSCallSite type #
Total comments: 4
Patch Set 5 : Address comments #
Messages
Total messages: 32 (25 generated)
|