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

Issue 2702953002: [wasm] Block compile/instantiate of large array buffers (Closed)

Created:
3 years, 10 months ago by Mircea Trofin
Modified:
3 years, 10 months ago
CC:
blink-reviews, blink-reviews-bindings_chromium.org, chromium-reviews
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[wasm] Block compile/instantiate of large array buffers To discourage development patterns leading to bad user experience, we block wasm compilation/instantiation through the sync APIs for modules larger than a certain size. Promise-based APIs still succeed; also, sync APIs succeed in worker contexts. BUG=693945 R=bradnelson@chromium.org,esprehn@chromium.org,jochen@chromium.org Review-Url: https://codereview.chromium.org/2702953002 Cr-Commit-Position: refs/heads/master@{#451811} Committed: https://chromium.googlesource.com/chromium/src/+/50e18a2d44ebf8da875090bf9f0a4645d6741d23

Patch Set 1 #

Patch Set 2 : tests #

Total comments: 14

Patch Set 3 : formatting #

Patch Set 4 : Updated after V8 side landed #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+1143 lines, -1 line) Patch
A third_party/WebKit/LayoutTests/fast/wasm/wasm-constants.js View 1 2 1 chunk +376 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/wasm/wasm-limits-test.html View 1 1 chunk +22 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/wasm/wasm-limits-tests.js View 1 2 1 chunk +67 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/wasm/wasm-limits-tests-common.js View 1 1 chunk +28 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/wasm/wasm-limits-worker.js View 1 1 chunk +21 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/wasm/wasm-module-builder.js View 1 2 1 chunk +581 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/V8Initializer.cpp View 1 2 3 3 chunks +48 lines, -1 line 1 comment Download

Messages

Total messages: 26 (19 generated)
bradnelson
lgtm I take it the red is from V8 being behind? https://codereview.chromium.org/2702953002/diff/20001/third_party/WebKit/LayoutTests/fast/wasm/wasm-constants.js File third_party/WebKit/LayoutTests/fast/wasm/wasm-constants.js (right): ...
3 years, 10 months ago (2017-02-18 22:16:22 UTC) #8
bradn
+jochen for advice on if there's a better way to share v8 code needed to ...
3 years, 10 months ago (2017-02-18 22:24:59 UTC) #12
Mircea Trofin
Incorporated feedback. Bots will be red until autoroller picks up my v8 side change. https://codereview.chromium.org/2702953002/diff/20001/third_party/WebKit/LayoutTests/fast/wasm/wasm-constants.js ...
3 years, 10 months ago (2017-02-19 00:18:33 UTC) #13
jochen (gone - plz use gerrit)
lgtm
3 years, 10 months ago (2017-02-20 09:29:17 UTC) #14
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/2702953002/60001
3 years, 10 months ago (2017-02-21 18:28:45 UTC) #21
commit-bot: I haz the power
Committed patchset #4 (id:60001) as https://chromium.googlesource.com/chromium/src/+/50e18a2d44ebf8da875090bf9f0a4645d6741d23
3 years, 10 months ago (2017-02-21 19:08:35 UTC) #24
Eden Wang
3 years, 10 months ago (2017-02-23 08:50:03 UTC) #26
Message was sent while issue was closed.
https://codereview.chromium.org/2702953002/diff/60001/third_party/WebKit/Sour...
File third_party/WebKit/Source/bindings/core/v8/V8Initializer.cpp (right):

https://codereview.chromium.org/2702953002/diff/60001/third_party/WebKit/Sour...
third_party/WebKit/Source/bindings/core/v8/V8Initializer.cpp:146: const size_t
kWasmWireBytesLimit = 1 << 12;
Hi mtrodfin,
    Why choose this value? 
    In most cases, subsequent logic relies on the completion of compiling for
wasm, Is there any plan to reduce wasm compile time?

Powered by Google App Engine
This is Rietveld 408576698