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

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

Issue 818253005: Oilpan: Query stack frame register instead of manual bookkeeping (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: move preGC 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/StackFrameDepth.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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 } 45 }
46 46
47 using Helper::registerWeakMembers; 47 using Helper::registerWeakMembers;
48 inline void registerWeakMembers(const void* closure, const void* objectPoint er, WeakPointerCallback callback) 48 inline void registerWeakMembers(const void* closure, const void* objectPoint er, WeakPointerCallback callback)
49 { 49 {
50 Impl::registerWeakMembers(closure, objectPointer, callback); 50 Impl::registerWeakMembers(closure, objectPointer, callback);
51 } 51 }
52 52
53 using Impl::ensureMarked; 53 using Impl::ensureMarked;
54 54
55 inline bool canTraceEagerly() const { return m_visitor->canTraceEagerly(); } 55 inline bool canTraceEagerly() { return Visitor::canTraceEagerly(); }
56 inline void incrementTraceDepth() { m_visitor->incrementTraceDepth(); }
57 inline void decrementTraceDepth() { m_visitor->decrementTraceDepth(); }
58 56
59 Visitor* getUninlined() { return m_visitor; } 57 Visitor* getUninlined() { return m_visitor; }
60 58
61 protected: 59 protected:
62 // Methods to be called from MarkingVisitorImpl. 60 // Methods to be called from MarkingVisitorImpl.
63 61
64 inline bool shouldMarkObject(const void*) 62 inline bool shouldMarkObject(const void*)
65 { 63 {
66 // As this is global marking visitor, we need to mark all objects. 64 // As this is global marking visitor, we need to mark all objects.
67 return true; 65 return true;
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 119
122 inline static void trace(InlinedGlobalMarkingVisitor visitor, T* self) 120 inline static void trace(InlinedGlobalMarkingVisitor visitor, T* self)
123 { 121 {
124 self->trace(visitor); 122 self->trace(visitor);
125 } 123 }
126 }; 124 };
127 125
128 } // namespace blink 126 } // namespace blink
129 127
130 #endif 128 #endif
OLDNEW
« no previous file with comments | « Source/platform/heap/HeapTest.cpp ('k') | Source/platform/heap/StackFrameDepth.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698