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

Side by Side Diff: third_party/WebKit/Source/platform/heap/Visitor.cpp

Issue 2700123003: DO NOT COMMIT: Results of running old (current) clang-format on Blink (Closed)
Patch Set: Created 3 years, 10 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 #include "platform/heap/Visitor.h" 5 #include "platform/heap/Visitor.h"
6 6
7 #include <memory>
7 #include "platform/heap/BlinkGC.h" 8 #include "platform/heap/BlinkGC.h"
8 #include "platform/heap/ThreadState.h" 9 #include "platform/heap/ThreadState.h"
9 #include "platform/heap/VisitorImpl.h" 10 #include "platform/heap/VisitorImpl.h"
10 #include "wtf/PtrUtil.h" 11 #include "wtf/PtrUtil.h"
11 #include <memory>
12 12
13 namespace blink { 13 namespace blink {
14 14
15 std::unique_ptr<Visitor> Visitor::create(ThreadState* state, MarkingMode mode) { 15 std::unique_ptr<Visitor> Visitor::create(ThreadState* state, MarkingMode mode) {
16 return WTF::makeUnique<Visitor>(state, mode); 16 return WTF::makeUnique<Visitor>(state, mode);
17 } 17 }
18 18
19 Visitor::Visitor(ThreadState* state, MarkingMode markingMode) 19 Visitor::Visitor(ThreadState* state, MarkingMode markingMode)
20 : m_state(state), m_markingMode(markingMode) { 20 : m_state(state), m_markingMode(markingMode) {
21 // See ThreadState::runScheduledGC() why we need to already be in a 21 // See ThreadState::runScheduledGC() why we need to already be in a
22 // GCForbiddenScope before any safe point is entered. 22 // GCForbiddenScope before any safe point is entered.
23 DCHECK(state->isGCForbidden()); 23 DCHECK(state->isGCForbidden());
24 #if DCHECK_IS_ON() 24 #if DCHECK_IS_ON()
25 DCHECK(state->checkThread()); 25 DCHECK(state->checkThread());
26 #endif 26 #endif
27 } 27 }
28 28
29 Visitor::~Visitor() {} 29 Visitor::~Visitor() {}
30 30
31 void Visitor::markNoTracingCallback(Visitor* visitor, void* object) { 31 void Visitor::markNoTracingCallback(Visitor* visitor, void* object) {
32 visitor->markNoTracing(object); 32 visitor->markNoTracing(object);
33 } 33 }
34 34
35 } // namespace blink 35 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/platform/heap/Visitor.h ('k') | third_party/WebKit/Source/platform/image-decoders/ImageDecoder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698