Commit b3ff8eb9 authored by Kim-Anh Tran's avatar Kim-Anh Tran Committed by Commit Bot

[wasm] Log top-tier code

Top-tier code needs to be explicitly logged after
compilation.

Change-Id: Ic3c54ff4b7bddd44516a611398b7373fe0acc8d4
Reviewed-on: https://chromium-review.googlesource.com/1030391Reviewed-by: 's avatarClemens Hammacher <clemensh@chromium.org>
Commit-Queue: Kim-Anh Tran <kimanh@google.com>
Cr-Commit-Position: refs/heads/master@{#52821}
parent b6622682
......@@ -1526,6 +1526,8 @@ class FinishCompileTask : public CancelableTask {
code_specialization.RelocateDirectCalls(native_module);
code_specialization.ApplyToWasmCode(result);
if (wasm::WasmCode::ShouldBeLogged(isolate)) result->LogCode(isolate);
// Update the counters to include the top-tier code.
RecordStats(result,
compilation_state_->isolate()->async_counters().get());
......
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