| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
| 2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
| 3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
| 4 // met: | 4 // met: |
| 5 // | 5 // |
| 6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
| 7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
| 8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
| 9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
| 10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
| (...skipping 562 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 573 static void ReportDeleteIfNeeded(HeapObject* obj, Isolate* isolate); | 573 static void ReportDeleteIfNeeded(HeapObject* obj, Isolate* isolate); |
| 574 | 574 |
| 575 // Distinguishable invalid map encodings (for single word and multiple words) | 575 // Distinguishable invalid map encodings (for single word and multiple words) |
| 576 // that indicate free regions. | 576 // that indicate free regions. |
| 577 static const uint32_t kSingleFreeEncoding = 0; | 577 static const uint32_t kSingleFreeEncoding = 0; |
| 578 static const uint32_t kMultiFreeEncoding = 1; | 578 static const uint32_t kMultiFreeEncoding = 1; |
| 579 | 579 |
| 580 static inline bool IsMarked(Object* obj); | 580 static inline bool IsMarked(Object* obj); |
| 581 | 581 |
| 582 inline Heap* heap() const { return heap_; } | 582 inline Heap* heap() const { return heap_; } |
| 583 inline Isolate* isolate() const; |
| 583 | 584 |
| 584 CodeFlusher* code_flusher() { return code_flusher_; } | 585 CodeFlusher* code_flusher() { return code_flusher_; } |
| 585 inline bool is_code_flushing_enabled() const { return code_flusher_ != NULL; } | 586 inline bool is_code_flushing_enabled() const { return code_flusher_ != NULL; } |
| 586 void EnableCodeFlushing(bool enable); | 587 void EnableCodeFlushing(bool enable); |
| 587 | 588 |
| 588 enum SweeperType { | 589 enum SweeperType { |
| 589 CONSERVATIVE, | 590 CONSERVATIVE, |
| 590 LAZY_CONSERVATIVE, | 591 LAZY_CONSERVATIVE, |
| 591 PARALLEL_CONSERVATIVE, | 592 PARALLEL_CONSERVATIVE, |
| 592 CONCURRENT_CONSERVATIVE, | 593 CONCURRENT_CONSERVATIVE, |
| (...skipping 328 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 921 private: | 922 private: |
| 922 MarkCompactCollector* collector_; | 923 MarkCompactCollector* collector_; |
| 923 }; | 924 }; |
| 924 | 925 |
| 925 | 926 |
| 926 const char* AllocationSpaceName(AllocationSpace space); | 927 const char* AllocationSpaceName(AllocationSpace space); |
| 927 | 928 |
| 928 } } // namespace v8::internal | 929 } } // namespace v8::internal |
| 929 | 930 |
| 930 #endif // V8_MARK_COMPACT_H_ | 931 #endif // V8_MARK_COMPACT_H_ |
| OLD | NEW |