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

Issue 1712003003: Add WasmFrame, backtraces reflect wasm's presence (Closed)

Created:
4 years, 10 months ago by JF
Modified:
4 years, 10 months ago
CC:
v8-reviews_googlegroups.com
Base URL:
https://chromium.googlesource.com/v8/v8.git@master
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

Add WasmFrame, backtraces reflect wasm's presence For now WasmFrame doesn't summarize the wasm frames. That'll require adding the metadata in wasm-compiler similar to DeoptimizationInputData. Teach the basic backtrace to iterate over stack frames instead of JS frames. Update the wasm stack test. `git cl format` touches random lines in files I touch. R=titzer@chromium.org TEST=d8 --test --expose-wasm test/mjsunit/mjsunit.js test/mjsunit/wasm/stack.js Committed: https://crrev.com/aeca945786dcccad3efecfddbf2c07aefa524a56 Cr-Commit-Position: refs/heads/master@{#34220}

Patch Set 1 #

Total comments: 10

Patch Set 2 : Review comments #

Patch Set 3 : Undefined. #

Total comments: 16

Patch Set 4 : Nits. #

Patch Set 5 : Use StackFrameIterator in Isolate::CaptureSimpleStackTrace #

Patch Set 6 : Rip out VisibleFrame and the Iterator it rode in on. #

Patch Set 7 : Fix recv. #

Total comments: 6

Patch Set 8 : Nits. #

Patch Set 9 : Add missing test change. #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+126 lines, -63 lines) Patch
M src/frames.h View 1 2 3 4 5 6 chunks +25 lines, -5 lines 0 comments Download
M src/frames.cc View 1 2 3 4 5 6 7 3 chunks +17 lines, -5 lines 0 comments Download
M src/frames-inl.h View 1 2 3 4 5 3 chunks +3 lines, -7 lines 0 comments Download
M src/isolate.cc View 1 2 3 4 5 6 3 chunks +75 lines, -44 lines 2 comments Download
M src/objects.h View 1 chunk +1 line, -0 lines 0 comments Download
M src/objects-inl.h View 1 chunk +1 line, -1 line 0 comments Download
M test/mjsunit/wasm/stack.js View 1 2 3 4 5 6 7 8 1 chunk +4 lines, -1 line 0 comments Download

Messages

Total messages: 42 (14 generated)
JF
4 years, 10 months ago (2016-02-19 01:53:08 UTC) #1
titzer
https://codereview.chromium.org/1712003003/diff/1/src/isolate.cc File src/isolate.cc (right): https://codereview.chromium.org/1712003003/diff/1/src/isolate.cc#newcode345 src/isolate.cc:345: Handle<FixedArray> new_e = I guess it's ok to spell ...
4 years, 10 months ago (2016-02-19 10:50:30 UTC) #2
JF
https://codereview.chromium.org/1712003003/diff/1/src/isolate.cc File src/isolate.cc (right): https://codereview.chromium.org/1712003003/diff/1/src/isolate.cc#newcode345 src/isolate.cc:345: Handle<FixedArray> new_e = On 2016/02/19 10:50:30, titzer wrote: > ...
4 years, 10 months ago (2016-02-19 16:53:58 UTC) #3
titzer
lgtm with one detail https://codereview.chromium.org/1712003003/diff/1/src/isolate.cc File src/isolate.cc (right): https://codereview.chromium.org/1712003003/diff/1/src/isolate.cc#newcode428 src/isolate.cc:428: elements->set(cursor++, *caller); On 2016/02/19 16:53:58, ...
4 years, 10 months ago (2016-02-19 17:00:41 UTC) #4
JF
https://codereview.chromium.org/1712003003/diff/1/src/isolate.cc File src/isolate.cc (right): https://codereview.chromium.org/1712003003/diff/1/src/isolate.cc#newcode428 src/isolate.cc:428: elements->set(cursor++, *caller); On 2016/02/19 17:00:41, titzer wrote: > On ...
4 years, 10 months ago (2016-02-19 20:57:42 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1712003003/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1712003003/40001
4 years, 10 months ago (2016-02-19 20:57:51 UTC) #8
commit-bot: I haz the power
Try jobs failed on following builders: v8_linux64_asan_rel on tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders/v8_linux64_asan_rel/builds/13988) v8_linux64_avx2_rel on tryserver.v8 (JOB_FAILED, ...
4 years, 10 months ago (2016-02-19 21:12:11 UTC) #10
Michael Starzinger
https://codereview.chromium.org/1712003003/diff/40001/src/isolate.cc File src/isolate.cc (right): https://codereview.chromium.org/1712003003/diff/40001/src/isolate.cc#newcode341 src/isolate.cc:341: static Handle<FixedArray> maybeGrow(Isolate* isolate, nit: Function name is not ...
4 years, 10 months ago (2016-02-19 21:15:28 UTC) #11
Michael Starzinger
https://codereview.chromium.org/1712003003/diff/40001/src/frames.h File src/frames.h (right): https://codereview.chromium.org/1712003003/diff/40001/src/frames.h#newcode626 src/frames.h:626: class VisibleFrame : public StandardFrame { It seems that ...
4 years, 10 months ago (2016-02-19 21:23:13 UTC) #12
JF
I've been testing with: ./tools/run-tests.py -j8 --variants=default --timeout=10 --arch=x64 --mode=debug --no-presubmit $(cd test/; ls cctest/wasm/test-*.cc ...
4 years, 10 months ago (2016-02-19 21:43:52 UTC) #13
mvstanton
https://codereview.chromium.org/1712003003/diff/40001/src/frames.h File src/frames.h (right): https://codereview.chromium.org/1712003003/diff/40001/src/frames.h#newcode626 src/frames.h:626: class VisibleFrame : public StandardFrame { On 2016/02/19 21:43:51, ...
4 years, 10 months ago (2016-02-19 21:54:04 UTC) #15
Michael Starzinger
https://codereview.chromium.org/1712003003/diff/40001/src/frames.h File src/frames.h (right): https://codereview.chromium.org/1712003003/diff/40001/src/frames.h#newcode626 src/frames.h:626: class VisibleFrame : public StandardFrame { On 2016/02/19 21:43:51, ...
4 years, 10 months ago (2016-02-19 21:55:23 UTC) #17
JF
https://codereview.chromium.org/1712003003/diff/40001/src/frames.h File src/frames.h (right): https://codereview.chromium.org/1712003003/diff/40001/src/frames.h#newcode626 src/frames.h:626: class VisibleFrame : public StandardFrame { On 2016/02/19 21:54:04, ...
4 years, 10 months ago (2016-02-19 21:55:53 UTC) #18
titzer
On 2016/02/19 21:55:23, Michael Starzinger wrote: > https://codereview.chromium.org/1712003003/diff/40001/src/frames.h > File src/frames.h (right): > > https://codereview.chromium.org/1712003003/diff/40001/src/frames.h#newcode626 ...
4 years, 10 months ago (2016-02-21 09:01:44 UTC) #19
titzer
https://codereview.chromium.org/1712003003/diff/40001/src/isolate.cc File src/isolate.cc (right): https://codereview.chromium.org/1712003003/diff/40001/src/isolate.cc#newcode419 src/isolate.cc:419: elements->set(cursor++, *factory()->undefined_value()); On 2016/02/19 21:55:23, Michael Starzinger wrote: > ...
4 years, 10 months ago (2016-02-21 09:01:54 UTC) #20
Michael Starzinger
On 2016/02/21 09:01:44, titzer wrote: > On 2016/02/19 21:55:23, Michael Starzinger wrote: > > https://codereview.chromium.org/1712003003/diff/40001/src/frames.h ...
4 years, 10 months ago (2016-02-22 13:17:05 UTC) #21
Michael Starzinger
On 2016/02/21 09:01:54, titzer wrote: > https://codereview.chromium.org/1712003003/diff/40001/src/isolate.cc > File src/isolate.cc (right): > > https://codereview.chromium.org/1712003003/diff/40001/src/isolate.cc#newcode419 > ...
4 years, 10 months ago (2016-02-22 13:17:43 UTC) #22
JF
OK this should now be good to go. https://codereview.chromium.org/1712003003/diff/40001/src/isolate.cc File src/isolate.cc (right): https://codereview.chromium.org/1712003003/diff/40001/src/isolate.cc#newcode419 src/isolate.cc:419: elements->set(cursor++, ...
4 years, 10 months ago (2016-02-22 18:29:40 UTC) #23
Michael Starzinger
LGTM. Thanks! Just nits left to address. https://codereview.chromium.org/1712003003/diff/120001/src/frames.cc File src/frames.cc (left): https://codereview.chromium.org/1712003003/diff/120001/src/frames.cc#oldcode138 src/frames.cc:138: // ------------------------------------------------------------------------- ...
4 years, 10 months ago (2016-02-23 09:36:25 UTC) #25
JF
https://codereview.chromium.org/1712003003/diff/120001/src/frames.cc File src/frames.cc (left): https://codereview.chromium.org/1712003003/diff/120001/src/frames.cc#oldcode138 src/frames.cc:138: // ------------------------------------------------------------------------- On 2016/02/23 09:36:25, Michael Starzinger wrote: > ...
4 years, 10 months ago (2016-02-23 16:00:53 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1712003003/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1712003003/140001
4 years, 10 months ago (2016-02-23 16:01:04 UTC) #29
commit-bot: I haz the power
Try jobs failed on following builders: v8_linux64_rel_ng on tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders/v8_linux64_rel_ng/builds/1784) v8_linux64_rel_ng_triggered on tryserver.v8 (JOB_FAILED, ...
4 years, 10 months ago (2016-02-23 16:18:50 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1712003003/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1712003003/160001
4 years, 10 months ago (2016-02-23 16:26:22 UTC) #34
commit-bot: I haz the power
Committed patchset #9 (id:160001)
4 years, 10 months ago (2016-02-23 17:21:10 UTC) #36
commit-bot: I haz the power
Patchset 9 (id:??) landed as https://crrev.com/aeca945786dcccad3efecfddbf2c07aefa524a56 Cr-Commit-Position: refs/heads/master@{#34220}
4 years, 10 months ago (2016-02-23 17:22:23 UTC) #38
Michael Achenbach
A revert of this CL (patchset #9 id:160001) has been created in https://codereview.chromium.org/1730673002/ by machenbach@chromium.org. ...
4 years, 10 months ago (2016-02-23 18:55:16 UTC) #39
adamk
https://codereview.chromium.org/1712003003/diff/160001/src/isolate.cc File src/isolate.cc (right): https://codereview.chromium.org/1712003003/diff/160001/src/isolate.cc#newcode434 src/isolate.cc:434: elements->set(cursor++, This line is causing a GCMole failure (https://build.chromium.org/p/client.v8/builders/V8%20Linux/builds/8295). ...
4 years, 10 months ago (2016-02-23 18:58:04 UTC) #41
JF
4 years, 10 months ago (2016-02-23 19:12:25 UTC) #42
Message was sent while issue was closed.
https://codereview.chromium.org/1712003003/diff/160001/src/isolate.cc
File src/isolate.cc (right):

https://codereview.chromium.org/1712003003/diff/160001/src/isolate.cc#newcode434
src/isolate.cc:434: elements->set(cursor++,
On 2016/02/23 18:58:04, adamk wrote:
> This line is causing a GCMole failure
> (https://build.chromium.org/p/client.v8/builders/V8%20Linux/builds/8295). The
> return values of the factory methods need to be stored on the stack before
being
> set in elements.

Fixed in: https://codereview.chromium.org/1724063002

Powered by Google App Engine
This is Rietveld 408576698