| OLD | NEW | 
|---|
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. | 
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be | 
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. | 
| 4 | 4 | 
| 5 #ifndef V8_INCREMENTAL_MARKING_H_ | 5 #ifndef V8_INCREMENTAL_MARKING_H_ | 
| 6 #define V8_INCREMENTAL_MARKING_H_ | 6 #define V8_INCREMENTAL_MARKING_H_ | 
| 7 | 7 | 
| 8 | 8 | 
| 9 #include "src/execution.h" | 9 #include "src/execution.h" | 
| 10 #include "src/mark-compact.h" | 10 #include "src/mark-compact.h" | 
| (...skipping 17 matching lines...) Expand all  Loading... | 
| 28     NO_GC_VIA_STACK_GUARD | 28     NO_GC_VIA_STACK_GUARD | 
| 29   }; | 29   }; | 
| 30 | 30 | 
| 31   explicit IncrementalMarking(Heap* heap); | 31   explicit IncrementalMarking(Heap* heap); | 
| 32 | 32 | 
| 33   static void Initialize(); | 33   static void Initialize(); | 
| 34 | 34 | 
| 35   void TearDown(); | 35   void TearDown(); | 
| 36 | 36 | 
| 37   State state() { | 37   State state() { | 
| 38     ASSERT(state_ == STOPPED || FLAG_incremental_marking); | 38     DCHECK(state_ == STOPPED || FLAG_incremental_marking); | 
| 39     return state_; | 39     return state_; | 
| 40   } | 40   } | 
| 41 | 41 | 
| 42   bool should_hurry() { return should_hurry_; } | 42   bool should_hurry() { return should_hurry_; } | 
| 43   void set_should_hurry(bool val) { should_hurry_ = val; } | 43   void set_should_hurry(bool val) { should_hurry_ = val; } | 
| 44 | 44 | 
| 45   inline bool IsStopped() { return state() == STOPPED; } | 45   inline bool IsStopped() { return state() == STOPPED; } | 
| 46 | 46 | 
| 47   INLINE(bool IsMarking()) { return state() >= MARKING; } | 47   INLINE(bool IsMarking()) { return state() >= MARKING; } | 
| 48 | 48 | 
| (...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 228   int no_marking_scope_depth_; | 228   int no_marking_scope_depth_; | 
| 229 | 229 | 
| 230   int unscanned_bytes_of_large_object_; | 230   int unscanned_bytes_of_large_object_; | 
| 231 | 231 | 
| 232   DISALLOW_IMPLICIT_CONSTRUCTORS(IncrementalMarking); | 232   DISALLOW_IMPLICIT_CONSTRUCTORS(IncrementalMarking); | 
| 233 }; | 233 }; | 
| 234 | 234 | 
| 235 } }  // namespace v8::internal | 235 } }  // namespace v8::internal | 
| 236 | 236 | 
| 237 #endif  // V8_INCREMENTAL_MARKING_H_ | 237 #endif  // V8_INCREMENTAL_MARKING_H_ | 
| OLD | NEW | 
|---|