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

Unified Diff: src/compiler.cc

Issue 292323005: If map was deprecated, abort compilation and allow re-compilation. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 7 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 | no next file » | 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 4e55d223806f63242cc877f33607dbedfea777a3..0349a35ca85f6afb23ee7eb5b3f3120b8600cc66 100644
--- a/src/compiler.cc
+++ b/src/compiler.cc
@@ -456,7 +456,19 @@ OptimizedCompileJob::Status OptimizedCompileJob::GenerateCode() {
if (optimized_code.is_null()) {
if (info()->bailout_reason() == kNoReason) {
info_->set_bailout_reason(kCodeGenerationFailed);
+ } else if (info()->bailout_reason() == kMapBecameDeprecated) {
+ if (FLAG_trace_opt) {
+ PrintF("[aborted optimizing ");
+ function->ShortPrint();
+ PrintF(" because a map became deprecated]\n");
+ }
+ return AbortOptimization();
} else if (info()->bailout_reason() == kMapBecameUnstable) {
+ if (FLAG_trace_opt) {
+ PrintF("[aborted optimizing ");
+ function->ShortPrint();
+ PrintF(" because a map became unstable]\n");
+ }
return AbortOptimization();
}
return AbortAndDisableOptimization();
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698