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

Issue 2229723002: [wasm] Support validation of asm.js modules with != 3 args. (Closed)

Created:
4 years, 4 months ago by bradnelson
Modified:
4 years, 4 months ago
CC:
v8-reviews_googlegroups.com, v8-mips-ports_googlegroups.com, v8-x87-ports_googlegroups.com, v8-ppc-ports_googlegroups.com
Base URL:
https://chromium.googlesource.com/v8/v8.git@master
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

[wasm] Support validation of asm.js modules with != 3 args. Our previous per-arch instantiation thunks for asm.js didn't support modules that had or were called with anything other than 3 arguments. Adding support for this. Addding a runtime test method to check if asm validation succeeded. Adding a test of validation with different argument count combinations. R=mstarzinger@chromium.org TEST=mjsunit/asm/asm-validator.js BUG= https://bugs.chromium.org/p/v8/issues/detail?id=4203 Committed: https://crrev.com/d0e52555f07a6f01a25114355007bc9095e00f6a Cr-Commit-Position: refs/heads/master@{#38688}

Patch Set 1 #

Patch Set 2 : fix #

Total comments: 4

Patch Set 3 : fix #

Patch Set 4 : file change #

Total comments: 21

Patch Set 5 : fix #

Patch Set 6 : Fix #

Total comments: 6

Patch Set 7 : fix #

Patch Set 8 : mips and more #

Unified diffs Side-by-side diffs Delta from patch set Stats (+502 lines, -48 lines) Patch
M src/builtins/arm/builtins-arm.cc View 1 2 3 4 5 6 7 2 chunks +30 lines, -5 lines 0 comments Download
M src/builtins/arm64/builtins-arm64.cc View 1 2 3 4 5 6 7 1 chunk +30 lines, -5 lines 0 comments Download
M src/builtins/ia32/builtins-ia32.cc View 1 2 3 4 5 6 7 2 chunks +32 lines, -4 lines 0 comments Download
M src/builtins/mips/builtins-mips.cc View 1 2 3 4 5 6 7 1 chunk +30 lines, -6 lines 0 comments Download
M src/builtins/mips64/builtins-mips64.cc View 1 2 3 4 5 6 7 1 chunk +29 lines, -6 lines 0 comments Download
M src/builtins/ppc/builtins-ppc.cc View 1 2 3 4 5 6 7 1 chunk +29 lines, -5 lines 0 comments Download
M src/builtins/s390/builtins-s390.cc View 1 2 3 4 5 6 7 1 chunk +30 lines, -5 lines 0 comments Download
M src/builtins/x64/builtins-x64.cc View 1 2 3 4 5 6 7 2 chunks +32 lines, -4 lines 0 comments Download
M src/builtins/x87/builtins-x87.cc View 1 2 3 4 5 6 7 2 chunks +32 lines, -4 lines 0 comments Download
M src/compiler.cc View 1 2 3 4 5 6 7 2 chunks +5 lines, -2 lines 0 comments Download
M src/objects.h View 1 2 3 4 5 6 7 2 chunks +4 lines, -0 lines 0 comments Download
M src/objects-inl.h View 1 2 3 4 5 6 7 1 chunk +2 lines, -0 lines 0 comments Download
M src/runtime/runtime.h View 1 2 3 4 5 6 7 1 chunk +2 lines, -1 line 0 comments Download
M src/runtime/runtime-compiler.cc View 1 2 3 4 5 6 1 chunk +11 lines, -1 line 0 comments Download
M src/runtime/runtime-test.cc View 1 2 3 4 5 6 7 1 chunk +16 lines, -0 lines 0 comments Download
A test/mjsunit/asm/asm-validation.js View 1 2 3 4 5 6 7 1 chunk +188 lines, -0 lines 0 comments Download

Messages

Total messages: 44 (27 generated)
bradnelson
Michael, This is not quite ready (only works on x86), but I'm hoping to get ...
4 years, 4 months ago (2016-08-09 08:02:07 UTC) #1
bradnelson
Oh and is allowing explicit -1 for user specified argument count an ok way to ...
4 years, 4 months ago (2016-08-09 08:03:25 UTC) #2
Michael Starzinger
https://codereview.chromium.org/2229723002/diff/20001/src/builtins/x64/builtins-x64.cc File src/builtins/x64/builtins-x64.cc (right): https://codereview.chromium.org/2229723002/diff/20001/src/builtins/x64/builtins-x64.cc#newcode1112 src/builtins/x64/builtins-x64.cc:1112: __ CallRuntime(Runtime::kInstantiateAsmJs, -1); For the call-site to not pass ...
4 years, 4 months ago (2016-08-09 15:48:09 UTC) #3
Michael Starzinger
Trying to answer inline ... On 2016/08/09 08:02:07, bradnelson wrote: > This is not quite ...
4 years, 4 months ago (2016-08-09 16:42:06 UTC) #4
Michael Starzinger
On 2016/08/09 08:02:07, bradnelson wrote: > * I've noticed issues with going all the way ...
4 years, 4 months ago (2016-08-09 17:20:31 UTC) #5
Michael Starzinger
On 2016/08/09 17:20:31, Michael Starzinger wrote: > On 2016/08/09 08:02:07, bradnelson wrote: > > * ...
4 years, 4 months ago (2016-08-09 17:45:01 UTC) #6
bradn
Indeed you are right about the state of the fallback not working in master. I ...
4 years, 4 months ago (2016-08-11 09:19:33 UTC) #10
Michael Starzinger
Quick reply to questions inline. Will do a second review of the code later. On ...
4 years, 4 months ago (2016-08-11 09:44:25 UTC) #17
Michael Starzinger
I like where this is going. Already looking good. One more round of comments. https://codereview.chromium.org/2229723002/diff/60001/src/builtins/x64/builtins-x64.cc ...
4 years, 4 months ago (2016-08-11 11:44:10 UTC) #18
bradn
One issue I'm running into is that in stress test mode, since modules are getting ...
4 years, 4 months ago (2016-08-12 01:17:09 UTC) #25
Michael Starzinger
Answers to questions inline. Will do a final review round over the code later today. ...
4 years, 4 months ago (2016-08-12 08:51:24 UTC) #28
Michael Starzinger
https://codereview.chromium.org/2229723002/diff/60001/test/mjsunit/asm/asm-validation.js File test/mjsunit/asm/asm-validation.js (right): https://codereview.chromium.org/2229723002/diff/60001/test/mjsunit/asm/asm-validation.js#newcode3 test/mjsunit/asm/asm-validation.js:3: // found in the LICENSE file. On 2016/08/12 01:17:09, ...
4 years, 4 months ago (2016-08-12 09:21:56 UTC) #29
bradn
https://codereview.chromium.org/2229723002/diff/100001/src/runtime/runtime-compiler.cc File src/runtime/runtime-compiler.cc (right): https://codereview.chromium.org/2229723002/diff/100001/src/runtime/runtime-compiler.cc#newcode111 src/runtime/runtime-compiler.cc:111: function->shared()->ReplaceCode( On 2016/08/12 09:21:55, Michael Starzinger wrote: > Replacing ...
4 years, 4 months ago (2016-08-12 18:50:02 UTC) #36
Michael Starzinger
LGTM.
4 years, 4 months ago (2016-08-16 15:59:37 UTC) #39
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/2229723002/140001
4 years, 4 months ago (2016-08-17 16:58:24 UTC) #41
commit-bot: I haz the power
Committed patchset #8 (id:140001)
4 years, 4 months ago (2016-08-17 17:22:17 UTC) #42
commit-bot: I haz the power
4 years, 4 months ago (2016-08-17 17:22:40 UTC) #44
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/d0e52555f07a6f01a25114355007bc9095e00f6a
Cr-Commit-Position: refs/heads/master@{#38688}

Powered by Google App Engine
This is Rietveld 408576698