Index: runtime/vm/deopt_instructions.cc |
=================================================================== |
--- runtime/vm/deopt_instructions.cc (revision 32457) |
+++ runtime/vm/deopt_instructions.cc (working copy) |
@@ -584,6 +584,9 @@ |
if (!ic_data.IsNull()) { |
ic_data.set_deopt_reason(deopt_context->deopt_reason()); |
} |
+ } else if (deopt_context->deopt_reason() == kDeoptHoistedCheckClass) { |
+ // Prevent excessive deoptimization. |
+ Function::Handle(code.function()).set_allows_hoisting_check_class(false); |
} |
} |