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

Side by Side Diff: third_party/WebKit/Source/platform/heap/HeapPage.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 /* 1 /*
2 * Copyright (C) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 20 matching lines...) Expand all
31 #ifndef HeapPage_h 31 #ifndef HeapPage_h
32 #define HeapPage_h 32 #define HeapPage_h
33 33
34 #include <stdint.h> 34 #include <stdint.h>
35 #include "base/trace_event/memory_allocator_dump.h" 35 #include "base/trace_event/memory_allocator_dump.h"
36 #include "platform/PlatformExport.h" 36 #include "platform/PlatformExport.h"
37 #include "platform/heap/BlinkGC.h" 37 #include "platform/heap/BlinkGC.h"
38 #include "platform/heap/GCInfo.h" 38 #include "platform/heap/GCInfo.h"
39 #include "platform/heap/ThreadState.h" 39 #include "platform/heap/ThreadState.h"
40 #include "platform/heap/Visitor.h" 40 #include "platform/heap/Visitor.h"
41 #include "wtf/AddressSanitizer.h" 41 #include "platform/wtf/AddressSanitizer.h"
42 #include "wtf/Allocator.h" 42 #include "platform/wtf/Allocator.h"
43 #include "wtf/Assertions.h" 43 #include "platform/wtf/Assertions.h"
44 #include "wtf/ContainerAnnotations.h" 44 #include "platform/wtf/ContainerAnnotations.h"
45 #include "wtf/Forward.h" 45 #include "platform/wtf/Forward.h"
46 #include "wtf/allocator/Partitions.h" 46 #include "platform/wtf/allocator/Partitions.h"
47 47
48 namespace blink { 48 namespace blink {
49 49
50 const size_t blinkPageSizeLog2 = 17; 50 const size_t blinkPageSizeLog2 = 17;
51 const size_t blinkPageSize = 1 << blinkPageSizeLog2; 51 const size_t blinkPageSize = 1 << blinkPageSizeLog2;
52 const size_t blinkPageOffsetMask = blinkPageSize - 1; 52 const size_t blinkPageOffsetMask = blinkPageSize - 1;
53 const size_t blinkPageBaseMask = ~blinkPageOffsetMask; 53 const size_t blinkPageBaseMask = ~blinkPageOffsetMask;
54 54
55 // We allocate pages at random addresses but in groups of 55 // We allocate pages at random addresses but in groups of
56 // blinkPagesPerRegion at a given random address. We group pages to 56 // blinkPagesPerRegion at a given random address. We group pages to
(...skipping 935 matching lines...) Expand 10 before | Expand all | Expand 10 after
992 return outOfLineAllocate(allocationSize, gcInfoIndex); 992 return outOfLineAllocate(allocationSize, gcInfoIndex);
993 } 993 }
994 994
995 inline NormalPageArena* NormalPage::arenaForNormalPage() const { 995 inline NormalPageArena* NormalPage::arenaForNormalPage() const {
996 return static_cast<NormalPageArena*>(arena()); 996 return static_cast<NormalPageArena*>(arena());
997 } 997 }
998 998
999 } // namespace blink 999 } // namespace blink
1000 1000
1001 #endif // HeapPage_h 1001 #endif // HeapPage_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/platform/heap/HeapLinkedStack.h ('k') | third_party/WebKit/Source/platform/heap/HeapPage.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698