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

Issue 2057403003: Hooking up asm-wasm conversion. (Closed)

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

Description

Hooking up asm-wasm conversion. Directs 'use asm' traffic through asm-wasm conversion when --validate-asm is passed. Adds a builtin that handles the fallback to JS. BUG= https://bugs.chromium.org/p/v8/issues/detail?id=4203 TEST=asm-wasm R=mstarzinger@chromium.org,titzer@chromium.org LOG=N Committed: https://crrev.com/f20323dce2a796f25eddec83c34b97127d046745 Cr-Commit-Position: refs/heads/master@{#37470}

Patch Set 1 #

Patch Set 2 : fix #

Patch Set 3 : fix #

Patch Set 4 : Fix #

Patch Set 5 : mrege #

Total comments: 6

Patch Set 6 : Revised #

Patch Set 7 : Gate out other platforms. #

Patch Set 8 : Fix #

Patch Set 9 : fix #

Patch Set 10 : fix #

Total comments: 16

Patch Set 11 : Other arches #

Patch Set 12 : fix #

Patch Set 13 : fix #

Total comments: 19

Patch Set 14 : refactor #

Patch Set 15 : fix #

Unified diffs Side-by-side diffs Delta from patch set Stats (+649 lines, -4465 lines) Patch
M BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 7 chunks +18 lines, -11 lines 0 comments Download
M src/arm/builtins-arm.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +42 lines, -0 lines 0 comments Download
M src/arm64/builtins-arm64.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +36 lines, -0 lines 0 comments Download
A + src/asmjs/OWNERS View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +1 line, -0 lines 0 comments Download
A src/asmjs/asm-js.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +31 lines, -0 lines 0 comments Download
A src/asmjs/asm-js.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +158 lines, -0 lines 0 comments Download
A + src/asmjs/asm-types.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +2 lines, -2 lines 0 comments Download
A + src/asmjs/asm-types.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +1 line, -1 line 0 comments Download
A + src/asmjs/asm-wasm-builder.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +3 lines, -3 lines 0 comments Download
A + src/asmjs/asm-wasm-builder.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +1 line, -1 line 0 comments Download
A + src/asmjs/typing-asm.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 3 chunks +4 lines, -2 lines 0 comments Download
A + src/asmjs/typing-asm.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 42 chunks +9 lines, -75 lines 0 comments Download
M src/bootstrapper.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +1 line, -3 lines 0 comments Download
M src/builtins.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +2 lines, -0 lines 0 comments Download
M src/compiler.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 3 chunks +8 lines, -9 lines 0 comments Download
M src/ia32/builtins-ia32.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +40 lines, -0 lines 0 comments Download
M src/mips/builtins-mips.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +36 lines, -0 lines 0 comments Download
M src/mips64/builtins-mips64.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +36 lines, -0 lines 0 comments Download
M src/objects.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +5 lines, -0 lines 0 comments Download
M src/objects-debug.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -1 line 0 comments Download
M src/objects-inl.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +19 lines, -0 lines 0 comments Download
M src/ppc/builtins-ppc.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +36 lines, -0 lines 0 comments Download
M src/runtime/runtime.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +2 lines, -1 line 0 comments Download
M src/runtime/runtime-compiler.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 3 chunks +26 lines, -1 line 0 comments Download
M src/s390/builtins-s390.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +37 lines, -0 lines 0 comments Download
M src/typing-asm.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +0 lines, -188 lines 0 comments Download
D src/typing-asm.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +0 lines, -1669 lines 0 comments Download
M src/v8.gyp View 1 2 3 4 5 6 7 8 9 10 11 12 13 3 chunks +8 lines, -6 lines 0 comments Download
D src/wasm/asm-types.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +0 lines, -344 lines 0 comments Download
D src/wasm/asm-types.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +0 lines, -319 lines 0 comments Download
D src/wasm/asm-wasm-builder.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +0 lines, -37 lines 0 comments Download
D src/wasm/asm-wasm-builder.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +0 lines, -1785 lines 0 comments Download
M src/wasm/wasm-js.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +2 lines, -2 lines 0 comments Download
M src/x64/builtins-x64.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +40 lines, -1 line 0 comments Download
M src/x87/builtins-x87.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +40 lines, -0 lines 0 comments Download
M test/cctest/test-asm-validator.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +3 lines, -3 lines 0 comments Download
M test/unittests/wasm/asm-types-unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 29 (11 generated)
bradnelson
Michael, Ben, is this approach sane? Any guesses why I get the stack trace below ...
4 years, 6 months ago (2016-06-13 08:52:20 UTC) #4
Michael Starzinger
To answer your question: My first guess would be that a code object escaped into ...
4 years, 6 months ago (2016-06-13 14:10:44 UTC) #5
bradnelson
PTAL https://codereview.chromium.org/2057403003/diff/80001/src/builtins.cc File src/builtins.cc (right): https://codereview.chromium.org/2057403003/diff/80001/src/builtins.cc#newcode5355 src/builtins.cc:5355: BUILTIN(CompileAsmJs) { On 2016/06/13 14:10:43, Michael Starzinger wrote: ...
4 years, 5 months ago (2016-06-27 07:56:10 UTC) #7
bradn
Ping?
4 years, 5 months ago (2016-06-28 16:03:30 UTC) #9
Michael Starzinger
Approach looks good. Just a couple of minor comments. Lets do the ports to other ...
4 years, 5 months ago (2016-06-29 08:29:23 UTC) #10
bradn
PTAL https://codereview.chromium.org/2057403003/diff/180001/src/builtins.cc File src/builtins.cc (right): https://codereview.chromium.org/2057403003/diff/180001/src/builtins.cc#newcode30 src/builtins.cc:30: #include "src/wasm/wasm-js.h" On 2016/06/29 08:29:23, Michael Starzinger wrote: ...
4 years, 5 months ago (2016-06-30 07:59:36 UTC) #11
Michael Starzinger
LGTM on the plumbing outside of WASM. One last comment to address. Note that I ...
4 years, 5 months ago (2016-06-30 09:39:23 UTC) #13
titzer
I'm OK with this CL generally, but wonder if we should just start an asmjs/ ...
4 years, 5 months ago (2016-06-30 09:56:03 UTC) #14
Mircea Trofin
https://codereview.chromium.org/2057403003/diff/240001/src/typing-asm.cc File src/typing-asm.cc (right): https://codereview.chromium.org/2057403003/diff/240001/src/typing-asm.cc#newcode92 src/typing-asm.cc:92: FAIL(fun, "only 3 parameter modules supported"); what's a 3-parameter ...
4 years, 5 months ago (2016-06-30 23:23:30 UTC) #16
bradn
PTAL https://codereview.chromium.org/2057403003/diff/240001/src/arm/builtins-arm.cc File src/arm/builtins-arm.cc (right): https://codereview.chromium.org/2057403003/diff/240001/src/arm/builtins-arm.cc#newcode1461 src/arm/builtins-arm.cc:1461: GenerateTailCallToReturnedCode(masm, Runtime::kCompileBaseline); On 2016/06/30 09:39:23, Michael Starzinger wrote: ...
4 years, 5 months ago (2016-07-01 01:06:09 UTC) #17
Mircea Trofin
On 2016/07/01 01:06:09, bradn wrote: > PTAL > > https://codereview.chromium.org/2057403003/diff/240001/src/arm/builtins-arm.cc > File src/arm/builtins-arm.cc (right): > ...
4 years, 5 months ago (2016-07-01 05:17:02 UTC) #18
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/2057403003/280001
4 years, 5 months ago (2016-07-01 05:25:00 UTC) #21
commit-bot: I haz the power
Committed patchset #15 (id:280001)
4 years, 5 months ago (2016-07-01 05:27:12 UTC) #23
commit-bot: I haz the power
Patchset 15 (id:??) landed as https://crrev.com/f20323dce2a796f25eddec83c34b97127d046745 Cr-Commit-Position: refs/heads/master@{#37470}
4 years, 5 months ago (2016-07-01 05:28:55 UTC) #25
titzer
On 2016/07/01 05:28:55, commit-bot: I haz the power wrote: > Patchset 15 (id:??) landed as ...
4 years, 5 months ago (2016-07-01 06:51:00 UTC) #26
titzer
https://codereview.chromium.org/2118733003 https://codereview.chromium.org/2057403003/diff/240001/src/wasm/wasm-js.cc File src/wasm/wasm-js.cc (right): https://codereview.chromium.org/2057403003/diff/240001/src/wasm/wasm-js.cc#newcode395 src/wasm/wasm-js.cc:395: } Why'd these flags go away? That accidentally ...
4 years, 5 months ago (2016-07-01 11:12:15 UTC) #27
Michael Starzinger
https://codereview.chromium.org/2057403003/diff/240001/src/wasm/wasm-js.cc File src/wasm/wasm-js.cc (right): https://codereview.chromium.org/2057403003/diff/240001/src/wasm/wasm-js.cc#newcode395 src/wasm/wasm-js.cc:395: } On 2016/07/01 11:12:15, titzer wrote: > Why'd these ...
4 years, 5 months ago (2016-07-01 11:41:27 UTC) #28
bradn
4 years, 5 months ago (2016-07-01 12:39:53 UTC) #29
Message was sent while issue was closed.
https://codereview.chromium.org/2057403003/diff/240001/src/wasm/wasm-js.cc
File src/wasm/wasm-js.cc (right):

https://codereview.chromium.org/2057403003/diff/240001/src/wasm/wasm-js.cc#ne...
src/wasm/wasm-js.cc:395: }
On 2016/07/01 11:41:27, Michael Starzinger wrote:
> On 2016/07/01 11:12:15, titzer wrote:
> > Why'd these flags go away? That accidentally shipped WASM by default.
Fixing.
> 
> +1. I also explicitly checked for these flags in my review and LGTMed the
> version _with_ the flags in place.

AAAH. Drat.
Sorry about that.
When I moved stuff over to the asmjs dir, I forgot I'd changed how this gets
called, and reverted the whole file.

Thanks for fixing!

Powered by Google App Engine
This is Rietveld 408576698