| 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_HEAP_MARK_COMPACT_H_ | 5 #ifndef V8_HEAP_MARK_COMPACT_H_ |
| 6 #define V8_HEAP_MARK_COMPACT_H_ | 6 #define V8_HEAP_MARK_COMPACT_H_ |
| 7 | 7 |
| 8 #include <deque> | 8 #include <deque> |
| 9 | 9 |
| 10 #include "src/base/bits.h" | 10 #include "src/base/bits.h" |
| (...skipping 259 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 270 inline void AddCandidate(JSFunction* function); | 270 inline void AddCandidate(JSFunction* function); |
| 271 | 271 |
| 272 void EvictCandidate(SharedFunctionInfo* shared_info); | 272 void EvictCandidate(SharedFunctionInfo* shared_info); |
| 273 void EvictCandidate(JSFunction* function); | 273 void EvictCandidate(JSFunction* function); |
| 274 | 274 |
| 275 void ProcessCandidates() { | 275 void ProcessCandidates() { |
| 276 ProcessSharedFunctionInfoCandidates(); | 276 ProcessSharedFunctionInfoCandidates(); |
| 277 ProcessJSFunctionCandidates(); | 277 ProcessJSFunctionCandidates(); |
| 278 } | 278 } |
| 279 | 279 |
| 280 void IteratePointersToFromSpace(ObjectVisitor* v); | 280 inline void VisitListHeads(RootVisitor* v); |
| 281 |
| 282 template <typename StaticVisitor> |
| 283 inline void IteratePointersToFromSpace(); |
| 281 | 284 |
| 282 private: | 285 private: |
| 283 void ProcessJSFunctionCandidates(); | 286 void ProcessJSFunctionCandidates(); |
| 284 void ProcessSharedFunctionInfoCandidates(); | 287 void ProcessSharedFunctionInfoCandidates(); |
| 285 | 288 |
| 286 static inline JSFunction** GetNextCandidateSlot(JSFunction* candidate); | 289 static inline JSFunction** GetNextCandidateSlot(JSFunction* candidate); |
| 287 static inline JSFunction* GetNextCandidate(JSFunction* candidate); | 290 static inline JSFunction* GetNextCandidate(JSFunction* candidate); |
| 288 static inline void SetNextCandidate(JSFunction* candidate, | 291 static inline void SetNextCandidate(JSFunction* candidate, |
| 289 JSFunction* next_candidate); | 292 JSFunction* next_candidate); |
| 290 static inline void ClearNextCandidate(JSFunction* candidate, | 293 static inline void ClearNextCandidate(JSFunction* candidate, |
| (...skipping 542 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 833 ~EvacuationScope() { collector_->set_evacuation(false); } | 836 ~EvacuationScope() { collector_->set_evacuation(false); } |
| 834 | 837 |
| 835 private: | 838 private: |
| 836 MarkCompactCollector* collector_; | 839 MarkCompactCollector* collector_; |
| 837 }; | 840 }; |
| 838 | 841 |
| 839 } // namespace internal | 842 } // namespace internal |
| 840 } // namespace v8 | 843 } // namespace v8 |
| 841 | 844 |
| 842 #endif // V8_HEAP_MARK_COMPACT_H_ | 845 #endif // V8_HEAP_MARK_COMPACT_H_ |
| OLD | NEW |