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

Issue 2050213002: [wasm] Implement AST printing into an ostream (Closed)

Created:
4 years, 6 months ago by Clemens Hammacher
Modified:
4 years, 6 months ago
CC:
v8-reviews_googlegroups.com
Base URL:
https://chromium.googlesource.com/v8/v8.git@refactor-function-names-table
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

[wasm] Implement AST printing into an ostream This will be used for disassembling individual wasm function for showing them in devtools. The PrintAst function now also optionally provides an offset table mapping from byte offset to line and column in the generated text. R=titzer@chromium.org, ahaas@chromium.org BUG=chromium:613110 Committed: https://crrev.com/12aa132d873da628971f0610a987bcef302d9d9f Cr-Commit-Position: refs/heads/master@{#37026}

Patch Set 1 #

Patch Set 2 : fix printing uint64_t #

Patch Set 3 : see if adding <functional> include fixes this #

Total comments: 6

Patch Set 4 : address titzer's comments #

Total comments: 4

Patch Set 5 : address ahaas' comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+80 lines, -20 lines) Patch
M src/compiler/wasm-compiler.cc View 1 2 3 4 1 chunk +2 lines, -1 line 0 comments Download
M src/ostreams.h View 2 chunks +9 lines, -0 lines 0 comments Download
M src/ostreams.cc View 1 1 chunk +6 lines, -0 lines 0 comments Download
M src/wasm/ast-decoder.h View 1 2 3 2 chunks +8 lines, -1 line 0 comments Download
M src/wasm/ast-decoder.cc View 1 2 3 4 10 chunks +55 lines, -18 lines 0 comments Download

Messages

Total messages: 23 (11 generated)
Clemens Hammacher
4 years, 6 months ago (2016-06-10 09:52:00 UTC) #2
titzer
https://codereview.chromium.org/2050213002/diff/40001/src/wasm/ast-decoder.cc File src/wasm/ast-decoder.cc (right): https://codereview.chromium.org/2050213002/diff/40001/src/wasm/ast-decoder.cc#newcode151 src/wasm/ast-decoder.cc:151: if (!m || !m->module) return false; This change means ...
4 years, 6 months ago (2016-06-10 10:57:41 UTC) #3
Clemens Hammacher
https://codereview.chromium.org/2050213002/diff/40001/src/wasm/ast-decoder.cc File src/wasm/ast-decoder.cc (right): https://codereview.chromium.org/2050213002/diff/40001/src/wasm/ast-decoder.cc#newcode151 src/wasm/ast-decoder.cc:151: if (!m || !m->module) return false; On 2016/06/10 10:57:40, ...
4 years, 6 months ago (2016-06-13 09:45:17 UTC) #5
Clemens Hammacher
PTAL
4 years, 6 months ago (2016-06-15 07:49:23 UTC) #8
ahaas
lgtm with nits https://codereview.chromium.org/2050213002/diff/60001/src/wasm/ast-decoder.cc File src/wasm/ast-decoder.cc (right): https://codereview.chromium.org/2050213002/diff/60001/src/wasm/ast-decoder.cc#newcode1598 src/wasm/ast-decoder.cc:1598: const char* padding = " "; ...
4 years, 6 months ago (2016-06-15 14:22:53 UTC) #9
Clemens Hammacher
https://codereview.chromium.org/2050213002/diff/60001/src/wasm/ast-decoder.cc File src/wasm/ast-decoder.cc (right): https://codereview.chromium.org/2050213002/diff/60001/src/wasm/ast-decoder.cc#newcode1598 src/wasm/ast-decoder.cc:1598: const char* padding = " "; On 2016/06/15 14:22:53, ...
4 years, 6 months ago (2016-06-15 17:00:55 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2050213002/80001
4 years, 6 months ago (2016-06-16 07:20:24 UTC) #13
commit-bot: I haz the power
Try jobs failed on following builders: v8_presubmit on tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders/v8_presubmit/builds/17355)
4 years, 6 months ago (2016-06-16 07:22:53 UTC) #15
Michael Starzinger
LGTM (rubber-stamp for compiler part).
4 years, 6 months ago (2016-06-16 07:44:46 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2050213002/80001
4 years, 6 months ago (2016-06-16 07:46:36 UTC) #19
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 6 months ago (2016-06-16 07:48:40 UTC) #21
commit-bot: I haz the power
4 years, 6 months ago (2016-06-16 07:50:03 UTC) #23
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/12aa132d873da628971f0610a987bcef302d9d9f
Cr-Commit-Position: refs/heads/master@{#37026}

Powered by Google App Engine
This is Rietveld 408576698