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

Issue 2008043006: [wasm] separate snapshot-able stages (Closed)

Created:
4 years, 7 months ago by Mircea Trofin
Modified:
4 years, 6 months ago
Reviewers:
titzer, bradnelson, ahaas
CC:
v8-reviews_googlegroups.com
Base URL:
https://chromium.googlesource.com/v8/v8.git@refactoring
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

[wasm] separate snapshot-able stages This CLprepares the terrain for serialization/deserialization. It sets up the instantiation stages such that we have a point wereh we can split off obtaining the code from a snapshot, or snapshot. That point is after we compile and produce the code table, but before we attach the deoptimization info we use for stack tracing. Opportunistically, performed more cleanup to improve maintainability: - clarified sequential vs parallel compilation stages. FinishCompilation was somewhat ambiguous in that it performed a few responsibilities: compiling functions in the sequential case, and then populating the linker and code tables. - removed the "results" set, which is unnecessary. The linker simply shares the function_code vector, and so do the compilation stages. - populate the code table fixed array separately from compilation. This falls out of the decisions above. BUG= Committed: https://crrev.com/3d25ad4df19a75010b120967d9ef3d589979e25c Cr-Commit-Position: refs/heads/master@{#36618}

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Total comments: 9

Patch Set 4 : #

Patch Set 5 : #

Total comments: 6

Patch Set 6 : #

Patch Set 7 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+169 lines, -151 lines) Patch
M src/compiler/wasm-compiler.cc View 1 2 3 4 5 2 chunks +1 line, -11 lines 0 comments Download
M src/wasm/wasm-module.h View 1 2 3 4 5 3 chunks +7 lines, -3 lines 0 comments Download
M src/wasm/wasm-module.cc View 1 2 3 4 5 6 15 chunks +161 lines, -137 lines 0 comments Download

Messages

Total messages: 23 (11 generated)
Mircea Trofin
4 years, 7 months ago (2016-05-26 08:24:16 UTC) #3
titzer
https://codereview.chromium.org/2008043006/diff/40001/src/wasm/wasm-module.cc File src/wasm/wasm-module.cc (left): https://codereview.chromium.org/2008043006/diff/40001/src/wasm/wasm-module.cc#oldcode423 src/wasm/wasm-module.cc:423: // TODO(ahaas): Maybe we could skip this for external ...
4 years, 7 months ago (2016-05-26 15:12:25 UTC) #4
Mircea Trofin
https://codereview.chromium.org/2008043006/diff/40001/src/wasm/wasm-module.cc File src/wasm/wasm-module.cc (left): https://codereview.chromium.org/2008043006/diff/40001/src/wasm/wasm-module.cc#oldcode423 src/wasm/wasm-module.cc:423: // TODO(ahaas): Maybe we could skip this for external ...
4 years, 7 months ago (2016-05-26 15:53:18 UTC) #5
Mircea Trofin
https://codereview.chromium.org/2008043006/diff/40001/src/wasm/wasm-module.cc File src/wasm/wasm-module.cc (right): https://codereview.chromium.org/2008043006/diff/40001/src/wasm/wasm-module.cc#newcode605 src/wasm/wasm-module.cc:605: void WasmModuleInstance::ProcessFunctionsPostLinking() { On 2016/05/26 15:53:18, Mircea Trofin wrote: ...
4 years, 6 months ago (2016-05-27 01:17:33 UTC) #7
titzer
+ahaas https://codereview.chromium.org/2008043006/diff/100001/src/wasm/wasm-module.cc File src/wasm/wasm-module.cc (left): https://codereview.chromium.org/2008043006/diff/100001/src/wasm/wasm-module.cc#oldcode755 src/wasm/wasm-module.cc:755: // 5) The main thread finishes the compilation. ...
4 years, 6 months ago (2016-05-27 16:03:29 UTC) #9
Mircea Trofin
https://codereview.chromium.org/2008043006/diff/100001/src/wasm/wasm-module.cc File src/wasm/wasm-module.cc (left): https://codereview.chromium.org/2008043006/diff/100001/src/wasm/wasm-module.cc#oldcode755 src/wasm/wasm-module.cc:755: // 5) The main thread finishes the compilation. On ...
4 years, 6 months ago (2016-05-27 16:09:09 UTC) #10
ahaas
https://codereview.chromium.org/2008043006/diff/100001/src/wasm/wasm-module.cc File src/wasm/wasm-module.cc (right): https://codereview.chromium.org/2008043006/diff/100001/src/wasm/wasm-module.cc#newcode127 src/wasm/wasm-module.cc:127: DCHECK(index < function_code().size()); Could you add a DCHECK(function_code()[index].is_null()) here ...
4 years, 6 months ago (2016-05-30 14:02:32 UTC) #11
Mircea Trofin
https://codereview.chromium.org/2008043006/diff/100001/src/wasm/wasm-module.cc File src/wasm/wasm-module.cc (right): https://codereview.chromium.org/2008043006/diff/100001/src/wasm/wasm-module.cc#newcode127 src/wasm/wasm-module.cc:127: DCHECK(index < function_code().size()); On 2016/05/30 14:02:32, ahaas wrote: > ...
4 years, 6 months ago (2016-05-30 16:55:49 UTC) #16
ahaas
lgtm
4 years, 6 months ago (2016-05-31 13:27:34 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2008043006/210001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/2008043006/210001
4 years, 6 months ago (2016-05-31 14:53:20 UTC) #19
commit-bot: I haz the power
Committed patchset #7 (id:210001)
4 years, 6 months ago (2016-05-31 14:55:22 UTC) #21
commit-bot: I haz the power
4 years, 6 months ago (2016-05-31 14:56:15 UTC) #23
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/3d25ad4df19a75010b120967d9ef3d589979e25c
Cr-Commit-Position: refs/heads/master@{#36618}

Powered by Google App Engine
This is Rietveld 408576698