Index: src/compiler/x87/code-generator-x87.cc |
diff --git a/src/compiler/x87/code-generator-x87.cc b/src/compiler/x87/code-generator-x87.cc |
index b0e1818df3b7d41db88464aa47c60d60790ca6a8..7a429d04e2f48af0813f953dec742e5ee0655df7 100644 |
--- a/src/compiler/x87/code-generator-x87.cc |
+++ b/src/compiler/x87/code-generator-x87.cc |
@@ -2217,6 +2217,9 @@ CodeGenerator::CodeGenResult CodeGenerator::AssembleDeoptimizerCall( |
Address deopt_entry = Deoptimizer::GetDeoptimizationEntry( |
isolate(), deoptimization_id, bailout_type); |
if (deopt_entry == nullptr) return kTooManyDeoptimizationBailouts; |
+ DeoptimizeReason deoptimization_reason = |
+ GetDeoptimizationReason(deoptimization_id); |
+ __ RecordDeoptReason(deoptimization_reason, 0, deoptimization_id); |
__ call(deopt_entry, RelocInfo::RUNTIME_ENTRY); |
return kSuccess; |
} |