| Index: src/compiler.h
|
| diff --git a/src/compiler.h b/src/compiler.h
|
| index f53feb954a49c53016d0eece13f3425b117b1619..eb0c0cdcf15776b75da08cf462a8042835a1f4b0 100644
|
| --- a/src/compiler.h
|
| +++ b/src/compiler.h
|
| @@ -291,12 +291,14 @@ class CompilationInfo {
|
| return object_wrapper_;
|
| }
|
|
|
| - void AbortDueToDependentMap() {
|
| - mode_ = DEPENDENT_MAP_ABORT;
|
| + void AbortDueToDependencyChange() {
|
| + ASSERT(!isolate()->optimizing_compiler_thread()->IsOptimizerThread());
|
| + abort_due_to_dependency_ = true;
|
| }
|
|
|
| - bool HasAbortedDueToDependentMap() {
|
| - return mode_ == DEPENDENT_MAP_ABORT;
|
| + bool HasAbortedDueToDependencyChange() {
|
| + ASSERT(!isolate()->optimizing_compiler_thread()->IsOptimizerThread());
|
| + return abort_due_to_dependency_;
|
| }
|
|
|
| protected:
|
| @@ -316,8 +318,7 @@ class CompilationInfo {
|
| BASE,
|
| OPTIMIZE,
|
| NONOPT,
|
| - STUB,
|
| - DEPENDENT_MAP_ABORT
|
| + STUB
|
| };
|
|
|
| void Initialize(Isolate* isolate, Mode mode, Zone* zone);
|
| @@ -391,6 +392,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_;
|
|
|