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

Issue 2695813005: [wasm] Split the compilation and instantiation API into sync and async methods. (Closed)

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

Description

[wasm] Split the compilation and instantiation API into sync and async methods. This makes it easier to implement asynchronous compilation by hiding all the implementation details of both synchronous and asynchronous compilation within wasm-module.cc, whereas before the code in wasm-js.cc actually implemented asynchronous compilation in terms of synchronous. BUG= Review-Url: https://codereview.chromium.org/2695813005 Cr-Commit-Position: refs/heads/master@{#43310} Committed: https://chromium.googlesource.com/v8/v8/+/df834f3ff293d2c5e342335a71d17f0af6b0f648

Patch Set 1 #

Patch Set 2 : Make it work #

Patch Set 3 : Remove unused variable #

Patch Set 4 : [wasm] Split the compilation and instantiation API into sync and async methods. #

Total comments: 65

Patch Set 5 : Address review comments #

Patch Set 6 : Remove Handle and unused parameter. #

Patch Set 7 : [wasm] Split the compilation and instantiation API into sync and async methods. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+389 lines, -385 lines) Patch
M src/api.h View 1 1 chunk +2 lines, -1 line 0 comments Download
M src/api.cc View 1 2 3 4 5 6 1 chunk +2 lines, -5 lines 0 comments Download
M src/asmjs/asm-js.cc View 1 2 chunks +5 lines, -5 lines 0 comments Download
M src/value-serializer.cc View 1 2 3 4 5 6 1 chunk +2 lines, -4 lines 0 comments Download
M src/wasm/wasm-js.cc View 1 2 3 4 5 21 chunks +153 lines, -229 lines 0 comments Download
M src/wasm/wasm-module.h View 1 2 3 4 5 5 chunks +31 lines, -20 lines 0 comments Download
M src/wasm/wasm-module.cc View 1 2 3 4 5 8 chunks +179 lines, -96 lines 0 comments Download
M test/cctest/wasm/test-run-wasm-module.cc View 1 3 chunks +11 lines, -19 lines 0 comments Download
M test/common/wasm/wasm-module-runner.cc View 1 1 chunk +4 lines, -6 lines 0 comments Download

Messages

Total messages: 43 (32 generated)
titzer
3 years, 10 months ago (2017-02-16 13:00:09 UTC) #17
Clemens Hammacher
Nice refactoring, I like it! https://codereview.chromium.org/2695813005/diff/60001/src/wasm/wasm-js.cc File src/wasm/wasm-js.cc (right): https://codereview.chromium.org/2695813005/diff/60001/src/wasm/wasm-js.cc#newcode40 src/wasm/wasm-js.cc:40: return !has_brand.IsNothing() && has_brand.ToChecked(); ...
3 years, 10 months ago (2017-02-16 20:36:58 UTC) #18
ahaas
https://codereview.chromium.org/2695813005/diff/60001/src/wasm/wasm-js.cc File src/wasm/wasm-js.cc (right): https://codereview.chromium.org/2695813005/diff/60001/src/wasm/wasm-js.cc#newcode43 src/wasm/wasm-js.cc:43: static bool BrandCheck(ErrorThrower* thrower, i::Handle<i::Object> value, nit: having thrower ...
3 years, 10 months ago (2017-02-17 12:19:04 UTC) #19
ahaas
https://codereview.chromium.org/2695813005/diff/60001/src/wasm/wasm-module.cc File src/wasm/wasm-module.cc (right): https://codereview.chromium.org/2695813005/diff/60001/src/wasm/wasm-module.cc#newcode902 src/wasm/wasm-module.cc:902: Isolate* isolate, WasmModule* m, ErrorThrower* thrower, On 2017/02/16 at ...
3 years, 10 months ago (2017-02-17 13:02:29 UTC) #20
Clemens Hammacher
https://codereview.chromium.org/2695813005/diff/60001/src/wasm/wasm-module.cc File src/wasm/wasm-module.cc (right): https://codereview.chromium.org/2695813005/diff/60001/src/wasm/wasm-module.cc#newcode902 src/wasm/wasm-module.cc:902: Isolate* isolate, WasmModule* m, ErrorThrower* thrower, On 2017/02/17 at ...
3 years, 10 months ago (2017-02-17 13:10:30 UTC) #21
titzer
https://codereview.chromium.org/2695813005/diff/60001/src/wasm/wasm-js.cc File src/wasm/wasm-js.cc (right): https://codereview.chromium.org/2695813005/diff/60001/src/wasm/wasm-js.cc#newcode40 src/wasm/wasm-js.cc:40: return !has_brand.IsNothing() && has_brand.ToChecked(); On 2017/02/16 20:36:57, Clemens Hammacher ...
3 years, 10 months ago (2017-02-17 13:17:54 UTC) #22
Clemens Hammacher
https://codereview.chromium.org/2695813005/diff/60001/src/wasm/wasm-js.cc File src/wasm/wasm-js.cc (right): https://codereview.chromium.org/2695813005/diff/60001/src/wasm/wasm-js.cc#newcode177 src/wasm/wasm-js.cc:177: HandleScope scope(isolate); On 2017/02/17 at 13:17:53, titzer wrote: > ...
3 years, 10 months ago (2017-02-17 13:54:05 UTC) #29
ahaas
lgtm
3 years, 10 months ago (2017-02-20 09:58:34 UTC) #32
Clemens Hammacher
lgtm
3 years, 10 months ago (2017-02-20 10:05:49 UTC) #33
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/2695813005/120001
3 years, 10 months ago (2017-02-20 10:39:01 UTC) #40
commit-bot: I haz the power
3 years, 10 months ago (2017-02-20 10:42:04 UTC) #43
Message was sent while issue was closed.
Committed patchset #7 (id:120001) as
https://chromium.googlesource.com/v8/v8/+/df834f3ff293d2c5e342335a71d17f0af6b...

Powered by Google App Engine
This is Rietveld 408576698