Index: src/arm64/lithium-codegen-arm64.cc |
diff --git a/src/arm64/lithium-codegen-arm64.cc b/src/arm64/lithium-codegen-arm64.cc |
index b1358ccf61519d7b737e463b151822204b1087b4..ef01c91d47639528b8d4658a56a34f7d71c5d2c6 100644 |
--- a/src/arm64/lithium-codegen-arm64.cc |
+++ b/src/arm64/lithium-codegen-arm64.cc |
@@ -1071,7 +1071,8 @@ void LCodeGen::DeoptimizeBranch( |
entry, deopt_info, bailout_type, !frame_is_built_); |
// We often have several deopts to the same entry, reuse the last |
// jump entry if this is the case. |
- if (jump_table_.is_empty() || |
+ if (FLAG_trace_deopt || isolate()->cpu_profiler()->is_profiling() || |
+ jump_table_.is_empty() || |
!table_entry->IsEquivalentTo(*jump_table_.last())) { |
jump_table_.Add(table_entry, zone()); |
} |