Index: runtime/vm/intermediate_language_dbc.cc |
diff --git a/runtime/vm/intermediate_language_dbc.cc b/runtime/vm/intermediate_language_dbc.cc |
index f11a372c19ad7836e65a67061399b9ff53b1eea2..8c419ec9cc4aa533bc3e5544aa225c1bc97b2c6d 100644 |
--- a/runtime/vm/intermediate_language_dbc.cc |
+++ b/runtime/vm/intermediate_language_dbc.cc |
@@ -294,7 +294,11 @@ EMIT_NATIVE_CODE(CheckStackOverflow, |
0, |
Location::NoLocation(), |
LocationSummary::kCall) { |
- __ CheckStack(); |
+ if (compiler->ForceSlowPathForStackOverflow()) { |
+ __ CheckStackAlwaysExit(); |
+ } else { |
+ __ CheckStack(); |
+ } |
compiler->AddCurrentDescriptor(RawPcDescriptors::kOther, deopt_id(), |
token_pos()); |
compiler->RecordAfterCall(this); |