[liftoff] Further reduce use of Isolate in LiftoffCompiler.

R=clemensh@chromium.org

Change-Id: I2a935d87d6f9688af9bd983fc95ae87476c1f612
Reviewed-on: https://chromium-review.googlesource.com/1124464
Reviewed-by: Clemens Hammacher <clemensh@chromium.org>
Commit-Queue: Michael Starzinger <mstarzinger@chromium.org>
Cr-Commit-Position: refs/heads/master@{#54173}
This commit is contained in:
Michael Starzinger 2018-07-03 14:31:33 +02:00 committed by Commit Bot
parent 02b6178cef
commit 1e2617dcac

View File

@ -1841,9 +1841,7 @@ bool LiftoffCompilationUnit::ExecuteCompilation() {
liftoff_compile_time_scope.reset();
if (!decoder.interface().ok()) {
// Liftoff compilation failed.
wasm_unit_->isolate_->counters()
->liftoff_unsupported_functions()
->Increment();
wasm_unit_->counters_->liftoff_unsupported_functions()->Increment();
return false;
}
if (decoder.failed()) return false; // Validation error
@ -1865,14 +1863,14 @@ bool LiftoffCompilationUnit::ExecuteCompilation() {
sizeof(trap_handler::ProtectedInstructionData);
safepoint_table_offset_ = decoder.interface().GetSafepointTableOffset();
wasm_unit_->isolate_->counters()->liftoff_compiled_functions()->Increment();
wasm_unit_->counters_->liftoff_compiled_functions()->Increment();
return true;
}
wasm::WasmCode* LiftoffCompilationUnit::FinishCompilation(
wasm::ErrorThrower* thrower) {
CodeDesc desc;
asm_.GetCode(wasm_unit_->isolate_, &desc);
asm_.GetCode(nullptr, &desc);
OwnedVector<byte> source_positions =
source_position_table_builder_.ToSourcePositionTableVector();