Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1032)

Side by Side Diff: src/heap/mark-compact.h

Issue 2810653002: Add a host parameter to ObjectVisitor methods. (Closed)
Patch Set: rebase Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/heap/heap-inl.h ('k') | src/heap/mark-compact.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « src/heap/heap-inl.h ('k') | src/heap/mark-compact.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698