From 932246f1b69b0624ee409daa1318f1bc0f3ac7a8 Mon Sep 17 00:00:00 2001 From: Michael Starzinger Date: Tue, 31 Jul 2018 16:10:07 +0200 Subject: [PATCH] Reland "[wasm] Publish new code from the background threads." This is a reland of f991465b4216887abbfc037657c6b779729366ef Original change's description: > [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/1156384 > Reviewed-by: Clemens Hammacher > Commit-Queue: Michael Starzinger > Cr-Commit-Position: refs/heads/master@{#54985} Bug: v8:7921 Change-Id: Ic99f59410b6f26593f4bd4b47209e9cce56481fc Reviewed-on: https://chromium-review.googlesource.com/1179861 Reviewed-by: Ben Titzer Commit-Queue: Michael Starzinger Cr-Commit-Position: refs/heads/master@{#55202} --- src/compiler/wasm-compiler.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/compiler/wasm-compiler.cc b/src/compiler/wasm-compiler.cc index be65a4cfcf..e4ab9135e0 100644 --- a/src/compiler/wasm-compiler.cc +++ b/src/compiler/wasm-compiler.cc @@ -5181,6 +5181,7 @@ void TurbofanWasmCompilationUnit::ExecuteCompilation() { } if (ok_) wasm_code_ = info.wasm_code(); } + if (ok_) wasm_unit_->native_module()->PublishCode(wasm_code_); } wasm::WasmCode* TurbofanWasmCompilationUnit::FinishCompilation( @@ -5203,8 +5204,6 @@ wasm::WasmCode* TurbofanWasmCompilationUnit::FinishCompilation( return nullptr; } - - wasm_unit_->native_module()->PublishCode(wasm_code_); return wasm_code_; }