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

Issue 1999523002: Delay asm->wasm foreign globals init until later. (Closed)

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

Delay asm->wasm foreign globals init until later. Rather than bake foreign globals into the module at compile time, add a __foreign_init__ function that can be called after instantiation with foreign values gathers using keys in a separately generated FixedArray. This is an incremental step towards being able to enable asm->wasm on for general traffic, behind a flag. BUG= https://bugs.chromium.org/p/v8/issues/detail?id=4203 TEST=asm-wasm R=titzer@chromium.org,aseemgarg@chromium.org LOG=N Committed: https://crrev.com/48c2857a931097595cb175b186e872c226f37ff7 Cr-Commit-Position: refs/heads/master@{#36418}

Patch Set 1 #

Patch Set 2 : fix #

Total comments: 6

Patch Set 3 : fix #

Unified diffs Side-by-side diffs Delta from patch set Stats (+121 lines, -69 lines) Patch
M src/wasm/asm-wasm-builder.h View 1 chunk +2 lines, -3 lines 0 comments Download
M src/wasm/asm-wasm-builder.cc View 1 2 7 chunks +60 lines, -51 lines 0 comments Download
M src/wasm/wasm-js.cc View 1 7 chunks +59 lines, -15 lines 0 comments Download

Messages

Total messages: 10 (3 generated)
bradnelson
4 years, 7 months ago (2016-05-19 23:21:21 UTC) #1
titzer
https://codereview.chromium.org/1999523002/diff/20001/src/wasm/asm-wasm-builder.cc File src/wasm/asm-wasm-builder.cc (right): https://codereview.chromium.org/1999523002/diff/20001/src/wasm/asm-wasm-builder.cc#newcode896 src/wasm/asm-wasm-builder.cc:896: foreign_variables_.push_back(foreign); Could you just do push_back({...})? https://codereview.chromium.org/1999523002/diff/20001/src/wasm/asm-wasm-builder.cc#newcode1730 src/wasm/asm-wasm-builder.cc:1730: struct ...
4 years, 7 months ago (2016-05-20 11:39:59 UTC) #2
bradn
PTAL https://codereview.chromium.org/1999523002/diff/20001/src/wasm/asm-wasm-builder.cc File src/wasm/asm-wasm-builder.cc (right): https://codereview.chromium.org/1999523002/diff/20001/src/wasm/asm-wasm-builder.cc#newcode896 src/wasm/asm-wasm-builder.cc:896: foreign_variables_.push_back(foreign); On 2016/05/20 11:39:59, titzer wrote: > Could ...
4 years, 7 months ago (2016-05-20 14:37:32 UTC) #4
titzer
lgtm
4 years, 7 months ago (2016-05-20 15:25:45 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1999523002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1999523002/40001
4 years, 7 months ago (2016-05-20 15:31:35 UTC) #7
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 7 months ago (2016-05-20 15:33:34 UTC) #8
commit-bot: I haz the power
4 years, 7 months ago (2016-05-20 15:37:32 UTC) #10
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/48c2857a931097595cb175b186e872c226f37ff7
Cr-Commit-Position: refs/heads/master@{#36418}

Powered by Google App Engine
This is Rietveld 408576698