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

Issue 1830663002: [wasm] Binary 11: AST changes. (Closed)

Created:
4 years, 9 months ago by titzer
Modified:
4 years, 7 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

[wasm] Binary 11: WASM AST is now postorder. [wasm] Binary 11: br_table takes a value. [wasm] Binary 11: Add implicit blocks to if arms. [wasm] Binary 11: Add arities to call, return, and breaks [wasm] Binary 11: Add experimental version. This CL changes the encoder, decoder, and tests to use a postorder encoding of the AST, which is more efficient in decode time and space. R=bradnelson@chromium.org,rossberg@chromium.org,binji@chromium.org BUG=chromium:575167 LOG=Y Committed: https://crrev.com/2aa4656eebc863332146f5c864e341f55972b85b Cr-Commit-Position: refs/heads/master@{#35896}

Patch Set 1 #

Total comments: 23

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : Renumber opcodes and remove tests added elsewhere #

Total comments: 4

Patch Set 5 : Fix order, renumber wasm-constants.js #

Patch Set 6 : Rebase on recent asm-wasm changes #

Patch Set 7 : Fixup after switches were introduced. #

Patch Set 8 : Update new test #

Patch Set 9 : #

Patch Set 10 : br_table takes a value #

Patch Set 11 : #

Patch Set 12 : Fix OOB for Pop(int) #

Patch Set 13 : Add implicit if/then block. #

Patch Set 14 : Add arities to calls, returns, and branches #

Patch Set 15 : Rebase #

Patch Set 16 : #

Patch Set 17 : Add Wasm.experimentalVersion #

Patch Set 18 : #

Patch Set 19 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+2346 lines, -2002 lines) Patch
M src/wasm/asm-wasm-builder.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 43 chunks +361 lines, -250 lines 0 comments Download
M src/wasm/ast-decoder.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +48 lines, -24 lines 0 comments Download
M src/wasm/ast-decoder.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 20 chunks +713 lines, -884 lines 0 comments Download
M src/wasm/encoder.h View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
M src/wasm/encoder.cc View 1 2 3 4 5 6 7 8 1 chunk +10 lines, -0 lines 0 comments Download
M src/wasm/module-decoder.cc View 1 2 3 4 5 6 7 8 1 chunk +1 line, -2 lines 0 comments Download
M src/wasm/wasm-js.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +9 lines, -0 lines 0 comments Download
M src/wasm/wasm-macro-gen.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +230 lines, -177 lines 0 comments Download
M src/wasm/wasm-opcodes.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 2 chunks +17 lines, -18 lines 0 comments Download
M src/wasm/wasm-opcodes.cc View 1 2 3 4 5 6 7 1 chunk +12 lines, -0 lines 0 comments Download
M test/cctest/wasm/test-run-wasm.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 29 chunks +105 lines, -64 lines 0 comments Download
M test/cctest/wasm/test-run-wasm-64.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 5 chunks +16 lines, -12 lines 0 comments Download
M test/cctest/wasm/test-run-wasm-js.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 3 chunks +6 lines, -3 lines 0 comments Download
M test/cctest/wasm/test-run-wasm-module.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 3 chunks +11 lines, -11 lines 0 comments Download
M test/mjsunit/wasm/asm-wasm.js View 1 2 3 4 5 6 7 8 9 10 11 12 13 3 chunks +79 lines, -0 lines 0 comments Download
M test/mjsunit/wasm/asm-wasm-switch.js View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +26 lines, -0 lines 0 comments Download
M test/mjsunit/wasm/calls.js View 1 2 3 4 5 6 7 4 chunks +10 lines, -9 lines 0 comments Download
M test/mjsunit/wasm/divrem-trap.js View 1 chunk +5 lines, -1 line 0 comments Download
M test/mjsunit/wasm/export-table.js View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +6 lines, -4 lines 0 comments Download
M test/mjsunit/wasm/ffi.js View 1 2 3 4 5 6 7 8 9 10 11 12 13 3 chunks +14 lines, -13 lines 0 comments Download
M test/mjsunit/wasm/ffi-error.js View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +4 lines, -3 lines 0 comments Download
M test/mjsunit/wasm/gc-frame.js View 1 2 3 4 5 6 7 8 9 10 11 12 13 3 chunks +3 lines, -3 lines 0 comments Download
M test/mjsunit/wasm/import-table.js View 1 2 3 4 5 6 7 8 9 10 11 12 13 4 chunks +13 lines, -12 lines 0 comments Download
M test/mjsunit/wasm/indirect-calls.js View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +7 lines, -4 lines 0 comments Download
M test/mjsunit/wasm/module-memory.js View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +22 lines, -12 lines 0 comments Download
M test/mjsunit/wasm/stack.js View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +3 lines, -3 lines 0 comments Download
M test/mjsunit/wasm/stackwalk.js View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +4 lines, -3 lines 0 comments Download
M test/mjsunit/wasm/start-function.js View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +2 lines, -2 lines 0 comments Download
M test/mjsunit/wasm/test-wasm-module-builder.js View 1 2 3 4 5 6 7 8 9 10 11 12 13 7 chunks +10 lines, -10 lines 0 comments Download
M test/mjsunit/wasm/verify-function-simple.js View 1 chunk +1 line, -1 line 0 comments Download
M test/mjsunit/wasm/wasm-constants.js View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +22 lines, -16 lines 0 comments Download
M test/mjsunit/wasm/wasm-object-api.js View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +1 line, -0 lines 0 comments Download
M test/unittests/wasm/ast-decoder-unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 46 chunks +544 lines, -430 lines 0 comments Download
M test/unittests/wasm/loop-assignment-analysis-unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M test/unittests/wasm/wasm-macro-gen-unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 3 chunks +29 lines, -30 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 33 (17 generated)
titzer
4 years, 9 months ago (2016-03-23 18:16:10 UTC) #1
bradnelson
lgtm Given the size of this diff, I'd hate to belabor the review. Hope this ...
4 years, 9 months ago (2016-03-23 19:14:26 UTC) #2
titzer
https://codereview.chromium.org/1830663002/diff/1/src/wasm/asm-wasm-builder.cc File src/wasm/asm-wasm-builder.cc (right): https://codereview.chromium.org/1830663002/diff/1/src/wasm/asm-wasm-builder.cc#newcode604 src/wasm/asm-wasm-builder.cc:604: if (target_var == nullptr && target_prop == nullptr) { ...
4 years, 9 months ago (2016-03-23 19:53:06 UTC) #3
bradn
https://codereview.chromium.org/1830663002/diff/1/src/wasm/asm-wasm-builder.cc File src/wasm/asm-wasm-builder.cc (right): https://codereview.chromium.org/1830663002/diff/1/src/wasm/asm-wasm-builder.cc#newcode604 src/wasm/asm-wasm-builder.cc:604: if (target_var == nullptr && target_prop == nullptr) { ...
4 years, 9 months ago (2016-03-23 19:58:50 UTC) #5
dougc
On 2016/03/23 18:16:10, titzer wrote: It does not appear to take into account the discussion ...
4 years, 9 months ago (2016-03-24 01:18:20 UTC) #6
titzer
On 2016/03/24 01:18:20, dougc wrote: > On 2016/03/23 18:16:10, titzer wrote: > > It does ...
4 years, 9 months ago (2016-03-24 09:20:47 UTC) #7
dougc
On 2016/03/24 09:20:47, titzer wrote: > > 2. It does not appear to address the ...
4 years, 9 months ago (2016-03-24 11:09:24 UTC) #8
titzer
On 2016/03/24 11:09:24, dougc wrote: > On 2016/03/24 09:20:47, titzer wrote: > > > 2. ...
4 years, 8 months ago (2016-03-29 13:30:14 UTC) #9
binji
https://codereview.chromium.org/1830663002/diff/60001/src/wasm/wasm-macro-gen.h File src/wasm/wasm-macro-gen.h (right): https://codereview.chromium.org/1830663002/diff/60001/src/wasm/wasm-macro-gen.h#newcode67 src/wasm/wasm-macro-gen.h:67: #define WASM_SELECT(cond, tval, fval) cond, tval, fval, kExprSelect this ...
4 years, 8 months ago (2016-03-29 18:04:34 UTC) #10
titzer
https://codereview.chromium.org/1830663002/diff/60001/src/wasm/wasm-macro-gen.h File src/wasm/wasm-macro-gen.h (right): https://codereview.chromium.org/1830663002/diff/60001/src/wasm/wasm-macro-gen.h#newcode67 src/wasm/wasm-macro-gen.h:67: #define WASM_SELECT(cond, tval, fval) cond, tval, fval, kExprSelect On ...
4 years, 8 months ago (2016-03-30 08:37:24 UTC) #11
bradn
4 years, 8 months ago (2016-04-05 18:32:14 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1830663002/360001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1830663002/360001
4 years, 7 months ago (2016-04-29 08:49:04 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1830663002/360001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1830663002/360001
4 years, 7 months ago (2016-04-29 08:50:24 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1830663002/360001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1830663002/360001
4 years, 7 months ago (2016-04-29 08:54:55 UTC) #29
commit-bot: I haz the power
Committed patchset #19 (id:360001)
4 years, 7 months ago (2016-04-29 09:15:31 UTC) #31
commit-bot: I haz the power
4 years, 7 months ago (2016-05-01 22:03:29 UTC) #33
Message was sent while issue was closed.
Patchset 19 (id:??) landed as
https://crrev.com/2aa4656eebc863332146f5c864e341f55972b85b
Cr-Commit-Position: refs/heads/master@{#35896}

Powered by Google App Engine
This is Rietveld 408576698