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

Unified Diff: src/compiler.cc

Issue 932603002: [turbofan] Clear pending exception from unsuccessful compilation. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 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
« no previous file with comments | « no previous file | test/mjsunit/regress/regress-458987.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/compiler.cc
diff --git a/src/compiler.cc b/src/compiler.cc
index 26daec77a353e6943b97d7c069405bd72298eb5b..328b2780fc352853c97986686ab024524b4d29ea 100644
--- a/src/compiler.cc
+++ b/src/compiler.cc
@@ -867,6 +867,9 @@ MaybeHandle<Code> Compiler::GetLazyCode(Handle<JSFunction> function) {
DCHECK(function->shared()->is_compiled());
return info.code();
}
+ // We have failed compilation. If there was an exception clear it so that
+ // we can compile unoptimized code.
+ if (isolate->has_pending_exception()) isolate->clear_pending_exception();
}
if (function->shared()->is_compiled()) {
« no previous file with comments | « no previous file | test/mjsunit/regress/regress-458987.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698