Index: src/hydrogen.cc |
diff --git a/src/hydrogen.cc b/src/hydrogen.cc |
index fd5ad728ecb8fef338dda36e378251bfe68dd911..6f57a9f88df89fae9158cb89b00e32309d6b38a5 100644 |
--- a/src/hydrogen.cc |
+++ b/src/hydrogen.cc |
@@ -4020,6 +4020,8 @@ bool HGraphBuilder::TryInline(Call* expr) { |
!Scope::Analyze(&inner_info)) { |
if (Top::has_pending_exception()) { |
SetStackOverflow(); |
+ // Stop trying to optimize and inline this function. |
+ target->shared()->set_optimization_disabled(true); |
} |
return false; |
} |