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

Issue 2520943002: [wasm] Implement official wasm text format (Closed)

Created:
4 years ago by Clemens Hammacher
Modified:
4 years ago
Reviewers:
titzer, rossberg
CC:
devtools-reviews_chromium.org, Michael Hablich, v8-reviews_googlegroups.com
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

[wasm] Implement official wasm text format When disassembling functions for the inspector, we used an internal text representation before. This CL implements the official text format like it is understood by the spec interpreter. Example output: func $main (param i32) (result i32) block i32 get_local 0 i32.const 2 i32.lt_u if i32.const -2 return end get_local 0 call_indirect 0 end R=rossberg@chromium.org, titzer@chromium.org BUG=chromium:659715 Committed: https://crrev.com/172f501233498e4dac793f415e12a213aa0b56b4 Cr-Commit-Position: refs/heads/master@{#41172}

Patch Set 1 #

Patch Set 2 : Add missing includes #

Patch Set 3 : Return a value even after UNREACHABLE #

Total comments: 18

Patch Set 4 : Address comments #

Patch Set 5 : Address comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+370 lines, -27 lines) Patch
M BUILD.gn View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M src/compiler/wasm-compiler.cc View 1 2 3 2 chunks +5 lines, -0 lines 0 comments Download
M src/flag-definitions.h View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download
M src/v8.gyp View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M src/wasm/ast-decoder.h View 1 2 3 4 1 chunk +0 lines, -4 lines 0 comments Download
M src/wasm/wasm-module.h View 1 chunk +1 line, -0 lines 0 comments Download
M src/wasm/wasm-module.cc View 1 2 3 4 chunks +9 lines, -19 lines 0 comments Download
A src/wasm/wasm-text.h View 1 2 3 1 chunk +32 lines, -0 lines 0 comments Download
A src/wasm/wasm-text.cc View 1 2 3 4 1 chunk +311 lines, -0 lines 0 comments Download
M test/inspector/debugger/wasm-source-expected.txt View 1 chunk +2 lines, -2 lines 0 comments Download
M test/inspector/debugger/wasm-stack-expected.txt View 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 34 (25 generated)
Clemens Hammacher
4 years ago (2016-11-21 14:42:47 UTC) #11
Clemens Hammacher
OK, it's not really s-expressions. How do you call it? Also: Sorry for the nested ...
4 years ago (2016-11-21 14:44:09 UTC) #12
titzer
lgtm with nits https://codereview.chromium.org/2520943002/diff/40001/src/wasm/s-expr.cc File src/wasm/s-expr.cc (right): https://codereview.chromium.org/2520943002/diff/40001/src/wasm/s-expr.cc#newcode37 src/wasm/s-expr.cc:37: CASE_INT_OP(Eqz, "eqz") Nice! This is well ...
4 years ago (2016-11-21 14:57:26 UTC) #15
rossberg
Mostly nits https://codereview.chromium.org/2520943002/diff/40001/src/wasm/s-expr.cc File src/wasm/s-expr.cc (right): https://codereview.chromium.org/2520943002/diff/40001/src/wasm/s-expr.cc#newcode56 src/wasm/s-expr.cc:56: CASE_SIGN_OP(INT, Shr, "shr") Nit: there should be ...
4 years ago (2016-11-21 15:03:51 UTC) #16
Clemens Hammacher
I now renamed files and methods from "s-expression" to "wasm-text". PTAL. https://codereview.chromium.org/2520943002/diff/40001/src/wasm/s-expr.cc File src/wasm/s-expr.cc (right): ...
4 years ago (2016-11-21 17:48:40 UTC) #21
rossberg
lgtm https://codereview.chromium.org/2520943002/diff/40001/src/wasm/s-expr.cc File src/wasm/s-expr.cc (right): https://codereview.chromium.org/2520943002/diff/40001/src/wasm/s-expr.cc#newcode268 src/wasm/s-expr.cc:268: FOREACH_SIMPLE_OPCODE(CASE_OPCODE) On 2016/11/21 17:48:40, Clemens Hammacher wrote: > ...
4 years ago (2016-11-22 11:51:58 UTC) #27
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/2520943002/80001
4 years ago (2016-11-22 11:57:34 UTC) #30
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years ago (2016-11-22 11:59:32 UTC) #32
commit-bot: I haz the power
4 years ago (2016-11-22 12:00:02 UTC) #34
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/172f501233498e4dac793f415e12a213aa0b56b4
Cr-Commit-Position: refs/heads/master@{#41172}

Powered by Google App Engine
This is Rietveld 408576698