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

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

Issue 1974693002: Make Visitor use heap for the current thread (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: oldvisitorx Created 4 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 | « no previous file | third_party/WebKit/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 {
11 11
12 class InlinedGlobalMarkingVisitor final : public VisitorHelper<InlinedGlobalMark ingVisitor>, public MarkingVisitorImpl<InlinedGlobalMarkingVisitor> { 12 class InlinedGlobalMarkingVisitor final : public VisitorHelper<InlinedGlobalMark ingVisitor>, public MarkingVisitorImpl<InlinedGlobalMarkingVisitor> {
13 public: 13 public:
14 friend class VisitorHelper<InlinedGlobalMarkingVisitor>; 14 friend class VisitorHelper<InlinedGlobalMarkingVisitor>;
15 using Helper = VisitorHelper<InlinedGlobalMarkingVisitor>; 15 using Helper = VisitorHelper<InlinedGlobalMarkingVisitor>;
16 friend class MarkingVisitorImpl<InlinedGlobalMarkingVisitor>; 16 friend class MarkingVisitorImpl<InlinedGlobalMarkingVisitor>;
17 using Impl = MarkingVisitorImpl<InlinedGlobalMarkingVisitor>; 17 using Impl = MarkingVisitorImpl<InlinedGlobalMarkingVisitor>;
18 18
19 InlinedGlobalMarkingVisitor() { } 19 InlinedGlobalMarkingVisitor(ThreadState* state) : VisitorHelper(state) { }
haraken 2016/05/18 13:03:01 Add explicit.
keishi 2016/05/19 02:35:31 Done.
20 20
21 // Hack to unify interface to visitor->trace(). 21 // Hack to unify interface to visitor->trace().
22 // Without this hack, we need to use visitor.trace() for 22 // Without this hack, we need to use visitor.trace() for
23 // trace(InlinedGlobalMarkingVisitor) and visitor->trace() for trace(Visitor *). 23 // trace(InlinedGlobalMarkingVisitor) and visitor->trace() for trace(Visitor *).
24 InlinedGlobalMarkingVisitor* operator->() { return this; } 24 InlinedGlobalMarkingVisitor* operator->() { return this; }
25 25
26 using Impl::mark; 26 using Impl::mark;
27 using Impl::ensureMarked; 27 using Impl::ensureMarked;
28 using Impl::registerDelayedMarkNoTracing; 28 using Impl::registerDelayedMarkNoTracing;
29 using Impl::registerWeakTable; 29 using Impl::registerWeakTable;
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 } 65 }
66 }; 66 };
67 67
68 inline void GarbageCollectedMixin::trace(InlinedGlobalMarkingVisitor) 68 inline void GarbageCollectedMixin::trace(InlinedGlobalMarkingVisitor)
69 { 69 {
70 } 70 }
71 71
72 } // namespace blink 72 } // namespace blink
73 73
74 #endif 74 #endif
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/platform/heap/MarkingVisitorImpl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698