Commit 1e2617dc authored by Michael Starzinger's avatar Michael Starzinger Committed by Commit Bot

[liftoff] Further reduce use of Isolate in LiftoffCompiler.

R=clemensh@chromium.org

Change-Id: I2a935d87d6f9688af9bd983fc95ae87476c1f612
Reviewed-on: https://chromium-review.googlesource.com/1124464Reviewed-by: 's avatarClemens Hammacher <clemensh@chromium.org>
Commit-Queue: Michael Starzinger <mstarzinger@chromium.org>
Cr-Commit-Position: refs/heads/master@{#54173}
parent 02b6178c
...@@ -1841,9 +1841,7 @@ bool LiftoffCompilationUnit::ExecuteCompilation() { ...@@ -1841,9 +1841,7 @@ bool LiftoffCompilationUnit::ExecuteCompilation() {
liftoff_compile_time_scope.reset(); liftoff_compile_time_scope.reset();
if (!decoder.interface().ok()) { if (!decoder.interface().ok()) {
// Liftoff compilation failed. // Liftoff compilation failed.
wasm_unit_->isolate_->counters() wasm_unit_->counters_->liftoff_unsupported_functions()->Increment();
->liftoff_unsupported_functions()
->Increment();
return false; return false;
} }
if (decoder.failed()) return false; // Validation error if (decoder.failed()) return false; // Validation error
...@@ -1865,14 +1863,14 @@ bool LiftoffCompilationUnit::ExecuteCompilation() { ...@@ -1865,14 +1863,14 @@ bool LiftoffCompilationUnit::ExecuteCompilation() {
sizeof(trap_handler::ProtectedInstructionData); sizeof(trap_handler::ProtectedInstructionData);
safepoint_table_offset_ = decoder.interface().GetSafepointTableOffset(); safepoint_table_offset_ = decoder.interface().GetSafepointTableOffset();
wasm_unit_->isolate_->counters()->liftoff_compiled_functions()->Increment(); wasm_unit_->counters_->liftoff_compiled_functions()->Increment();
return true; return true;
} }
wasm::WasmCode* LiftoffCompilationUnit::FinishCompilation( wasm::WasmCode* LiftoffCompilationUnit::FinishCompilation(
wasm::ErrorThrower* thrower) { wasm::ErrorThrower* thrower) {
CodeDesc desc; CodeDesc desc;
asm_.GetCode(wasm_unit_->isolate_, &desc); asm_.GetCode(nullptr, &desc);
OwnedVector<byte> source_positions = OwnedVector<byte> source_positions =
source_position_table_builder_.ToSourcePositionTableVector(); source_position_table_builder_.ToSourcePositionTableVector();
......
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