Index: src/compiler/arm/code-generator-arm.cc |
diff --git a/src/compiler/arm/code-generator-arm.cc b/src/compiler/arm/code-generator-arm.cc |
index 8a8b623b005314efd5994e781c58d8a187f62f9b..9bceb8de60b96146cfb3e036879e7a158f560a81 100644 |
--- a/src/compiler/arm/code-generator-arm.cc |
+++ b/src/compiler/arm/code-generator-arm.cc |
@@ -2281,7 +2281,9 @@ CodeGenerator::CodeGenResult CodeGenerator::AssembleDeoptimizerCall( |
// actual final call site and just bl'ing to it here, similar to what we do |
// in the lithium backend. |
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); |
__ CheckConstPool(false, false); |
return kSuccess; |