Revision: 21453
Author:   [email protected]
Date:     Fri May 23 08:13:12 2014 UTC
Log:      If map was deprecated, abort compilation and allow re-compilation.

Also print a message if either map became unstable or map was
deprecated, if --trace-opt is enabled.

[email protected]

Review URL: https://codereview.chromium.org/292323005
http://code.google.com/p/v8/source/detail?r=21453

Modified:
 /branches/bleeding_edge/src/compiler.cc

=======================================
--- /branches/bleeding_edge/src/compiler.cc     Thu May 22 17:13:28 2014 UTC
+++ /branches/bleeding_edge/src/compiler.cc     Fri May 23 08:13:12 2014 UTC
@@ -456,7 +456,19 @@
     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();

--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
--- You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to