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

Issue 2102193003: Revert "Revert "[wasm] Complete separation of compilation and instantiation"" (Closed)

Created:
4 years, 5 months ago by Mircea Trofin
Modified:
4 years, 5 months ago
Reviewers:
gdeepti, bradnelson
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

Revert "Revert "[wasm] Complete separation of compilation and instantiation"" This reverts commit 1eb1dfabe4bf8ff934047335dfebafb8f0dfc550. The original compilation separation change avoided associating a heap for the wasm instance if memory was not provided, nor needed. The grow memory CL assumed the old behavior, where a memory buffer was always present, but may have had a zero size. The 2CLS landed shortly after one another. We decided to treat the grow memory as the race condition winner, so this CL here re-lands compilation separation, plus adjusts grow memory to deal with the undefined mem buffer. BUG= Committed: https://crrev.com/9d6014ad55bf37afb614e210ebfb329b00df7bb2 Cr-Commit-Position: refs/heads/master@{#37352}

Patch Set 1 #

Patch Set 2 : Deal with undefined mem when growing. #

Patch Set 3 : Some DCHECKs #

Unified diffs Side-by-side diffs Delta from patch set Stats (+645 lines, -342 lines) Patch
M src/compiler/wasm-compiler.h View 1 chunk +8 lines, -6 lines 0 comments Download
M src/compiler/wasm-compiler.cc View 6 chunks +56 lines, -37 lines 0 comments Download
M src/objects.h View 2 chunks +7 lines, -0 lines 0 comments Download
M src/objects-inl.h View 2 chunks +16 lines, -1 line 0 comments Download
M src/runtime/runtime-wasm.cc View 1 2 2 chunks +9 lines, -4 lines 0 comments Download
M src/signature.h View 3 chunks +4 lines, -2 lines 0 comments Download
M src/wasm/wasm-js.cc View 1 chunk +8 lines, -3 lines 0 comments Download
M src/wasm/wasm-module.h View 1 chunk +5 lines, -3 lines 0 comments Download
M src/wasm/wasm-module.cc View 15 chunks +525 lines, -280 lines 0 comments Download
M test/cctest/wasm/wasm-run-utils.h View 2 chunks +7 lines, -6 lines 0 comments Download

Messages

Total messages: 13 (7 generated)
Mircea Trofin
4 years, 5 months ago (2016-06-28 22:56:37 UTC) #5
gdeepti
lgtm for grow_mem changes
4 years, 5 months ago (2016-06-28 23:35:05 UTC) #6
bradnelson
lgtm
4 years, 5 months ago (2016-06-28 23:45:22 UTC) #8
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/2102193003/40001
4 years, 5 months ago (2016-06-28 23:45:29 UTC) #9
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 5 months ago (2016-06-28 23:47:41 UTC) #11
commit-bot: I haz the power
4 years, 5 months ago (2016-06-28 23:50:26 UTC) #13
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/9d6014ad55bf37afb614e210ebfb329b00df7bb2
Cr-Commit-Position: refs/heads/master@{#37352}

Powered by Google App Engine
This is Rietveld 408576698