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

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

Issue 1179763005: Oilpan: Fix compile of GC_PROFILING build, and remove object graph dumper. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Add EagerSweepHeap. Created 5 years, 6 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/MarkingVisitor.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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 { 56 {
57 // As this is global marking visitor, we need to mark all objects. 57 // As this is global marking visitor, we need to mark all objects.
58 return true; 58 return true;
59 } 59 }
60 60
61 inline Visitor::MarkingMode markingMode() const 61 inline Visitor::MarkingMode markingMode() const
62 { 62 {
63 return m_visitor->markingMode(); 63 return m_visitor->markingMode();
64 } 64 }
65 65
66 #if ENABLE(GC_PROFILING)
67 inline void recordObjectGraphEdge(const void* objectPointer)
68 {
69 m_visitor->recordObjectGraphEdge(objectPointer);
70 }
71 #endif
72
73 private: 66 private:
74 static InlinedGlobalMarkingVisitor fromHelper(Helper* helper) 67 static InlinedGlobalMarkingVisitor fromHelper(Helper* helper)
75 { 68 {
76 return *static_cast<InlinedGlobalMarkingVisitor*>(helper); 69 return *static_cast<InlinedGlobalMarkingVisitor*>(helper);
77 } 70 }
78 71
79 Visitor* m_visitor; 72 Visitor* m_visitor;
80 }; 73 };
81 74
82 inline void GarbageCollectedMixin::trace(InlinedGlobalMarkingVisitor) 75 inline void GarbageCollectedMixin::trace(InlinedGlobalMarkingVisitor)
83 { 76 {
84 } 77 }
85 78
86 } // namespace blink 79 } // namespace blink
87 80
88 #endif 81 #endif
OLDNEW
« no previous file with comments | « Source/platform/heap/HeapTest.cpp ('k') | Source/platform/heap/MarkingVisitor.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698