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

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

Issue 2795923002: Rewrite references to "wtf/" to "platform/wtf/" in platform/heap. (Closed)
Patch Set: Same as PS1; PS1 lacks some files for some reason. Created 3 years, 8 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 CallbackStack_h 5 #ifndef CallbackStack_h
6 #define CallbackStack_h 6 #define CallbackStack_h
7 7
8 #include "platform/heap/BlinkGC.h" 8 #include "platform/heap/BlinkGC.h"
9 #include "wtf/Allocator.h" 9 #include "platform/wtf/Allocator.h"
10 #include "wtf/Assertions.h" 10 #include "platform/wtf/Assertions.h"
11 #include "wtf/Threading.h" 11 #include "platform/wtf/Threading.h"
12 #include "wtf/ThreadingPrimitives.h" 12 #include "platform/wtf/ThreadingPrimitives.h"
13 13
14 namespace blink { 14 namespace blink {
15 15
16 // The CallbackStack contains all the visitor callbacks used to trace and mark 16 // The CallbackStack contains all the visitor callbacks used to trace and mark
17 // objects. A specific CallbackStack instance contains at most bufferSize 17 // objects. A specific CallbackStack instance contains at most bufferSize
18 // elements. 18 // elements.
19 // If more space is needed a new CallbackStack instance is created and chained 19 // If more space is needed a new CallbackStack instance is created and chained
20 // together with the former instance. I.e. a logical CallbackStack can be made 20 // together with the former instance. I.e. a logical CallbackStack can be made
21 // of multiple chained CallbackStack object instances. 21 // of multiple chained CallbackStack object instances.
22 class CallbackStack final { 22 class CallbackStack final {
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
150 Item* item = m_first->pop(); 150 Item* item = m_first->pop();
151 if (LIKELY(!!item)) 151 if (LIKELY(!!item))
152 return item; 152 return item;
153 153
154 return popSlow(); 154 return popSlow();
155 } 155 }
156 156
157 } // namespace blink 157 } // namespace blink
158 158
159 #endif // CallbackStack_h 159 #endif // CallbackStack_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698