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

Issue 1775873002: [Wasm] Convert many of the fixed-size values to LEB128. (Closed)

Created:
4 years, 9 months ago by binji
Modified:
4 years, 9 months ago
Reviewers:
titzer
CC:
v8-reviews_googlegroups.com
Base URL:
http://chromium.googlesource.com/v8/v8.git@master
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

[Wasm] Convert many of the fixed-size values to LEB128. This CL modifies the following to be LEB128: * Function table indices * Import table signature indices * Export table function indices * Function signature param count * br/br_if break depth * br_table target count * block/loop expression count Still to do: * Import/export names (LEB128 count + inline data) * Data segments (LEB128 offset + size + inline data) * Function header stuff (should seperate into function sig and body sections) * Memory access alignment + offset (still discussing) BUG= R=titzer@chromium.org Committed: https://crrev.com/78f6f838f0fdf2ce49a498e1548511b75535d19b Cr-Commit-Position: refs/heads/master@{#34603}

Patch Set 1 #

Total comments: 6

Patch Set 2 : win64 and linux gcc errors #

Patch Set 3 : br_table targets are u16 again #

Patch Set 4 : fix WasmMacroGen unittest #

Patch Set 5 : change to uint32_t #

Patch Set 6 : merge master #

Patch Set 7 : fix windows #

Unified diffs Side-by-side diffs Delta from patch set Stats (+184 lines, -79 lines) Patch
M src/wasm/asm-wasm-builder.cc View 9 chunks +13 lines, -12 lines 0 comments Download
M src/wasm/ast-decoder.h View 1 2 3 4 3 chunks +11 lines, -10 lines 0 comments Download
M src/wasm/ast-decoder.cc View 1 2 3 4 2 chunks +2 lines, -2 lines 0 comments Download
M src/wasm/encoder.h View 1 chunk +3 lines, -2 lines 0 comments Download
M src/wasm/encoder.cc View 1 8 chunks +50 lines, -21 lines 0 comments Download
M src/wasm/module-decoder.cc View 1 2 3 4 5 4 chunks +5 lines, -4 lines 0 comments Download
M src/wasm/wasm-macro-gen.h View 1 2 3 4 2 chunks +4 lines, -3 lines 0 comments Download
M src/wasm/wasm-module.h View 1 2 3 4 5 2 chunks +3 lines, -3 lines 0 comments Download
M test/cctest/wasm/test-run-wasm.cc View 1 2 3 4 5 6 2 chunks +2 lines, -2 lines 0 comments Download
M test/mjsunit/wasm/wasm-module-builder.js View 1 2 3 4 5 5 chunks +5 lines, -5 lines 0 comments Download
M test/unittests/wasm/encoder-unittest.cc View 1 chunk +74 lines, -0 lines 0 comments Download
M test/unittests/wasm/module-decoder-unittest.cc View 1 2 3 4 5 4 chunks +11 lines, -14 lines 0 comments Download
M test/unittests/wasm/wasm-macro-gen-unittest.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 25 (11 generated)
binji
PTAL. More tests?
4 years, 9 months ago (2016-03-08 09:59:45 UTC) #1
titzer
Mostly looks good, but I think we want to undo the br_table change. https://codereview.chromium.org/1775873002/diff/1/src/wasm/ast-decoder.h File ...
4 years, 9 months ago (2016-03-08 10:06:53 UTC) #2
binji
https://codereview.chromium.org/1775873002/diff/1/src/wasm/ast-decoder.h File src/wasm/ast-decoder.h (right): https://codereview.chromium.org/1775873002/diff/1/src/wasm/ast-decoder.h#newcode150 src/wasm/ast-decoder.h:150: inline BranchTableOperand(Decoder* decoder, const byte* pc) { On 2016/03/08 ...
4 years, 9 months ago (2016-03-08 16:30:15 UTC) #3
binji
switched br_table targets back to u16, ptal
4 years, 9 months ago (2016-03-08 18:48:54 UTC) #6
titzer
On 2016/03/08 18:48:54, binji wrote: > switched br_table targets back to u16, ptal Ok. It's ...
4 years, 9 months ago (2016-03-08 20:04:30 UTC) #7
binji
On 2016/03/08 20:04:30, titzer wrote: > On 2016/03/08 18:48:54, binji wrote: > > switched br_table ...
4 years, 9 months ago (2016-03-08 20:24:48 UTC) #8
titzer
On 2016/03/08 20:24:48, binji wrote: > On 2016/03/08 20:04:30, titzer wrote: > > On 2016/03/08 ...
4 years, 9 months ago (2016-03-08 20:25:53 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1775873002/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1775873002/100001
4 years, 9 months ago (2016-03-08 21:28:50 UTC) #12
commit-bot: I haz the power
Try jobs failed on following builders: v8_win_compile_dbg on tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders/v8_win_compile_dbg/builds/14362) v8_win_rel_ng on tryserver.v8 (JOB_FAILED, ...
4 years, 9 months ago (2016-03-08 21:33:18 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1775873002/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1775873002/120001
4 years, 9 months ago (2016-03-08 21:54:08 UTC) #17
commit-bot: I haz the power
Try jobs failed on following builders: v8_linux_arm64_rel on tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders/v8_linux_arm64_rel/builds/16554)
4 years, 9 months ago (2016-03-08 21:57:59 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1775873002/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1775873002/120001
4 years, 9 months ago (2016-03-08 22:53:05 UTC) #21
commit-bot: I haz the power
Committed patchset #7 (id:120001)
4 years, 9 months ago (2016-03-08 22:54:50 UTC) #23
commit-bot: I haz the power
4 years, 9 months ago (2016-03-08 22:56:27 UTC) #25
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/78f6f838f0fdf2ce49a498e1548511b75535d19b
Cr-Commit-Position: refs/heads/master@{#34603}

Powered by Google App Engine
This is Rietveld 408576698