| Index: src/compiler/x64/code-generator-x64.cc
|
| diff --git a/src/compiler/x64/code-generator-x64.cc b/src/compiler/x64/code-generator-x64.cc
|
| index ab994a32e49b3b4f342d8d40a197f662d44a856b..af1a0cfc56b0e390c429df31a5e375a2d9604874 100644
|
| --- a/src/compiler/x64/code-generator-x64.cc
|
| +++ b/src/compiler/x64/code-generator-x64.cc
|
| @@ -2507,7 +2507,9 @@ CodeGenerator::CodeGenResult CodeGenerator::AssembleDeoptimizerCall(
|
| Address deopt_entry = Deoptimizer::GetDeoptimizationEntry(
|
| isolate(), deoptimization_id, bailout_type);
|
| if (deopt_entry == nullptr) return kTooManyDeoptimizationBailouts;
|
| - __ RecordDeoptReason(deoptimization_reason, pos, deoptimization_id);
|
| + if (isolate()->NeedsSourcePositionsForProfiling()) {
|
| + __ RecordDeoptReason(deoptimization_reason, pos, deoptimization_id);
|
| + }
|
| __ call(deopt_entry, RelocInfo::RUNTIME_ENTRY);
|
| return kSuccess;
|
| }
|
|
|