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

Issue 2264913002: [wasm] asm.js - Remove Wasm.instantiateModuleFromAsm, use asm.js directly. (Closed)

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

[wasm] asm.js - Remove Wasm.instantiateModuleFromAsm, use asm.js directly. Make use of %IsAsmWasmCode in place of Wasm.instantiateModuleFromAsm, in order to reduce the surface area of the Wasm object, and to focus on testing asm.js coming in via the parser. Ignore extra CONST_LEGACY assignment introduced by the parser when modules have the form: (function Foo(a, b, c) {..}); This requires both a validator and AsmWasmBuilder change. Move stdlib use collection to import time, to reject modules that import a function, even if not used. BUG= https://bugs.chromium.org/p/v8/issues/detail?id=4203 LOG=N R=jpp@chromium.org,titzer@chromium.org Committed: https://crrev.com/e5f5ac7d2bbab16d0f83edb6d030dfcd1a28e71f Cr-Commit-Position: refs/heads/master@{#38806}

Patch Set 1 #

Patch Set 2 : fix #

Patch Set 3 : fix #

Patch Set 4 : fix #

Patch Set 5 : fix #

Total comments: 4

Patch Set 6 : fix #

Patch Set 7 : fix #

Patch Set 8 : fix #

Patch Set 9 : fix #

Unified diffs Side-by-side diffs Delta from patch set Stats (+496 lines, -546 lines) Patch
M src/asmjs/asm-js.cc View 1 2 3 4 5 6 4 chunks +11 lines, -5 lines 0 comments Download
M src/asmjs/asm-typer.cc View 1 2 3 4 5 1 chunk +15 lines, -1 line 0 comments Download
M src/asmjs/asm-wasm-builder.cc View 1 chunk +6 lines, -0 lines 0 comments Download
M src/runtime/runtime.h View 1 2 3 4 5 1 chunk +2 lines, -1 line 0 comments Download
M src/runtime/runtime-compiler.cc View 2 chunks +6 lines, -2 lines 0 comments Download
M src/runtime/runtime-test.cc View 1 2 3 4 5 6 7 8 1 chunk +23 lines, -8 lines 0 comments Download
M src/wasm/wasm-js.cc View 1 2 3 4 5 3 chunks +0 lines, -93 lines 0 comments Download
M test/mjsunit/asm/asm-validation.js View 1 2 3 4 5 13 chunks +34 lines, -30 lines 0 comments Download
M test/mjsunit/regress/regress-575364.js View 1 2 3 4 5 1 chunk +2 lines, -2 lines 0 comments Download
M test/mjsunit/regress/regress-592352.js View 4 5 2 chunks +2 lines, -2 lines 0 comments Download
M test/mjsunit/regress/regress-599717.js View 1 2 3 4 5 2 chunks +3 lines, -2 lines 0 comments Download
M test/mjsunit/regress/regress-599719.js View 4 5 2 chunks +3 lines, -2 lines 0 comments Download
M test/mjsunit/regress/regress-599825.js View 1 2 3 4 5 2 chunks +3 lines, -4 lines 0 comments Download
D test/mjsunit/regress/regress-605488.js View 1 chunk +0 lines, -12 lines 0 comments Download
M test/mjsunit/regress/regress-608630.js View 1 4 5 2 chunks +4 lines, -2 lines 0 comments Download
M test/mjsunit/regress/regress-613928.js View 1 2 3 4 5 2 chunks +3 lines, -2 lines 0 comments Download
M test/mjsunit/regress/regress-617525.js View 1 2 3 4 5 1 chunk +4 lines, -1 line 0 comments Download
M test/mjsunit/regress/regress-617526.js View 1 4 5 2 chunks +3 lines, -2 lines 0 comments Download
M test/mjsunit/regress/regress-617529.js View 1 2 3 4 5 2 chunks +4 lines, -1 line 0 comments Download
M test/mjsunit/regress/regress-618608.js View 1 2 3 4 5 6 7 2 chunks +14 lines, -1 line 0 comments Download
M test/mjsunit/regress/regress-wasm-crbug-599413.js View 1 2 3 4 5 2 chunks +2 lines, -4 lines 0 comments Download
M test/mjsunit/regress/regress-wasm-crbug-618602.js View 1 2 3 4 5 2 chunks +2 lines, -4 lines 0 comments Download
M test/mjsunit/regress/regress-wasm-crbug-620649.js View 1 1 chunk +0 lines, -10 lines 0 comments Download
M test/mjsunit/wasm/asm-wasm.js View 1 2 3 4 5 26 chunks +190 lines, -220 lines 0 comments Download
M test/mjsunit/wasm/asm-wasm-copy.js View 1 chunk +3 lines, -2 lines 0 comments Download
M test/mjsunit/wasm/asm-wasm-deopt.js View 2 chunks +2 lines, -4 lines 0 comments Download
M test/mjsunit/wasm/asm-wasm-f32.js View 4 5 3 chunks +5 lines, -8 lines 0 comments Download
M test/mjsunit/wasm/asm-wasm-f64.js View 4 5 3 chunks +5 lines, -8 lines 0 comments Download
M test/mjsunit/wasm/asm-wasm-heap.js View 4 5 10 chunks +12 lines, -16 lines 0 comments Download
M test/mjsunit/wasm/asm-wasm-i32.js View 4 5 3 chunks +5 lines, -8 lines 0 comments Download
M test/mjsunit/wasm/asm-wasm-literals.js View 4 5 10 chunks +14 lines, -16 lines 0 comments Download
M test/mjsunit/wasm/asm-wasm-stdlib.js View 1 2 3 4 5 7 chunks +23 lines, -14 lines 0 comments Download
M test/mjsunit/wasm/asm-wasm-switch.js View 1 2 3 4 5 14 chunks +32 lines, -14 lines 0 comments Download
M test/mjsunit/wasm/asm-wasm-u32.js View 4 5 3 chunks +5 lines, -8 lines 0 comments Download
M test/mjsunit/wasm/embenchen/box2d.js View 4 5 3 chunks +6 lines, -4 lines 0 comments Download
M test/mjsunit/wasm/embenchen/copy.js View 4 5 3 chunks +6 lines, -4 lines 0 comments Download
M test/mjsunit/wasm/embenchen/corrections.js View 4 5 3 chunks +6 lines, -4 lines 0 comments Download
M test/mjsunit/wasm/embenchen/fannkuch.js View 4 5 3 chunks +6 lines, -4 lines 0 comments Download
M test/mjsunit/wasm/embenchen/fasta.js View 4 5 3 chunks +6 lines, -4 lines 0 comments Download
M test/mjsunit/wasm/embenchen/lua_binarytrees.js View 4 5 3 chunks +6 lines, -4 lines 0 comments Download
M test/mjsunit/wasm/embenchen/memops.js View 4 5 3 chunks +6 lines, -4 lines 0 comments Download
M test/mjsunit/wasm/embenchen/primes.js View 4 5 3 chunks +6 lines, -4 lines 0 comments Download
M test/mjsunit/wasm/embenchen/zlib.js View 4 5 3 chunks +6 lines, -4 lines 0 comments Download
M test/mjsunit/wasm/wasm-object-api.js View 1 chunk +0 lines, -1 line 0 comments Download

Messages

Total messages: 52 (45 generated)
bradnelson
PTAL
4 years, 4 months ago (2016-08-22 04:19:34 UTC) #26
titzer
lgtm with nit https://codereview.chromium.org/2264913002/diff/80001/test/mjsunit/regress/regress-592352.js File test/mjsunit/regress/regress-592352.js (right): https://codereview.chromium.org/2264913002/diff/80001/test/mjsunit/regress/regress-592352.js#newcode17 test/mjsunit/regress/regress-592352.js:17: %GetOptimizationStatus(__f_76) === 3); Maybe we want ...
4 years, 4 months ago (2016-08-22 08:37:52 UTC) #27
Michael Starzinger
https://codereview.chromium.org/2264913002/diff/80001/test/mjsunit/regress/regress-592352.js File test/mjsunit/regress/regress-592352.js (right): https://codereview.chromium.org/2264913002/diff/80001/test/mjsunit/regress/regress-592352.js#newcode17 test/mjsunit/regress/regress-592352.js:17: %GetOptimizationStatus(__f_76) === 3); On 2016/08/22 08:37:51, titzer wrote: > ...
4 years, 4 months ago (2016-08-22 11:45:59 UTC) #28
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/2264913002/160001
4 years, 4 months ago (2016-08-23 04:04:49 UTC) #47
bradnelson
https://codereview.chromium.org/2264913002/diff/80001/test/mjsunit/regress/regress-592352.js File test/mjsunit/regress/regress-592352.js (right): https://codereview.chromium.org/2264913002/diff/80001/test/mjsunit/regress/regress-592352.js#newcode17 test/mjsunit/regress/regress-592352.js:17: %GetOptimizationStatus(__f_76) === 3); On 2016/08/22 08:37:51, titzer wrote: > ...
4 years, 4 months ago (2016-08-23 04:04:56 UTC) #48
commit-bot: I haz the power
Committed patchset #9 (id:160001)
4 years, 4 months ago (2016-08-23 04:07:00 UTC) #50
commit-bot: I haz the power
4 years, 4 months ago (2016-08-23 04:07:35 UTC) #52
Message was sent while issue was closed.
Patchset 9 (id:??) landed as
https://crrev.com/e5f5ac7d2bbab16d0f83edb6d030dfcd1a28e71f
Cr-Commit-Position: refs/heads/master@{#38806}

Powered by Google App Engine
This is Rietveld 408576698