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

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

Issue 2054673002: Mark shouldMarkObject(), arenaForNormalPage() accessors as const. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
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 MarkingVisitorImpl_h 5 #ifndef MarkingVisitorImpl_h
6 #define MarkingVisitorImpl_h 6 #define MarkingVisitorImpl_h
7 7
8 #include "platform/heap/Heap.h" 8 #include "platform/heap/Heap.h"
9 #include "platform/heap/ThreadState.h" 9 #include "platform/heap/ThreadState.h"
10 #include "platform/heap/Visitor.h" 10 #include "platform/heap/Visitor.h"
11 #include "wtf/Allocator.h" 11 #include "wtf/Allocator.h"
12 #include "wtf/Functional.h"
13 #include "wtf/HashFunctions.h"
14 #include "wtf/Locker.h"
15 #include "wtf/TypeTraits.h"
16 12
17 namespace blink { 13 namespace blink {
18 14
19 template <typename Derived> 15 template <typename Derived>
20 class MarkingVisitorImpl { 16 class MarkingVisitorImpl {
21 USING_FAST_MALLOC(MarkingVisitorImpl); 17 USING_FAST_MALLOC(MarkingVisitorImpl);
22 protected: 18 protected:
23 inline void markHeader(HeapObjectHeader* header, const void* objectPointer, TraceCallback callback) 19 inline void markHeader(HeapObjectHeader* header, const void* objectPointer, TraceCallback callback)
24 { 20 {
25 ASSERT(header); 21 ASSERT(header);
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 private: 122 private:
127 static void markNoTracingCallback(Visitor* visitor, void* object) 123 static void markNoTracingCallback(Visitor* visitor, void* object)
128 { 124 {
129 visitor->markNoTracing(object); 125 visitor->markNoTracing(object);
130 } 126 }
131 }; 127 };
132 128
133 } // namespace blink 129 } // namespace blink
134 130
135 #endif 131 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/platform/heap/MarkingVisitor.h ('k') | third_party/WebKit/Source/platform/heap/TraceTraits.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698