Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(385)

Unified Diff: src/hydrogen.cc

Issue 6469050: Clear exceptions set during attempts to lazily optimize. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge/build-ia32
Patch Set: Created 9 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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;
}
« no previous file with comments | « src/handles.cc ('k') | src/objects.cc » ('j') | test/mjsunit/regress/regress-1145.js » ('J')

Powered by Google App Engine
This is Rietveld 408576698