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

Issue 2780693003: [wasm] response-based compile APIs (Closed)

Created:
3 years, 8 months ago by Mircea Trofin
Modified:
3 years, 8 months ago
Reviewers:
tyoshino (SeeGerritForStatus), hiroshige, blink-reviews-bindings, horo, haraken, yhirano
CC:
chromium-reviews, blink-reviews, bradnelson, domenic, esprehn, ikilpatrick
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

[wasm] response-based compile APIs Spec available at: https://github.com/WebAssembly/design/blob/master/Web.md#webassemblycompile This CL introduces the WebAssembly.compile overload in Blink. Notably, we do not currently check the mime type (chromium:707149). The V8 side is still under development. We currently exercise a skeleton API with a trivial implementation. Once the full implementation is implemented, we will enhance the blink side of the feature - for instance, we can introduce back pressure information. BUG=chromium:697028 Review-Url: https://codereview.chromium.org/2780693003 Cr-Commit-Position: refs/heads/master@{#462917} Committed: https://chromium.googlesource.com/chromium/src/+/380bc71f286663403e7706aedcf66f724c89b584

Patch Set 1 #

Total comments: 1

Patch Set 2 : . #

Total comments: 3

Patch Set 3 : initialization #

Patch Set 4 : fix win #

Patch Set 5 : . #

Patch Set 6 : . #

Total comments: 16

Patch Set 7 : rebase #

Total comments: 17

Patch Set 8 : . #

Total comments: 8

Patch Set 9 : feedback, more comments, tracking bug #

Total comments: 19

Patch Set 10 : feedback #

Total comments: 4

Patch Set 11 : feedback #

Patch Set 12 : Moved wasm extensions to their own module. #

Patch Set 13 : no specific OWNERS for now #

Total comments: 41

Patch Set 14 : . #

Patch Set 15 : . #

Total comments: 10

Patch Set 16 : simplify #

Total comments: 3

Messages

Total messages: 79 (49 generated)
Mircea Trofin
https://codereview.chromium.org/2780693003/diff/1/third_party/WebKit/Source/modules/fetch/Body.h File third_party/WebKit/Source/modules/fetch/Body.h (right): https://codereview.chromium.org/2780693003/diff/1/third_party/WebKit/Source/modules/fetch/Body.h#newcode65 third_party/WebKit/Source/modules/fetch/Body.h:65: public: Probably safe to ignore for now. https://codereview.chromium.org/2780693003/diff/20001/third_party/WebKit/Source/modules/fetch/GlobalFetch.cpp File ...
3 years, 8 months ago (2017-03-28 02:05:57 UTC) #2
Mircea Trofin
ptal - thanks!
3 years, 8 months ago (2017-03-31 07:02:52 UTC) #17
Mircea Trofin
On 2017/03/31 07:02:52, Mircea Trofin wrote: > ptal - thanks! Gentle nudge - thank you!
3 years, 8 months ago (2017-04-03 05:51:51 UTC) #20
Mircea Trofin
On 2017/04/03 05:51:51, Mircea Trofin wrote: > On 2017/03/31 07:02:52, Mircea Trofin wrote: > > ...
3 years, 8 months ago (2017-04-03 19:25:54 UTC) #22
yhirano
Sorry for the late response. https://codereview.chromium.org/2780693003/diff/100001/third_party/WebKit/Source/modules/fetch/Response.cpp File third_party/WebKit/Source/modules/fetch/Response.cpp (right): https://codereview.chromium.org/2780693003/diff/100001/third_party/WebKit/Source/modules/fetch/Response.cpp#newcode124 third_party/WebKit/Source/modules/fetch/Response.cpp:124: class FetchDataLoaderAsWasm final : ...
3 years, 8 months ago (2017-04-04 00:44:35 UTC) #23
haraken
https://codereview.chromium.org/2780693003/diff/120001/third_party/WebKit/Source/modules/fetch/Response.cpp File third_party/WebKit/Source/modules/fetch/Response.cpp (right): https://codereview.chromium.org/2780693003/diff/120001/third_party/WebKit/Source/modules/fetch/Response.cpp#newcode129 third_party/WebKit/Source/modules/fetch/Response.cpp:129: explicit FetchDataLoaderAsWasm(v8::Isolate* isolate, Drop explicit. https://codereview.chromium.org/2780693003/diff/120001/third_party/WebKit/Source/modules/fetch/Response.cpp#newcode148 third_party/WebKit/Source/modules/fetch/Response.cpp:148: BytesConsumer::Result result ...
3 years, 8 months ago (2017-04-04 02:39:38 UTC) #25
haraken
(CC blink-reviews-bindings@ when you heavily touch V8 APIs.)
3 years, 8 months ago (2017-04-04 02:40:17 UTC) #26
Mircea Trofin
https://codereview.chromium.org/2780693003/diff/100001/third_party/WebKit/Source/modules/fetch/Response.cpp File third_party/WebKit/Source/modules/fetch/Response.cpp (right): https://codereview.chromium.org/2780693003/diff/100001/third_party/WebKit/Source/modules/fetch/Response.cpp#newcode124 third_party/WebKit/Source/modules/fetch/Response.cpp:124: class FetchDataLoaderAsWasm final : public FetchDataLoader, On 2017/04/04 00:44:35, ...
3 years, 8 months ago (2017-04-04 04:08:12 UTC) #27
haraken
https://codereview.chromium.org/2780693003/diff/140001/third_party/WebKit/Source/modules/fetch/FetchDataLoader.cpp File third_party/WebKit/Source/modules/fetch/FetchDataLoader.cpp (right): https://codereview.chromium.org/2780693003/diff/140001/third_party/WebKit/Source/modules/fetch/FetchDataLoader.cpp#newcode314 third_party/WebKit/Source/modules/fetch/FetchDataLoader.cpp:314: ScriptState* scriptState) Drop explicit. https://codereview.chromium.org/2780693003/diff/140001/third_party/WebKit/Source/modules/fetch/FetchDataLoader.cpp#newcode384 third_party/WebKit/Source/modules/fetch/FetchDataLoader.cpp:384: std::unique_ptr<uint8_t[]> bufferCopy(new uint8_t[size]); ...
3 years, 8 months ago (2017-04-04 06:05:31 UTC) #28
Mircea Trofin
Thanks for the feedback - I'll address the remainder shortly (tomorrow morning PST). https://codereview.chromium.org/2780693003/diff/140001/third_party/WebKit/Source/modules/fetch/FetchDataLoader.cpp File ...
3 years, 8 months ago (2017-04-04 06:48:07 UTC) #29
Mircea Trofin
On 2017/04/04 06:48:07, Mircea Trofin wrote: > Thanks for the feedback - I'll address the ...
3 years, 8 months ago (2017-04-04 07:01:36 UTC) #30
haraken
https://codereview.chromium.org/2780693003/diff/140001/third_party/WebKit/Source/modules/fetch/Response.cpp File third_party/WebKit/Source/modules/fetch/Response.cpp (right): https://codereview.chromium.org/2780693003/diff/140001/third_party/WebKit/Source/modules/fetch/Response.cpp#newcode230 third_party/WebKit/Source/modules/fetch/Response.cpp:230: isolate->SetWasmCompileCallback(wasmCompileOverload); On 2017/04/04 06:48:07, Mircea Trofin wrote: > On ...
3 years, 8 months ago (2017-04-04 07:05:15 UTC) #31
Mircea Trofin
PTAL - Updated to avoid copying bytes on the blink side (we need to wait ...
3 years, 8 months ago (2017-04-04 18:42:59 UTC) #32
haraken
On 2017/04/04 18:42:59, Mircea Trofin wrote: > PTAL > > - Updated to avoid copying ...
3 years, 8 months ago (2017-04-05 02:13:00 UTC) #33
yhirano
https://codereview.chromium.org/2780693003/diff/160001/third_party/WebKit/Source/modules/fetch/FetchDataLoader.cpp File third_party/WebKit/Source/modules/fetch/FetchDataLoader.cpp (right): https://codereview.chromium.org/2780693003/diff/160001/third_party/WebKit/Source/modules/fetch/FetchDataLoader.cpp#newcode24 third_party/WebKit/Source/modules/fetch/FetchDataLoader.cpp:24: FetchDataLoaderAsBlobHandle(const String& mimeType) : m_mimeType(mimeType) {} Why did you ...
3 years, 8 months ago (2017-04-05 03:48:03 UTC) #34
Mircea Trofin
Addressed, except for comment in Response.cpp - please see my question on that one. Thanks! ...
3 years, 8 months ago (2017-04-05 05:12:22 UTC) #38
yhirano
https://codereview.chromium.org/2780693003/diff/160001/third_party/WebKit/Source/modules/fetch/Response.cpp File third_party/WebKit/Source/modules/fetch/Response.cpp (right): https://codereview.chromium.org/2780693003/diff/160001/third_party/WebKit/Source/modules/fetch/Response.cpp#newcode221 third_party/WebKit/Source/modules/fetch/Response.cpp:221: compileFromResponseCallback(args); On 2017/04/05 05:12:22, Mircea Trofin wrote: > On ...
3 years, 8 months ago (2017-04-05 12:02:50 UTC) #41
Mircea Trofin
https://codereview.chromium.org/2780693003/diff/160001/third_party/WebKit/Source/modules/fetch/Response.cpp File third_party/WebKit/Source/modules/fetch/Response.cpp (right): https://codereview.chromium.org/2780693003/diff/160001/third_party/WebKit/Source/modules/fetch/Response.cpp#newcode221 third_party/WebKit/Source/modules/fetch/Response.cpp:221: compileFromResponseCallback(args); On 2017/04/05 12:02:50, yhirano wrote: > On 2017/04/05 ...
3 years, 8 months ago (2017-04-05 17:17:50 UTC) #44
Mircea Trofin
Moved extensions out of fetch into their own module.
3 years, 8 months ago (2017-04-06 18:44:36 UTC) #49
yhirano
https://codereview.chromium.org/2780693003/diff/160001/third_party/WebKit/Source/modules/fetch/Response.cpp File third_party/WebKit/Source/modules/fetch/Response.cpp (right): https://codereview.chromium.org/2780693003/diff/160001/third_party/WebKit/Source/modules/fetch/Response.cpp#newcode221 third_party/WebKit/Source/modules/fetch/Response.cpp:221: compileFromResponseCallback(args); On 2017/04/05 17:17:49, Mircea Trofin wrote: > On ...
3 years, 8 months ago (2017-04-07 02:39:37 UTC) #57
yhirano
https://codereview.chromium.org/2780693003/diff/160001/third_party/WebKit/Source/modules/fetch/Response.cpp File third_party/WebKit/Source/modules/fetch/Response.cpp (right): https://codereview.chromium.org/2780693003/diff/160001/third_party/WebKit/Source/modules/fetch/Response.cpp#newcode221 third_party/WebKit/Source/modules/fetch/Response.cpp:221: compileFromResponseCallback(args); On 2017/04/07 02:39:36, yhirano wrote: > On 2017/04/05 ...
3 years, 8 months ago (2017-04-07 02:52:29 UTC) #58
haraken
Discussed offline. The overall approach looks good. https://codereview.chromium.org/2780693003/diff/280001/third_party/WebKit/Source/modules/ModulesInitializer.cpp File third_party/WebKit/Source/modules/ModulesInitializer.cpp (right): https://codereview.chromium.org/2780693003/diff/280001/third_party/WebKit/Source/modules/ModulesInitializer.cpp#newcode65 third_party/WebKit/Source/modules/ModulesInitializer.cpp:65: WasmResponseExtensions::initialize(V8PerIsolateData::mainThreadIsolate()); Would ...
3 years, 8 months ago (2017-04-07 04:47:47 UTC) #59
Mircea Trofin
https://codereview.chromium.org/2780693003/diff/160001/third_party/WebKit/Source/modules/fetch/Response.cpp File third_party/WebKit/Source/modules/fetch/Response.cpp (right): https://codereview.chromium.org/2780693003/diff/160001/third_party/WebKit/Source/modules/fetch/Response.cpp#newcode221 third_party/WebKit/Source/modules/fetch/Response.cpp:221: compileFromResponseCallback(args); On 2017/04/07 02:52:29, yhirano wrote: > On 2017/04/07 ...
3 years, 8 months ago (2017-04-07 06:11:17 UTC) #62
yhirano
https://codereview.chromium.org/2780693003/diff/320001/third_party/WebKit/LayoutTests/http/tests/wasm/wasm_response_apis.js File third_party/WebKit/LayoutTests/http/tests/wasm/wasm_response_apis.js (right): https://codereview.chromium.org/2780693003/diff/320001/third_party/WebKit/LayoutTests/http/tests/wasm/wasm_response_apis.js#newcode1 third_party/WebKit/LayoutTests/http/tests/wasm/wasm_response_apis.js:1: // Copyright 2016 The Chromium Authors. All rights reserved. ...
3 years, 8 months ago (2017-04-07 07:39:47 UTC) #63
haraken
LGTM https://codereview.chromium.org/2780693003/diff/280001/third_party/WebKit/Source/modules/wasm/BUILD.gn File third_party/WebKit/Source/modules/wasm/BUILD.gn (right): https://codereview.chromium.org/2780693003/diff/280001/third_party/WebKit/Source/modules/wasm/BUILD.gn#newcode10 third_party/WebKit/Source/modules/wasm/BUILD.gn:10: "WasmResponseExtensions.h", On 2017/04/07 06:11:16, Mircea Trofin wrote: > ...
3 years, 8 months ago (2017-04-07 10:22:40 UTC) #66
Mircea Trofin
https://codereview.chromium.org/2780693003/diff/280001/third_party/WebKit/Source/modules/wasm/BUILD.gn File third_party/WebKit/Source/modules/wasm/BUILD.gn (right): https://codereview.chromium.org/2780693003/diff/280001/third_party/WebKit/Source/modules/wasm/BUILD.gn#newcode10 third_party/WebKit/Source/modules/wasm/BUILD.gn:10: "WasmResponseExtensions.h", On 2017/04/07 10:22:40, haraken wrote: > On 2017/04/07 ...
3 years, 8 months ago (2017-04-07 15:33:09 UTC) #69
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/2780693003/340001
3 years, 8 months ago (2017-04-07 17:43:33 UTC) #74
commit-bot: I haz the power
Committed patchset #16 (id:340001) as https://chromium.googlesource.com/chromium/src/+/380bc71f286663403e7706aedcf66f724c89b584
3 years, 8 months ago (2017-04-07 17:51:25 UTC) #77
yhirano
https://codereview.chromium.org/2780693003/diff/340001/third_party/WebKit/Source/bindings/modules/v8/wasm/WasmResponseExtensions.cpp File third_party/WebKit/Source/bindings/modules/v8/wasm/WasmResponseExtensions.cpp (right): https://codereview.chromium.org/2780693003/diff/340001/third_party/WebKit/Source/bindings/modules/v8/wasm/WasmResponseExtensions.cpp#newcode210 third_party/WebKit/Source/bindings/modules/v8/wasm/WasmResponseExtensions.cpp:210: ScriptPromiseResolver* scriptPromiseResolver = You don't need this. https://codereview.chromium.org/2780693003/diff/340001/third_party/WebKit/Source/bindings/modules/v8/wasm/WasmResponseExtensions.cpp#newcode218 third_party/WebKit/Source/bindings/modules/v8/wasm/WasmResponseExtensions.cpp:218: ...
3 years, 8 months ago (2017-04-10 04:38:54 UTC) #78
Mircea Trofin
3 years, 8 months ago (2017-04-10 04:44:41 UTC) #79
Message was sent while issue was closed.
On 2017/04/10 04:38:54, yhirano wrote:
>
https://codereview.chromium.org/2780693003/diff/340001/third_party/WebKit/Sou...
> File
> third_party/WebKit/Source/bindings/modules/v8/wasm/WasmResponseExtensions.cpp
> (right):
> 
>
https://codereview.chromium.org/2780693003/diff/340001/third_party/WebKit/Sou...
>
third_party/WebKit/Source/bindings/modules/v8/wasm/WasmResponseExtensions.cpp:210:
> ScriptPromiseResolver* scriptPromiseResolver =
> You don't need this.
> 
>
https://codereview.chromium.org/2780693003/diff/340001/third_party/WebKit/Sou...
>
third_party/WebKit/Source/bindings/modules/v8/wasm/WasmResponseExtensions.cpp:218:
> ScriptPromise parameterAsPromise = scriptPromiseResolver->promise();
> ditto
> 
>
https://codereview.chromium.org/2780693003/diff/340001/third_party/WebKit/Sou...
>
third_party/WebKit/Source/bindings/modules/v8/wasm/WasmResponseExtensions.cpp:224:
> scriptPromiseResolver->resolve(ScriptValue::from(scriptState, args[0]));
> ditto

yup - already fixed: https://codereview.chromium.org/2805403002/

Powered by Google App Engine
This is Rietveld 408576698