| 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_MARK_COMPACT_H_ | 5 #ifndef V8_MARK_COMPACT_H_ |
| 6 #define V8_MARK_COMPACT_H_ | 6 #define V8_MARK_COMPACT_H_ |
| 7 | 7 |
| 8 #include "src/compiler-intrinsics.h" | 8 #include "src/compiler-intrinsics.h" |
| 9 #include "src/spaces.h" | 9 #include "src/spaces.h" |
| 10 | 10 |
| (...skipping 552 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 563 static inline bool IsMarked(Object* obj); | 563 static inline bool IsMarked(Object* obj); |
| 564 | 564 |
| 565 inline Heap* heap() const { return heap_; } | 565 inline Heap* heap() const { return heap_; } |
| 566 inline Isolate* isolate() const; | 566 inline Isolate* isolate() const; |
| 567 | 567 |
| 568 CodeFlusher* code_flusher() { return code_flusher_; } | 568 CodeFlusher* code_flusher() { return code_flusher_; } |
| 569 inline bool is_code_flushing_enabled() const { return code_flusher_ != NULL; } | 569 inline bool is_code_flushing_enabled() const { return code_flusher_ != NULL; } |
| 570 void EnableCodeFlushing(bool enable); | 570 void EnableCodeFlushing(bool enable); |
| 571 | 571 |
| 572 enum SweeperType { | 572 enum SweeperType { |
| 573 PARALLEL_CONSERVATIVE, | |
| 574 CONCURRENT_CONSERVATIVE, | 573 CONCURRENT_CONSERVATIVE, |
| 575 PRECISE | 574 PRECISE |
| 576 }; | 575 }; |
| 577 | 576 |
| 578 enum SweepingParallelism { | 577 enum SweepingParallelism { |
| 579 SWEEP_ON_MAIN_THREAD, | 578 SWEEP_ON_MAIN_THREAD, |
| 580 SWEEP_IN_PARALLEL | 579 SWEEP_IN_PARALLEL |
| 581 }; | 580 }; |
| 582 | 581 |
| 583 #ifdef VERIFY_HEAP | 582 #ifdef VERIFY_HEAP |
| (...skipping 401 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 985 private: | 984 private: |
| 986 MarkCompactCollector* collector_; | 985 MarkCompactCollector* collector_; |
| 987 }; | 986 }; |
| 988 | 987 |
| 989 | 988 |
| 990 const char* AllocationSpaceName(AllocationSpace space); | 989 const char* AllocationSpaceName(AllocationSpace space); |
| 991 | 990 |
| 992 } } // namespace v8::internal | 991 } } // namespace v8::internal |
| 993 | 992 |
| 994 #endif // V8_MARK_COMPACT_H_ | 993 #endif // V8_MARK_COMPACT_H_ |
| OLD | NEW |