Commit 33871053 authored by Georg Neis's avatar Georg Neis Committed by Commit Bot

[compiler] Ask compilation info, not isolate, about source positions flag.

MIPS port of https://chromium-review.googlesource.com/c/519165/.

R=ivica.bogosavljevic@imgtec.com, jarin@chromium.org

Bug: v8:6048
Change-Id: I27c8b43726119904441f286a6c97d602fd2d0150
Reviewed-on: https://chromium-review.googlesource.com/530806Reviewed-by: 's avatarIvica Bogosavljevic <ivica.bogosavljevic@imgtec.com>
Commit-Queue: Georg Neis <neis@chromium.org>
Cr-Commit-Position: refs/heads/master@{#45863}
parent 9240b556
...@@ -2687,7 +2687,7 @@ CodeGenerator::CodeGenResult CodeGenerator::AssembleDeoptimizerCall( ...@@ -2687,7 +2687,7 @@ CodeGenerator::CodeGenResult CodeGenerator::AssembleDeoptimizerCall(
Address deopt_entry = Deoptimizer::GetDeoptimizationEntry( Address deopt_entry = Deoptimizer::GetDeoptimizationEntry(
isolate(), deoptimization_id, bailout_type); isolate(), deoptimization_id, bailout_type);
if (deopt_entry == nullptr) return kTooManyDeoptimizationBailouts; if (deopt_entry == nullptr) return kTooManyDeoptimizationBailouts;
if (isolate()->NeedsSourcePositionsForProfiling()) { if (info()->is_source_positions_enabled()) {
__ RecordDeoptReason(deoptimization_reason, pos, deoptimization_id); __ RecordDeoptReason(deoptimization_reason, pos, deoptimization_id);
} }
__ Call(deopt_entry, RelocInfo::RUNTIME_ENTRY); __ Call(deopt_entry, RelocInfo::RUNTIME_ENTRY);
......
...@@ -3021,7 +3021,7 @@ CodeGenerator::CodeGenResult CodeGenerator::AssembleDeoptimizerCall( ...@@ -3021,7 +3021,7 @@ CodeGenerator::CodeGenResult CodeGenerator::AssembleDeoptimizerCall(
Address deopt_entry = Deoptimizer::GetDeoptimizationEntry( Address deopt_entry = Deoptimizer::GetDeoptimizationEntry(
isolate(), deoptimization_id, bailout_type); isolate(), deoptimization_id, bailout_type);
if (deopt_entry == nullptr) return kTooManyDeoptimizationBailouts; if (deopt_entry == nullptr) return kTooManyDeoptimizationBailouts;
if (isolate()->NeedsSourcePositionsForProfiling()) { if (info()->is_source_positions_enabled()) {
__ RecordDeoptReason(deoptimization_reason, pos, deoptimization_id); __ RecordDeoptReason(deoptimization_reason, pos, deoptimization_id);
} }
__ Call(deopt_entry, RelocInfo::RUNTIME_ENTRY); __ Call(deopt_entry, RelocInfo::RUNTIME_ENTRY);
......
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