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

Issue 2558813004: [wasm][asm.js] Fail sooner if eval is present. (Closed)

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

Description

[wasm][asm.js] Fail sooner if eval is present. Use of eval in a function wraps it in a context. This throws off assumptions not checked until later, which is at odds with incremental validation and conversion. Check that module parameters are PARAMETER location early. BUG=672045 R=titzer@chromium.org Committed: https://crrev.com/6deb99c6d96893471d296dbf7434066818fc1688 Cr-Commit-Position: refs/heads/master@{#41594}

Patch Set 1 #

Total comments: 2

Patch Set 2 : fix #

Patch Set 3 : fix #

Patch Set 4 : fix #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+17 lines, -0 lines) Patch
M src/asmjs/asm-typer.cc View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download
M src/ast/scopes.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
A test/mjsunit/asm/regress-672045.js View 1 1 chunk +13 lines, -0 lines 2 comments Download

Messages

Total messages: 37 (22 generated)
bradnelson
4 years ago (2016-12-08 09:47:00 UTC) #3
titzer
https://codereview.chromium.org/2558813004/diff/1/src/asmjs/asm-typer.cc File src/asmjs/asm-typer.cc (right): https://codereview.chromium.org/2558813004/diff/1/src/asmjs/asm-typer.cc#newcode586 src/asmjs/asm-typer.cc:586: if (param->location() != VariableLocation::PARAMETER) { I don't think this ...
4 years ago (2016-12-08 10:39:54 UTC) #6
bradn
ptal https://codereview.chromium.org/2558813004/diff/1/src/asmjs/asm-typer.cc File src/asmjs/asm-typer.cc (right): https://codereview.chromium.org/2558813004/diff/1/src/asmjs/asm-typer.cc#newcode586 src/asmjs/asm-typer.cc:586: if (param->location() != VariableLocation::PARAMETER) { On 2016/12/08 10:39:54, ...
4 years ago (2016-12-08 10:53:24 UTC) #12
titzer
lgtm
4 years ago (2016-12-08 10:54:23 UTC) #13
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/2558813004/40001
4 years ago (2016-12-08 10:55:02 UTC) #16
commit-bot: I haz the power
Try jobs failed on following builders: v8_linux_rel_ng on master.tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders/v8_linux_rel_ng/builds/17494)
4 years ago (2016-12-08 10:58:12 UTC) #18
bradn
PTAL
4 years ago (2016-12-08 13:30:02 UTC) #21
titzer
lgtm modulo test comment https://codereview.chromium.org/2558813004/diff/60001/test/mjsunit/asm/regress-672045.js File test/mjsunit/asm/regress-672045.js (right): https://codereview.chromium.org/2558813004/diff/60001/test/mjsunit/asm/regress-672045.js#newcode10 test/mjsunit/asm/regress-672045.js:10: return { foo: function(y) { ...
4 years ago (2016-12-08 14:16:38 UTC) #24
bradn
https://codereview.chromium.org/2558813004/diff/60001/test/mjsunit/asm/regress-672045.js File test/mjsunit/asm/regress-672045.js (right): https://codereview.chromium.org/2558813004/diff/60001/test/mjsunit/asm/regress-672045.js#newcode10 test/mjsunit/asm/regress-672045.js:10: return { foo: function(y) { return eval(1); } }; ...
4 years ago (2016-12-08 14:26:42 UTC) #25
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/2558813004/60001
4 years ago (2016-12-08 14:26:55 UTC) #27
commit-bot: I haz the power
Try jobs failed on following builders: v8_presubmit on master.tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders/v8_presubmit/builds/30277)
4 years ago (2016-12-08 14:30:03 UTC) #29
Michael Starzinger
LGTM on "ast" changes.
4 years ago (2016-12-08 14:40:55 UTC) #31
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/2558813004/60001
4 years ago (2016-12-08 14:41:20 UTC) #33
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years ago (2016-12-08 14:43:50 UTC) #35
commit-bot: I haz the power
4 years ago (2016-12-08 14:44:10 UTC) #37
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/6deb99c6d96893471d296dbf7434066818fc1688
Cr-Commit-Position: refs/heads/master@{#41594}

Powered by Google App Engine
This is Rietveld 408576698