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

Issue 2071343003: V8. ASM-2-WASM. Validator V2. (Closed)

Created:
4 years, 6 months ago by John
Modified:
4 years, 5 months ago
Reviewers:
bradnelson, bradn
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

V8. ASM-2-WASM. Validator V2. This is a rewrite of the ASM validator. This one follows the spec instead of using the AST visitors. BUG= https://bugs.chromium.org/p/v8/issues/detail?id=4203 TEST=cctest/asmjs/test-asm-typer TEST=cctest/asmjs/test-typing-asm LOG=N Committed: https://crrev.com/974f4a8059ba27f1298c0050067eb7a9ca575b81 Cr-Commit-Position: refs/heads/master@{#37694}

Patch Set 1 : entire spec implemented. #

Patch Set 2 : fixes ValidateCase #

Patch Set 3 : Ready to review, missing most tests. #

Patch Set 4 : tests function tables and module exports. #

Total comments: 121

Patch Set 5 : addresses comments. #

Patch Set 6 : tests most error paths #

Patch Set 7 : Adds a few expression validation tests. Fixes some uncovered bugs, and TODOes others. #

Patch Set 8 : Implements the last unittests. #

Patch Set 9 : Adds stack overflow checks #

Patch Set 10 : Fixes breakage due to asm-types relocation. #

Patch Set 11 : fixes heap-use-after-free #

Patch Set 12 : configures the parserinfo before creating the parser. #

Patch Set 13 : removes constexpr #

Patch Set 14 : git pull #

Patch Set 15 : fixes the inability to call foreign functions with integers #

Patch Set 16 : removes references to old asm2wasm files #

Patch Set 17 : Adds a few methods needed by the asm2wasm translator. #

Total comments: 14

Patch Set 18 : addresses comments. #

Patch Set 19 : Moving code around. #

Patch Set 20 : Reverts all changes in test-asm-validator. #

Patch Set 21 : moves test-asm-validator to the asmjs cctest folder. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+4693 lines, -2654 lines) Patch
M BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +2 lines, -0 lines 0 comments Download
M src/asmjs/OWNERS View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +2 lines, -0 lines 0 comments Download
A src/asmjs/asm-typer.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +325 lines, -0 lines 0 comments Download
A src/asmjs/asm-typer.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +2585 lines, -0 lines 0 comments Download
M src/asmjs/asm-types.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 5 chunks +7 lines, -3 lines 0 comments Download
M src/v8.gyp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +2 lines, -0 lines 0 comments Download
M test/cctest/OWNERS View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +0 lines, -2 lines 0 comments Download
A + test/cctest/asmjs/OWNERS View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +2 lines, -0 lines 0 comments Download
A test/cctest/asmjs/test-asm-typer.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +1766 lines, -0 lines 0 comments Download
A + test/cctest/asmjs/test-typing-asm.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 89 chunks +0 lines, -92 lines 0 comments Download
M test/cctest/cctest.gyp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 2 chunks +2 lines, -1 line 0 comments Download
D test/cctest/test-asm-validator.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +0 lines, -2556 lines 0 comments Download

Messages

Total messages: 28 (16 generated)
John
4 years, 6 months ago (2016-06-23 19:39:31 UTC) #11
bradnelson
Much prettier! LGTM with lots of observations and nits. https://codereview.chromium.org/2071343003/diff/200001/src/wasm/asm-typer.cc File src/wasm/asm-typer.cc (right): https://codereview.chromium.org/2071343003/diff/200001/src/wasm/asm-typer.cc#newcode46 src/wasm/asm-typer.cc:46: ...
4 years, 6 months ago (2016-06-24 00:19:04 UTC) #12
John
sub 100 comments on 2k+ lines? that's awesome! :) I addressed most of your concerns, ...
4 years, 6 months ago (2016-06-24 17:47:58 UTC) #13
bradn
https://codereview.chromium.org/2071343003/diff/200001/src/wasm/asm-typer.cc File src/wasm/asm-typer.cc (right): https://codereview.chromium.org/2071343003/diff/200001/src/wasm/asm-typer.cc#newcode534 src/wasm/asm-typer.cc:534: return AsmType::Int(); // Any type that is not AsmType::None(); ...
4 years, 6 months ago (2016-06-24 18:57:03 UTC) #15
John
whew, I am done with the unittests. Adding them uncovered some bugs. The ones in ...
4 years, 5 months ago (2016-07-07 16:46:56 UTC) #16
bradn
still lgtm https://codereview.chromium.org/2071343003/diff/460001/src/asmjs/asm-types.h File src/asmjs/asm-types.h (right): https://codereview.chromium.org/2071343003/diff/460001/src/asmjs/asm-types.h#newcode52 src/asmjs/asm-types.h:52: /* DESIGN FLAW: FloatishDoubleQ should be a ...
4 years, 5 months ago (2016-07-11 17:55:34 UTC) #17
John
There'll be another patch moving test-asm-validator elsewhere more appropriate. https://codereview.chromium.org/2071343003/diff/460001/src/asmjs/asm-types.h File src/asmjs/asm-types.h (right): https://codereview.chromium.org/2071343003/diff/460001/src/asmjs/asm-types.h#newcode52 src/asmjs/asm-types.h:52: ...
4 years, 5 months ago (2016-07-12 21:13:15 UTC) #18
John
ptal. If you're OK with the changes, CQ the cl?
4 years, 5 months ago (2016-07-12 21:50:39 UTC) #19
bradn
lgtm
4 years, 5 months ago (2016-07-12 21:58:39 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2071343003/540001
4 years, 5 months ago (2016-07-12 21:58:49 UTC) #23
commit-bot: I haz the power
Committed patchset #21 (id:540001)
4 years, 5 months ago (2016-07-12 23:09:03 UTC) #26
commit-bot: I haz the power
4 years, 5 months ago (2016-07-12 23:12:24 UTC) #28
Message was sent while issue was closed.
Patchset 21 (id:??) landed as
https://crrev.com/974f4a8059ba27f1298c0050067eb7a9ca575b81
Cr-Commit-Position: refs/heads/master@{#37694}

Powered by Google App Engine
This is Rietveld 408576698