| Index: src/compiler.cc
|
| diff --git a/src/compiler.cc b/src/compiler.cc
|
| index f6e5daac854228dec0381fdd64b317330109833b..f1c89b7e2cd1b05b9c4a666a6c703d50f1feff01 100644
|
| --- a/src/compiler.cc
|
| +++ b/src/compiler.cc
|
| @@ -483,7 +483,6 @@ OptimizingCompiler::Status OptimizingCompiler::OptimizeGraph() {
|
| OptimizingCompiler::Status OptimizingCompiler::GenerateAndInstallCode() {
|
| ASSERT(last_status() == SUCCEEDED);
|
| ASSERT(!info()->HasAbortedDueToDependencyChange());
|
| - DisallowCodeDependencyChange no_dependency_change;
|
| { // Scope for timer.
|
| Timer timer(this, &time_taken_to_codegen_);
|
| ASSERT(chunk_ != NULL);
|
| @@ -500,6 +499,11 @@ OptimizingCompiler::Status OptimizingCompiler::GenerateAndInstallCode() {
|
| }
|
| return AbortOptimization();
|
| }
|
| + if (info()->HasAbortedDueToDependencyChange()) {
|
| + info_->set_bailout_reason(kBailedOutDueToDependencyChange);
|
| + info_->AbortOptimization();
|
| + return SetLastStatus(BAILED_OUT);
|
| + }
|
| info()->SetCode(optimized_code);
|
| }
|
| RecordOptimizationStats();
|
|
|