| 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();
|
|
|