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

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

Issue 2625363002: Simplify visitor marking mode tracking. (Closed)
Patch Set: HeapTest compilation fix Created 3 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
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 MarkingVisitor_h 5 #ifndef MarkingVisitor_h
6 #define MarkingVisitor_h 6 #define MarkingVisitor_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 MarkingVisitor final : public Visitor, 12 class MarkingVisitor final : public Visitor,
13 public MarkingVisitorImpl<MarkingVisitor> { 13 public MarkingVisitorImpl<MarkingVisitor> {
14 public: 14 public:
15 using Impl = MarkingVisitorImpl<MarkingVisitor>; 15 using Impl = MarkingVisitorImpl<MarkingVisitor>;
16 16
17 MarkingVisitor(ThreadState* state, Visitor::MarkingMode mode) 17 MarkingVisitor(ThreadState* state, VisitorMarkingMode mode)
18 : Visitor(state, mode) {} 18 : Visitor(state, mode) {}
19 19
20 void markHeader(HeapObjectHeader* header, TraceCallback callback) override { 20 void markHeader(HeapObjectHeader* header, TraceCallback callback) override {
21 Impl::markHeader(header, header->payload(), callback); 21 Impl::markHeader(header, header->payload(), callback);
22 } 22 }
23 23
24 void mark(const void* objectPointer, TraceCallback callback) override { 24 void mark(const void* objectPointer, TraceCallback callback) override {
25 Impl::mark(objectPointer, callback); 25 Impl::mark(objectPointer, callback);
26 } 26 }
27 27
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 63
64 void registerWeakCellWithCallback(void** cell, 64 void registerWeakCellWithCallback(void** cell,
65 WeakCallback callback) override { 65 WeakCallback callback) override {
66 Impl::registerWeakCellWithCallback(cell, callback); 66 Impl::registerWeakCellWithCallback(cell, callback);
67 } 67 }
68 }; 68 };
69 69
70 } // namespace blink 70 } // namespace blink
71 71
72 #endif 72 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698