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

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

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 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/SparseHeapBitmap.h" 5 #include "platform/heap/SparseHeapBitmap.h"
6 6
7 #include "platform/heap/Heap.h" 7 #include "platform/heap/Heap.h"
8 #include "wtf/PtrUtil.h" 8 #include "platform/wtf/PtrUtil.h"
9 9
10 namespace blink { 10 namespace blink {
11 11
12 // Return the subtree/bitmap that covers the 12 // Return the subtree/bitmap that covers the
13 // [address, address + size) range. Null if there is none. 13 // [address, address + size) range. Null if there is none.
14 SparseHeapBitmap* SparseHeapBitmap::hasRange(Address address, size_t size) { 14 SparseHeapBitmap* SparseHeapBitmap::hasRange(Address address, size_t size) {
15 DCHECK(!(reinterpret_cast<uintptr_t>(address) & s_pointerAlignmentMask)); 15 DCHECK(!(reinterpret_cast<uintptr_t>(address) & s_pointerAlignmentMask));
16 SparseHeapBitmap* bitmap = this; 16 SparseHeapBitmap* bitmap = this;
17 while (bitmap) { 17 while (bitmap) {
18 // Interval starts after, |m_right| handles. 18 // Interval starts after, |m_right| handles.
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 size_t SparseHeapBitmap::intervalCount() const { 103 size_t SparseHeapBitmap::intervalCount() const {
104 size_t count = 1; 104 size_t count = 1;
105 if (m_left) 105 if (m_left)
106 count += m_left->intervalCount(); 106 count += m_left->intervalCount();
107 if (m_right) 107 if (m_right)
108 count += m_right->intervalCount(); 108 count += m_right->intervalCount();
109 return count; 109 return count;
110 } 110 }
111 111
112 } // namespace blink 112 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/platform/heap/SparseHeapBitmap.h ('k') | third_party/WebKit/Source/platform/heap/StackFrameDepth.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698