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

Issue 1616973004: [wasm] Add utilities to print out WASM ast directly from the bytes. (Closed)

Created:
4 years, 11 months ago by titzer
Modified:
4 years, 11 months ago
Reviewers:
ahaas
CC:
Michael Hablich, 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

[wasm] Add utilities to print out WASM ast directly from the bytes. Motivated by finding a bug in a larger module, this CL adds the ability to dump out a byte-by-byte, nested view of the decoded AST. This byte-by-byte output uses the opcode enum to make it readable, but is suitable for pasting into a byte[] in C or JS and thus making a regression test. Also fix a bug; the case of running out of registers for indirect calls. R=ahaas@chromium.org BUG= Committed: https://crrev.com/3b6b8119ffc9fcd8f1946697140e9e333ceb61ad Cr-Commit-Position: refs/heads/master@{#33442}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Fix arm64, use AddIndirectFunctionTable() more. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+147 lines, -40 lines) Patch
M src/compiler/arm64/code-generator-arm64.cc View 1 1 chunk +2 lines, -1 line 0 comments Download
M src/compiler/wasm-linkage.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M src/flag-definitions.h View 1 chunk +1 line, -0 lines 0 comments Download
M src/wasm/ast-decoder.h View 1 chunk +2 lines, -0 lines 0 comments Download
M src/wasm/ast-decoder.cc View 3 chunks +49 lines, -3 lines 0 comments Download
M test/cctest/wasm/test-run-wasm.cc View 1 6 chunks +55 lines, -32 lines 0 comments Download
M test/cctest/wasm/test-signatures.h View 1 chunk +9 lines, -0 lines 0 comments Download
M test/cctest/wasm/wasm-run-utils.h View 1 2 chunks +27 lines, -2 lines 0 comments Download

Messages

Total messages: 9 (2 generated)
titzer
4 years, 11 months ago (2016-01-21 15:00:00 UTC) #1
ahaas
lgtm https://codereview.chromium.org/1616973004/diff/1/test/cctest/wasm/wasm-run-utils.h File test/cctest/wasm/wasm-run-utils.h (right): https://codereview.chromium.org/1616973004/diff/1/test/cctest/wasm/wasm-run-utils.h#newcode171 test/cctest/wasm/wasm-run-utils.h:171: void AddIndirectFunctionTable(int* functions, int table_size) { This function ...
4 years, 11 months ago (2016-01-21 15:47:28 UTC) #2
titzer
On 2016/01/21 15:47:28, ahaas wrote: > lgtm > > https://codereview.chromium.org/1616973004/diff/1/test/cctest/wasm/wasm-run-utils.h > File test/cctest/wasm/wasm-run-utils.h (right): > ...
4 years, 11 months ago (2016-01-21 15:50:09 UTC) #3
ahaas
lgtm
4 years, 11 months ago (2016-01-21 15:52:02 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1616973004/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1616973004/20001
4 years, 11 months ago (2016-01-21 16:09:36 UTC) #6
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 11 months ago (2016-01-21 16:10:57 UTC) #7
commit-bot: I haz the power
4 years, 11 months ago (2016-01-21 16:11:24 UTC) #9
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/3b6b8119ffc9fcd8f1946697140e9e333ceb61ad
Cr-Commit-Position: refs/heads/master@{#33442}

Powered by Google App Engine
This is Rietveld 408576698