Commit 68db7aac authored by Thibaud Michaud's avatar Thibaud Michaud Committed by Commit Bot

[wasm] Finalize wrappers sooner for sync compile

We currently wait until baseline compilation is finished to finalize
export wrappers, but this can happen concurrently.
This change triggers export wrapper finalization as soon as the last
export wrapper is compiled, while background threads start compiling
baseline units.

R=clemensb@chromium.org

Bug: v8:9916
Change-Id: I945a8de7a917f6bc79e8a50431d8da530a901956
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2400342
Commit-Queue: Thibaud Michaud <thibaudm@chromium.org>
Reviewed-by: 's avatarAndreas Haas <ahaas@chromium.org>
Reviewed-by: 's avatarClemens Backes <clemensb@chromium.org>
Cr-Commit-Position: refs/heads/master@{#69884}
parent d46723ae
......@@ -94,6 +94,7 @@ class WireBytesStorage {
// order. If tier up is off, both events are delivered right after each other.
enum class CompilationEvent : uint8_t {
kFinishedBaselineCompilation,
kFinishedExportWrappers,
kFinishedTopTierCompilation,
kFailedCompilation,
kFinishedRecompilation
......@@ -119,9 +120,6 @@ class V8_EXPORT_PRIVATE CompilationState {
void InitializeAfterDeserialization();
// Wait until baseline compilation finished, or compilation failed.
void WaitForBaselineFinished();
// Wait until top tier compilation finished, or compilation failed.
void WaitForTopTierFinished();
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment