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

Side by Side Diff: Source/platform/heap/InlinedGlobalMarkingVisitor.h

Issue 818923005: Add InlinedMarkingVisitor::shouldMarkObject() predicate. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: update predicate Created 5 years, 11 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 | « Source/platform/heap/HeapTest.cpp ('k') | Source/platform/heap/MarkingVisitorImpl.h » ('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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium 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 InlinedGlobalMarkingVisitor_h 5 #ifndef InlinedGlobalMarkingVisitor_h
6 #define InlinedGlobalMarkingVisitor_h 6 #define InlinedGlobalMarkingVisitor_h
7 7
8 #include "platform/heap/MarkingVisitorImpl.h" 8 #include "platform/heap/MarkingVisitorImpl.h"
9 9
10 namespace blink { 10 namespace blink {
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 51
52 inline bool canTraceEagerly() const { return m_visitor->canTraceEagerly(); } 52 inline bool canTraceEagerly() const { return m_visitor->canTraceEagerly(); }
53 inline void incrementTraceDepth() { m_visitor->incrementTraceDepth(); } 53 inline void incrementTraceDepth() { m_visitor->incrementTraceDepth(); }
54 inline void decrementTraceDepth() { m_visitor->decrementTraceDepth(); } 54 inline void decrementTraceDepth() { m_visitor->decrementTraceDepth(); }
55 55
56 Visitor* getUninlined() { return m_visitor; } 56 Visitor* getUninlined() { return m_visitor; }
57 57
58 protected: 58 protected:
59 // Methods to be called from MarkingVisitorImpl. 59 // Methods to be called from MarkingVisitorImpl.
60 60
61 inline bool checkSkipForObjectInTerminatingThreadHeap(const void*) 61 inline bool shouldMarkObject(const void*)
62 { 62 {
63 // As this is global marking visitor, we need to mark all objects. 63 // As this is global marking visitor, we need to mark all objects.
64 return false; 64 return true;
65 } 65 }
66 66
67 #if ENABLE(GC_PROFILE_MARKING) 67 #if ENABLE(GC_PROFILE_MARKING)
68 inline void recordObjectGraphEdge(const void* objectPointer) 68 inline void recordObjectGraphEdge(const void* objectPointer)
69 { 69 {
70 m_visitor->recordObjectGraphEdge(objectPointer); 70 m_visitor->recordObjectGraphEdge(objectPointer);
71 } 71 }
72 #endif 72 #endif
73 73
74 private: 74 private:
(...skipping 30 matching lines...) Expand all
105 105
106 inline static void trace(InlinedGlobalMarkingVisitor visitor, T* self) 106 inline static void trace(InlinedGlobalMarkingVisitor visitor, T* self)
107 { 107 {
108 self->trace(visitor); 108 self->trace(visitor);
109 } 109 }
110 }; 110 };
111 111
112 } // namespace blink 112 } // namespace blink
113 113
114 #endif 114 #endif
OLDNEW
« no previous file with comments | « Source/platform/heap/HeapTest.cpp ('k') | Source/platform/heap/MarkingVisitorImpl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698