Index: src/compiler.h |
diff --git a/src/compiler.h b/src/compiler.h |
index 47d459a28206252581c9d4c35a2b0f42228864e8..7d442f9d461f383e9157df0fbaa2e0a9a3e1da04 100644 |
--- a/src/compiler.h |
+++ b/src/compiler.h |
@@ -298,11 +298,13 @@ class CompilationInfo { |
} |
void AbortDueToDependencyChange() { |
- mode_ = DEPENDENCY_CHANGE_ABORT; |
+ ASSERT(!isolate()->optimizing_compiler_thread()->IsOptimizerThread()); |
+ abort_due_to_dependency_ = true; |
} |
bool HasAbortedDueToDependencyChange() { |
- return mode_ == DEPENDENCY_CHANGE_ABORT; |
+ ASSERT(!isolate()->optimizing_compiler_thread()->IsOptimizerThread()); |
+ return abort_due_to_dependency_; |
} |
protected: |
@@ -326,8 +328,7 @@ class CompilationInfo { |
BASE, |
OPTIMIZE, |
NONOPT, |
- STUB, |
- DEPENDENCY_CHANGE_ABORT |
+ STUB |
}; |
void Initialize(Isolate* isolate, Mode mode, Zone* zone); |
@@ -401,6 +402,9 @@ class CompilationInfo { |
Mode mode_; |
BailoutId osr_ast_id_; |
+ // Flag whether compilation needs to be aborted due to dependency change. |
+ bool abort_due_to_dependency_; |
+ |
// The zone from which the compilation pipeline working on this |
// CompilationInfo allocates. |
Zone* zone_; |