Commit f991465b authored by Michael Starzinger's avatar Michael Starzinger Committed by Commit Bot

[wasm] Publish new code from the background threads.

R=clemensh@chromium.org
BUG=v8:7921

Change-Id: Ib86cb5f742907b6e54365827facfc765867ca22e
Reviewed-on: https://chromium-review.googlesource.com/1156384Reviewed-by: 's avatarClemens Hammacher <clemensh@chromium.org>
Commit-Queue: Michael Starzinger <mstarzinger@chromium.org>
Cr-Commit-Position: refs/heads/master@{#54985}
parent ce206503
...@@ -5168,6 +5168,7 @@ void TurbofanWasmCompilationUnit::ExecuteCompilation() { ...@@ -5168,6 +5168,7 @@ void TurbofanWasmCompilationUnit::ExecuteCompilation() {
} }
if (ok_) wasm_code_ = info.wasm_code(); if (ok_) wasm_code_ = info.wasm_code();
} }
if (ok_) wasm_unit_->native_module()->PublishCode(wasm_code_);
} }
wasm::WasmCode* TurbofanWasmCompilationUnit::FinishCompilation( wasm::WasmCode* TurbofanWasmCompilationUnit::FinishCompilation(
...@@ -5190,8 +5191,6 @@ wasm::WasmCode* TurbofanWasmCompilationUnit::FinishCompilation( ...@@ -5190,8 +5191,6 @@ wasm::WasmCode* TurbofanWasmCompilationUnit::FinishCompilation(
return nullptr; return nullptr;
} }
wasm_unit_->native_module()->PublishCode(wasm_code_);
return wasm_code_; return wasm_code_;
} }
......
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