Index: src/hydrogen.cc |
diff --git a/src/hydrogen.cc b/src/hydrogen.cc |
index 9d4fe2e50529e779b45cde69b4c3140274d8a3a5..82c88c7c1d016464957a409fd3743adeff23fb91 100644 |
--- a/src/hydrogen.cc |
+++ b/src/hydrogen.cc |
@@ -4660,9 +4660,11 @@ void HOptimizedGraphBuilder::PushAndAdd(HInstruction* instr) { |
void HOptimizedGraphBuilder::AddSoftDeoptimize() { |
+ isolate()->counters()->soft_deopts_requested()->Increment(); |
if (FLAG_always_opt) return; |
if (current_block()->IsDeoptimizing()) return; |
AddInstruction(new(zone()) HSoftDeoptimize()); |
+ isolate()->counters()->soft_deopts_inserted()->Increment(); |
current_block()->MarkAsDeoptimizing(); |
graph()->set_has_soft_deoptimize(true); |
} |