[wasm] Log code objects only once

Code objects are scheduled for logging during compilation. In
{CompileToNativeModule}, we then only need to ensure that these objects
are actually logged. {LogWasmCodes} would log them independently, which
leads to duplicate logging.

R=jkummerow@chromium.org

Bug: chromium:1029470
Change-Id: I6a187f4d7adcf7ac057f3a266f66244ef7e7102f
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/1946353
Reviewed-by: Jakob Kummerow <jkummerow@chromium.org>
Commit-Queue: Clemens Backes <clemensb@chromium.org>
Cr-Commit-Position: refs/heads/master@{#65288}
This commit is contained in:
Clemens Backes 2019-12-02 12:27:47 +01:00 committed by Commit Bot
parent 5c1ed319d7
commit db2f0f0aae

View File

@ -1384,8 +1384,8 @@ std::shared_ptr<NativeModule> CompileToNativeModule(
->FinalizeJSToWasmWrappers(isolate, native_module->module(),
export_wrappers_out);
// Log the code within the generated module for profiling.
native_module->LogWasmCodes(isolate);
// Ensure that the code objects are logged before returning.
isolate->wasm_engine()->LogOutstandingCodesForIsolate(isolate);
return native_module;
}