Reviewers: Hannes Payer,
Message:
PTAL
Description:
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.
Please review this at https://codereview.chromium.org/292323005/
SVN Base: https://v8.googlecode.com/svn/branches/bleeding_edge
Affected files (+12, -0 lines):
M src/compiler.cc
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();
--
--
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.