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

Issue 2699843003: [wasm] Embedder can control what buffers wasm compilation works on. (Closed)

Created:
3 years, 10 months ago by Mircea Trofin
Modified:
3 years, 10 months ago
Reviewers:
titzer, bradnelson
CC:
v8-reviews_googlegroups.com
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

[wasm] Embedder can control what buffers wasm compilation works on. Two controls, one for instantiation and one for compilation. They allow the embedder (e.g. Chrome) check properties of the parameters of those two operations, and decide if they are allowed to continue. For example, Chrome may now decline compilation of certain size buffers, in synchronous cases; same for instantiation (where the buffer size refers to the size of the buffer containing wasm wire bytes) BUG=v8:5981 Review-Url: https://codereview.chromium.org/2699843003 Cr-Original-Commit-Position: refs/heads/master@{#43295} Committed: https://chromium.googlesource.com/v8/v8/+/d9bc0ffb16e633d52d7bcfd547a6125f0e4dfb87 Review-Url: https://codereview.chromium.org/2699843003 Cr-Commit-Position: refs/heads/master@{#43336} Committed: https://chromium.googlesource.com/v8/v8/+/b40d44ecc1ea662ea6d30d703cf1820cea9ee190

Patch Set 1 #

Patch Set 2 : RangeError #

Total comments: 10

Patch Set 3 : Feedback #

Patch Set 4 : Post refactoring; passing isolate to fix flakes #

Patch Set 5 : Post refactoring; passing isolate to fix flakes #

Patch Set 6 : static initializers #

Unified diffs Side-by-side diffs Delta from patch set Stats (+273 lines, -4 lines) Patch
M include/v8.h View 1 2 3 2 chunks +25 lines, -0 lines 0 comments Download
M src/api.cc View 1 2 3 4 1 chunk +10 lines, -0 lines 0 comments Download
M src/isolate.h View 1 1 chunk +2 lines, -0 lines 0 comments Download
M src/runtime/runtime.h View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M src/runtime/runtime-test.cc View 1 2 3 4 5 2 chunks +59 lines, -0 lines 0 comments Download
M src/wasm/wasm-js.cc View 1 2 3 4 6 chunks +57 lines, -4 lines 0 comments Download
A test/mjsunit/wasm/test-wasm-compilation-control.js View 1 2 3 4 1 chunk +118 lines, -0 lines 0 comments Download

Messages

Total messages: 37 (28 generated)
Mircea Trofin
follows https://codereview.chromium.org/2706443002/
3 years, 10 months ago (2017-02-17 01:21:46 UTC) #7
Mircea Trofin
Updated to throw RangeError ...and some rebasing. Sorry for the confusion!
3 years, 10 months ago (2017-02-18 00:17:06 UTC) #11
bradnelson
lgtm https://codereview.chromium.org/2699843003/diff/40001/src/wasm/wasm-js.cc File src/wasm/wasm-js.cc (right): https://codereview.chromium.org/2699843003/diff/40001/src/wasm/wasm-js.cc#newcode90 src/wasm/wasm-js.cc:90: "Wasm compilation disallowed in this context for provided ...
3 years, 10 months ago (2017-02-18 00:28:43 UTC) #14
Mircea Trofin
https://codereview.chromium.org/2699843003/diff/40001/src/wasm/wasm-js.cc File src/wasm/wasm-js.cc (right): https://codereview.chromium.org/2699843003/diff/40001/src/wasm/wasm-js.cc#newcode90 src/wasm/wasm-js.cc:90: "Wasm compilation disallowed in this context for provided argument"); ...
3 years, 10 months ago (2017-02-18 00:41:47 UTC) #15
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/2699843003/60001
3 years, 10 months ago (2017-02-18 00:42:22 UTC) #18
commit-bot: I haz the power
Committed patchset #3 (id:60001) as https://chromium.googlesource.com/v8/v8/+/d9bc0ffb16e633d52d7bcfd547a6125f0e4dfb87
3 years, 10 months ago (2017-02-18 01:08:44 UTC) #21
Michael Hablich
A revert of this CL (patchset #3 id:60001) has been created in https://codereview.chromium.org/2701413002/ by hablich@chromium.org. ...
3 years, 10 months ago (2017-02-20 07:29:27 UTC) #22
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/2699843003/120001
3 years, 10 months ago (2017-02-21 03:40:56 UTC) #34
commit-bot: I haz the power
3 years, 10 months ago (2017-02-21 03:43:21 UTC) #37
Message was sent while issue was closed.
Committed patchset #6 (id:120001) as
https://chromium.googlesource.com/v8/v8/+/b40d44ecc1ea662ea6d30d703cf1820cea9...

Powered by Google App Engine
This is Rietveld 408576698