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

Issue 1765843002: wasm: use strings for section names (Closed)

Created:
4 years, 9 months ago by JF
Modified:
4 years, 9 months ago
Reviewers:
titzer, binji, binji
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: use strings for section names This will require an equivalent sexpr-wasm change. See: https://github.com/WebAssembly/design/blob/master/BinaryEncoding.md#high-level-structure R=titzer@chromium.org, binji@chronium.org Committed: https://crrev.com/abbdca947f8b1f4967ff71700cca8cbc326df5cd Cr-Commit-Position: refs/heads/master@{#34668}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Include string length in section's total size #

Patch Set 3 : Start refactoring (still need to fix format, encoder.cc, and tests) #

Patch Set 4 : Update encoder.cc #

Patch Set 5 : Update tests, not passing yet #

Patch Set 6 : Prefix section length in JS module builder #

Patch Set 7 : Fix some encoding. A few tests still fail. #

Total comments: 6

Patch Set 8 : Fix unknown section size bug, and tests #

Patch Set 9 : Address comments, fix encoder.cc (still some failures...) #

Patch Set 10 : encoder.cc: don't mix up header/body sizes #

Patch Set 11 : Fix one serdes test #

Patch Set 12 : Fix another encoder.cc bug, add basic --trace_wasm_encoder #

Patch Set 13 : Rebase (not quite TOT yet) #

Patch Set 14 : Rebase again, past titzer's latest commit #

Patch Set 15 : `git cl format` decides to uglify stuff #

Total comments: 6

Patch Set 16 : Address issues found by MSVC, and some presubmits #

Patch Set 17 : Address binji's comments #

Patch Set 18 : Silence compiler warning #

Unified diffs Side-by-side diffs Delta from patch set Stats (+799 lines, -472 lines) Patch
M src/flag-definitions.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +1 line, -0 lines 0 comments Download
M src/wasm/decoder.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +1 line, -0 lines 0 comments Download
M src/wasm/encoder.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 7 chunks +121 lines, -38 lines 0 comments Download
M src/wasm/module-decoder.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 15 chunks +80 lines, -54 lines 0 comments Download
M src/wasm/wasm-module.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +64 lines, -18 lines 0 comments Download
M src/wasm/wasm-module.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +30 lines, -0 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 14 1 chunk +10 lines, -8 lines 0 comments Download
M test/mjsunit/wasm/wasm-constants.js View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +6 lines, -1 line 0 comments Download
M test/mjsunit/wasm/wasm-module-builder.js View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +119 lines, -97 lines 0 comments Download
M test/unittests/wasm/module-decoder-unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 36 chunks +367 lines, -256 lines 0 comments Download

Messages

Total messages: 25 (8 generated)
JF
titzer / binji if this part lgty I'll do the tests. I want to avoid ...
4 years, 9 months ago (2016-03-04 04:30:14 UTC) #1
titzer
https://codereview.chromium.org/1765843002/diff/1/src/wasm/module-decoder.cc File src/wasm/module-decoder.cc (right): https://codereview.chromium.org/1765843002/diff/1/src/wasm/module-decoder.cc#newcode82 src/wasm/module-decoder.cc:82: uint32_t section_bytes = consume_u32v(&length, "section size"); Should the section ...
4 years, 9 months ago (2016-03-07 08:45:33 UTC) #2
JF
I think this is mostly done, but we're now all racing on the tests, and ...
4 years, 9 months ago (2016-03-09 02:38:58 UTC) #3
titzer
https://codereview.chromium.org/1765843002/diff/120001/src/wasm/module-decoder.cc File src/wasm/module-decoder.cc (right): https://codereview.chromium.org/1765843002/diff/120001/src/wasm/module-decoder.cc#newcode83 src/wasm/module-decoder.cc:83: uint32_t section_bytes = consume_u32v(&length, "section size"); section_size *_bytes sounds ...
4 years, 9 months ago (2016-03-09 13:19:38 UTC) #4
titzer
On 2016/03/09 02:38:58, JF wrote: > I think this is mostly done, but we're now ...
4 years, 9 months ago (2016-03-09 13:19:59 UTC) #5
JF
I've got some more fixes in, but still need to go through the code again ...
4 years, 9 months ago (2016-03-09 18:51:52 UTC) #6
JF
I think this is now good to go, trying out a few bots.
4 years, 9 months ago (2016-03-10 02:12:12 UTC) #7
binji
didn't have time to review it all, but so far lgtm https://codereview.chromium.org/1765843002/diff/230011/src/wasm/encoder.cc File src/wasm/encoder.cc (right): ...
4 years, 9 months ago (2016-03-10 02:20:34 UTC) #9
JF
Ha ha! You fool! You fell victim to one of the classic blunders - The ...
4 years, 9 months ago (2016-03-10 03:20:08 UTC) #10
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1765843002/300001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1765843002/300001
4 years, 9 months ago (2016-03-10 03:20:36 UTC) #12
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: v8_linux_gcc_compile_rel on tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders/v8_linux_gcc_compile_rel/builds/13138)
4 years, 9 months ago (2016-03-10 03:31:26 UTC) #14
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1765843002/230012 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1765843002/230012
4 years, 9 months ago (2016-03-10 04:41:26 UTC) #16
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 9 months ago (2016-03-10 05:04:54 UTC) #18
titzer
On 2016/03/10 05:04:54, commit-bot: I haz the power wrote: > Dry run: This issue passed ...
4 years, 9 months ago (2016-03-10 12:32:31 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1765843002/230012 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1765843002/230012
4 years, 9 months ago (2016-03-10 12:32:43 UTC) #22
commit-bot: I haz the power
Committed patchset #18 (id:230012)
4 years, 9 months ago (2016-03-10 12:36:48 UTC) #23
commit-bot: I haz the power
4 years, 9 months ago (2016-03-10 12:37:27 UTC) #25
Message was sent while issue was closed.
Patchset 18 (id:??) landed as
https://crrev.com/abbdca947f8b1f4967ff71700cca8cbc326df5cd
Cr-Commit-Position: refs/heads/master@{#34668}

Powered by Google App Engine
This is Rietveld 408576698