Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(50)

Issue 2275233002: Refactor call site handling for stack formatting (Closed)

Created:
4 years, 3 months ago by jgruber
Modified:
4 years, 3 months ago
Reviewers:
ulan, Toon Verwaest
CC:
v8-reviews_googlegroups.com, Hannes Payer (out of office), ulan
Base URL:
https://chromium.googlesource.com/v8/v8.git@master
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

Refactor 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 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+575 lines, -643 lines) Patch
M src/builtins/builtins-callsite.cc View 1 2 3 4 2 chunks +65 lines, -85 lines 0 comments Download
M src/execution.h View 1 chunk +0 lines, -5 lines 0 comments Download
M src/execution.cc View 1 chunk +0 lines, -25 lines 0 comments Download
M src/heap-symbols.h View 1 2 3 1 chunk +2 lines, -7 lines 0 comments Download
M src/isolate.cc View 1 2 3 4 2 chunks +14 lines, -30 lines 0 comments Download
M src/messages.h View 1 4 3 chunks +129 lines, -33 lines 0 comments Download
M src/messages.cc View 1 2 3 4 11 chunks +365 lines, -458 lines 0 comments Download

Messages

Total messages: 32 (25 generated)
jgruber
4 years, 3 months ago (2016-08-25 08:20:31 UTC) #4
ulan
Looking good. Two comments: https://codereview.chromium.org/2275233002/diff/60001/src/builtins/builtins-callsite.cc File src/builtins/builtins-callsite.cc (right): https://codereview.chromium.org/2275233002/diff/60001/src/builtins/builtins-callsite.cc#newcode48 src/builtins/builtins-callsite.cc:48: CALLSITE_ITER(recv); We can avoid this ...
4 years, 3 months ago (2016-08-30 10:15:56 UTC) #19
jgruber
https://codereview.chromium.org/2275233002/diff/60001/src/builtins/builtins-callsite.cc File src/builtins/builtins-callsite.cc (right): https://codereview.chromium.org/2275233002/diff/60001/src/builtins/builtins-callsite.cc#newcode48 src/builtins/builtins-callsite.cc:48: CALLSITE_ITER(recv); On 2016/08/30 10:15:56, ulan wrote: > We can ...
4 years, 3 months ago (2016-08-30 12:11:33 UTC) #22
ulan
lgtm
4 years, 3 months ago (2016-08-30 12:14:40 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2275233002/80001
4 years, 3 months ago (2016-08-30 13:25:22 UTC) #28
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 3 months ago (2016-08-30 13:28:45 UTC) #30
commit-bot: I haz the power
4 years, 3 months ago (2016-08-30 13:29:17 UTC) #32
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/f7bc1fc733e9189f67ed16bd492553f2a33de59f
Cr-Commit-Position: refs/heads/master@{#39015}

Powered by Google App Engine
This is Rietveld 408576698