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

Issue 1743773002: WebAssembly: skip unknown sections, add names (Closed)

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

WebAssembly: skip unknown sections, add names Sets the code up so it'll be easier to have section names as strings instead of hard-coded numbers. Using strings will require synchronizing with sexpr-wasm. Mostly NFC (besides now skipping *all* unknown sections). R=titzer@chromium.org Committed: https://crrev.com/df269e6e542fce2790db4e43553a0007dd6648e0 Cr-Commit-Position: refs/heads/master@{#34464}

Patch Set 1 #

Total comments: 6

Patch Set 2 : Address comments. #

Patch Set 3 : git cl format #

Total comments: 1

Patch Set 4 : Remove extra check. #

Patch Set 5 : MSVC warning. #

Patch Set 6 : Hack to see why Windows is sad. #

Patch Set 7 : Remove hack, and not strictly necessary changes #

Patch Set 8 : Rebase #

Patch Set 9 : Merge un-fail. #

Patch Set 10 : Put back default, maybe appease Windows? #

Patch Set 11 : Rebase, a few changes #

Patch Set 12 : Start over, figure out why Windows is sad #

Patch Set 13 : Add decoder back #

Patch Set 14 : Drop size_t, it makes Windows sad, fix range later #

Patch Set 15 : Rebase & fix API, it changed #

Patch Set 16 : Rebase #

Patch Set 17 : Add overflow check back #

Patch Set 18 : Fix limit type #

Unified diffs Side-by-side diffs Delta from patch set Stats (+142 lines, -70 lines) Patch
M src/wasm/decoder.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +14 lines, -1 line 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 2 chunks +15 lines, -23 lines 0 comments Download
M src/wasm/wasm-module.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +21 lines, -14 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 2 chunks +92 lines, -32 lines 0 comments Download

Messages

Total messages: 37 (20 generated)
JF
4 years, 10 months ago (2016-02-26 22:36:29 UTC) #1
titzer
https://codereview.chromium.org/1743773002/diff/1/src/wasm/module-decoder.cc File src/wasm/module-decoder.cc (right): https://codereview.chromium.org/1743773002/diff/1/src/wasm/module-decoder.cc#newcode69 src/wasm/module-decoder.cc:69: for (uint32_t section_bytes = consume_u32v(&length, "globals count"); s/globals count/section ...
4 years, 10 months ago (2016-02-26 22:54:17 UTC) #2
JF
https://codereview.chromium.org/1743773002/diff/1/src/wasm/module-decoder.cc File src/wasm/module-decoder.cc (right): https://codereview.chromium.org/1743773002/diff/1/src/wasm/module-decoder.cc#newcode69 src/wasm/module-decoder.cc:69: for (uint32_t section_bytes = consume_u32v(&length, "globals count"); On 2016/02/26 ...
4 years, 10 months ago (2016-02-26 23:42:41 UTC) #3
titzer
lgtm other than one comment https://codereview.chromium.org/1743773002/diff/40001/src/wasm/module-decoder.cc File src/wasm/module-decoder.cc (right): https://codereview.chromium.org/1743773002/diff/40001/src/wasm/module-decoder.cc#newcode62 src/wasm/module-decoder.cc:62: while (pc_ < limit_ ...
4 years, 10 months ago (2016-02-26 23:48:52 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1743773002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1743773002/60001
4 years, 10 months ago (2016-02-26 23:52:10 UTC) #7
commit-bot: I haz the power
Try jobs failed on following builders: v8_win64_rel_ng on tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders/v8_win64_rel_ng/builds/3576) v8_win_rel_ng on tryserver.v8 (JOB_FAILED, ...
4 years, 10 months ago (2016-02-26 23:54:49 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1743773002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1743773002/80001
4 years, 10 months ago (2016-02-26 23:59:31 UTC) #12
commit-bot: I haz the power
Try jobs failed on following builders: v8_win_rel_ng on tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders/v8_win_rel_ng/builds/3455) v8_win_rel_ng_triggered on tryserver.v8 (JOB_FAILED, ...
4 years, 10 months ago (2016-02-27 00:32:08 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1743773002/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1743773002/100001
4 years, 10 months ago (2016-02-27 01:27:27 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1743773002/180001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1743773002/180001
4 years, 9 months ago (2016-02-27 19:52:57 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1743773002/260001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1743773002/260001
4 years, 9 months ago (2016-02-29 16:14:46 UTC) #24
commit-bot: I haz the power
Try jobs failed on following builders: v8_android_arm_compile_rel on tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders/v8_android_arm_compile_rel/builds/14093) v8_linux64_avx2_rel on tryserver.v8 (JOB_FAILED, ...
4 years, 9 months ago (2016-02-29 16:17:18 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1743773002/280001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1743773002/280001
4 years, 9 months ago (2016-02-29 16:39:54 UTC) #29
commit-bot: I haz the power
Try jobs failed on following builders: v8_linux_rel_ng on tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders/v8_linux_rel_ng/builds/2093)
4 years, 9 months ago (2016-02-29 16:45:16 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1743773002/340001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1743773002/340001
4 years, 9 months ago (2016-03-03 16:37:10 UTC) #34
commit-bot: I haz the power
Committed patchset #18 (id:340001)
4 years, 9 months ago (2016-03-03 16:52:18 UTC) #35
commit-bot: I haz the power
4 years, 9 months ago (2016-03-03 16:53:26 UTC) #37
Message was sent while issue was closed.
Patchset 18 (id:??) landed as
https://crrev.com/df269e6e542fce2790db4e43553a0007dd6648e0
Cr-Commit-Position: refs/heads/master@{#34464}

Powered by Google App Engine
This is Rietveld 408576698