PPC/s390: [compiler] Ask compilation info, not isolate, about source positions flag.
Port510ebfc393
Port8f61fbc671
R=neis@chromium.org, joransiu@ca.ibm.com, jyan@ca.ibm.com, michael_dawson@ca.ibm.com BUG= LOG=N Review-Url: https://codereview.chromium.org/2920523002 Cr-Commit-Position: refs/heads/master@{#45648}
This commit is contained in:
parent
0d06e42b69
commit
33ba31275e
@ -2081,7 +2081,7 @@ void CodeGenerator::AssembleArchTrap(Instruction* instr,
|
|||||||
__ Ret();
|
__ Ret();
|
||||||
} else {
|
} else {
|
||||||
gen_->AssembleSourcePosition(instr_);
|
gen_->AssembleSourcePosition(instr_);
|
||||||
__ Call(handle(isolate()->builtins()->builtin(trap_id), isolate()),
|
__ Call(isolate()->builtins()->builtin_handle(trap_id),
|
||||||
RelocInfo::CODE_TARGET);
|
RelocInfo::CODE_TARGET);
|
||||||
ReferenceMap* reference_map =
|
ReferenceMap* reference_map =
|
||||||
new (gen_->zone()) ReferenceMap(gen_->zone());
|
new (gen_->zone()) ReferenceMap(gen_->zone());
|
||||||
@ -2219,7 +2219,7 @@ CodeGenerator::CodeGenResult CodeGenerator::AssembleDeoptimizerCall(
|
|||||||
// actual final call site and just bl'ing to it here, similar to what we do
|
// actual final call site and just bl'ing to it here, similar to what we do
|
||||||
// in the lithium backend.
|
// in the lithium backend.
|
||||||
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);
|
||||||
|
@ -2497,7 +2497,7 @@ void CodeGenerator::AssembleArchTrap(Instruction* instr,
|
|||||||
__ Ret();
|
__ Ret();
|
||||||
} else {
|
} else {
|
||||||
gen_->AssembleSourcePosition(instr_);
|
gen_->AssembleSourcePosition(instr_);
|
||||||
__ Call(handle(isolate()->builtins()->builtin(trap_id), isolate()),
|
__ Call(isolate()->builtins()->builtin_handle(trap_id),
|
||||||
RelocInfo::CODE_TARGET);
|
RelocInfo::CODE_TARGET);
|
||||||
ReferenceMap* reference_map =
|
ReferenceMap* reference_map =
|
||||||
new (gen_->zone()) ReferenceMap(gen_->zone());
|
new (gen_->zone()) ReferenceMap(gen_->zone());
|
||||||
@ -2607,7 +2607,7 @@ CodeGenerator::CodeGenResult CodeGenerator::AssembleDeoptimizerCall(
|
|||||||
// actual final call site and just bl'ing to it here, similar to what we do
|
// actual final call site and just bl'ing to it here, similar to what we do
|
||||||
// in the lithium backend.
|
// in the lithium backend.
|
||||||
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);
|
||||||
|
Loading…
Reference in New Issue
Block a user