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 1565693002: WASM: Reserve an ignored section for source code meta information. (Closed)

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

WASM: Reserve an ignored section for source code meta information. Requesting reservation of a wasm section for experimentation with storing source code meta information, such as source code comments, and also extra inform on presentation of the AST such an `if-block` pattern being presented as a `when` operation. The wasm design already defines unrecognized sections to be ignored, and this reserved section is ignored. This section is only intended to hold source code meta information and to have no effect on code execution. With wasm going live (behind a flag) on v8, I would also like to be able to give people something to play with in terms of the deployed binary code being a useful source code. It's all experimental, but I understand the entire binary format that V8 is currently using is basically a throwaway, and that the working strategy is to get something running and then revisit format decisions. I would like a fixed reserved section number to avoid potential clashes with other projects - although I am not aware of any other calls for addition sections beyond the need for debug info. If a fixed number is not acceptable, then could this patch alternatively ignore all unrecognized sections and perhaps add the section size to them all - something which is already noted todo in the design document? BUG= Committed: https://crrev.com/0427d9ff2aa7cc838d9d245f58b673b0913922ca Cr-Commit-Position: refs/heads/master@{#33165}

Patch Set 1 #

Patch Set 2 : Fix the underflow check - can't have it stepping backwards. #

Patch Set 3 : Fix some mis-uses of EXPECT_FAILURE to resolve memory leaks in the tests. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+89 lines, -0 lines) Patch
M src/wasm/module-decoder.cc View 1 1 chunk +14 lines, -0 lines 0 comments Download
M src/wasm/wasm-module.h View 1 chunk +1 line, -0 lines 0 comments Download
M test/unittests/wasm/module-decoder-unittest.cc View 1 2 1 chunk +74 lines, -0 lines 0 comments Download

Messages

Total messages: 19 (10 generated)
dougc
4 years, 11 months ago (2016-01-06 03:51:08 UTC) #3
titzer
On 2016/01/06 03:51:08, dougc wrote: lgtm
4 years, 11 months ago (2016-01-06 17:30:46 UTC) #4
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1565693002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1565693002/20001
4 years, 11 months ago (2016-01-06 20:55:21 UTC) #6
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: v8_linux64_asan_rel on tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders/v8_linux64_asan_rel/builds/12047)
4 years, 11 months ago (2016-01-06 21:18:19 UTC) #8
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1565693002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1565693002/40001
4 years, 11 months ago (2016-01-06 21:31:37 UTC) #10
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 11 months ago (2016-01-06 22:17:58 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1565693002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1565693002/40001
4 years, 11 months ago (2016-01-08 00:13:05 UTC) #15
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 11 months ago (2016-01-08 00:36:05 UTC) #17
commit-bot: I haz the power
4 years, 11 months ago (2016-01-08 00:36:27 UTC) #19
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/0427d9ff2aa7cc838d9d245f58b673b0913922ca
Cr-Commit-Position: refs/heads/master@{#33165}

Powered by Google App Engine
This is Rietveld 408576698