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

Issue 2324733002: [wasm] Do not support grow_memory for asmjs modules. (Closed)

Created:
4 years, 3 months ago by ahaas
Modified:
4 years, 3 months ago
Reviewers:
titzer, bradnelson
CC:
v8-reviews_googlegroups.com
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

[wasm] Do not support grow_memory for asmjs modules. With this CL the AstDecoder produces an error if it encounters a grow_memory instruction in an asmjs module. Additionally asmjs instructions are not allowed anymore in wasm modules. BUG=chromium:644674 R=titzer@chromium.org Committed: https://crrev.com/685d488288a27ac6f208de59879ac7e11a5bb560 Cr-Commit-Position: refs/heads/master@{#39339}

Patch Set 1 #

Total comments: 4

Patch Set 2 : Added tests #

Patch Set 3 : Fixed a typo #

Unified diffs Side-by-side diffs Delta from patch set Stats (+208 lines, -47 lines) Patch
M src/compiler/wasm-compiler.h View 1 2 2 chunks +1 line, -1 line 0 comments Download
M src/compiler/wasm-compiler.cc View 1 2 2 chunks +1 line, -3 lines 0 comments Download
M src/wasm/ast-decoder.cc View 1 2 4 chunks +41 lines, -23 lines 0 comments Download
M src/wasm/wasm-opcodes.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M src/wasm/wasm-opcodes.cc View 1 2 4 chunks +13 lines, -2 lines 0 comments Download
M test/cctest/wasm/test-run-wasm-asmjs.cc View 18 chunks +34 lines, -12 lines 0 comments Download
M test/cctest/wasm/test-signatures.h View 1 2 3 chunks +6 lines, -0 lines 0 comments Download
M test/unittests/wasm/ast-decoder-unittest.cc View 1 2 3 chunks +111 lines, -6 lines 0 comments Download

Messages

Total messages: 23 (16 generated)
ahaas
4 years, 3 months ago (2016-09-08 07:37:53 UTC) #1
titzer
Looks mostly good. Can you add some ast-decoder-unittest cases for failing validation when the origin ...
4 years, 3 months ago (2016-09-08 08:16:29 UTC) #7
ahaas
I added tests to ast-decoder-unittest.cc https://codereview.chromium.org/2324733002/diff/1/src/wasm/ast-decoder.cc File src/wasm/ast-decoder.cc (right): https://codereview.chromium.org/2324733002/diff/1/src/wasm/ast-decoder.cc#newcode1238 src/wasm/ast-decoder.cc:1238: return; On 2016/09/08 at ...
4 years, 3 months ago (2016-09-09 10:52:28 UTC) #10
titzer
On 2016/09/09 10:52:28, ahaas wrote: > I added tests to ast-decoder-unittest.cc > > https://codereview.chromium.org/2324733002/diff/1/src/wasm/ast-decoder.cc > ...
4 years, 3 months ago (2016-09-09 10:57:24 UTC) #11
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/2324733002/40001
4 years, 3 months ago (2016-09-12 09:50:49 UTC) #20
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 3 months ago (2016-09-12 10:16:15 UTC) #21
commit-bot: I haz the power
4 years, 3 months ago (2016-09-12 10:16:59 UTC) #23
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/685d488288a27ac6f208de59879ac7e11a5bb560
Cr-Commit-Position: refs/heads/master@{#39339}

Powered by Google App Engine
This is Rietveld 408576698