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

Side by Side Diff: Source/platform/heap/Heap.h

Issue 966243002: Reduce platform/heap/ wtf includes. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 9 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | Source/platform/heap/ThreadState.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 21 matching lines...) Expand all
32 #define Heap_h 32 #define Heap_h
33 33
34 #include "platform/PlatformExport.h" 34 #include "platform/PlatformExport.h"
35 #include "platform/heap/AddressSanitizer.h" 35 #include "platform/heap/AddressSanitizer.h"
36 #include "platform/heap/ThreadState.h" 36 #include "platform/heap/ThreadState.h"
37 #include "platform/heap/Visitor.h" 37 #include "platform/heap/Visitor.h"
38 #include "public/platform/WebThread.h" 38 #include "public/platform/WebThread.h"
39 #include "wtf/Assertions.h" 39 #include "wtf/Assertions.h"
40 #include "wtf/Atomics.h" 40 #include "wtf/Atomics.h"
41 #include "wtf/ContainerAnnotations.h" 41 #include "wtf/ContainerAnnotations.h"
42 #include "wtf/Forward.h"
42 #include "wtf/HashCountedSet.h" 43 #include "wtf/HashCountedSet.h"
43 #include "wtf/LinkedHashSet.h" 44 #include "wtf/LinkedHashSet.h"
44 #include "wtf/ListHashSet.h" 45 #include "wtf/ListHashSet.h"
45 #include "wtf/OwnPtr.h"
46 #include "wtf/PageAllocator.h" 46 #include "wtf/PageAllocator.h"
47 #include "wtf/PassRefPtr.h"
48 #include "wtf/ThreadSafeRefCounted.h"
49 #include <stdint.h> 47 #include <stdint.h>
50 48
51 namespace blink { 49 namespace blink {
52 50
53 const size_t blinkPageSizeLog2 = 17; 51 const size_t blinkPageSizeLog2 = 17;
54 const size_t blinkPageSize = 1 << blinkPageSizeLog2; 52 const size_t blinkPageSize = 1 << blinkPageSizeLog2;
55 const size_t blinkPageOffsetMask = blinkPageSize - 1; 53 const size_t blinkPageOffsetMask = blinkPageSize - 1;
56 const size_t blinkPageBaseMask = ~blinkPageOffsetMask; 54 const size_t blinkPageBaseMask = ~blinkPageOffsetMask;
57 55
58 // We allocate pages at random addresses but in groups of 56 // We allocate pages at random addresses but in groups of
(...skipping 2509 matching lines...) Expand 10 before | Expand all | Expand 10 after
2568 template<typename T, size_t inlineCapacity> 2566 template<typename T, size_t inlineCapacity>
2569 struct GCInfoTrait<HeapVector<T, inlineCapacity>> : public GCInfoTrait<Vector<T, inlineCapacity, HeapAllocator>> { }; 2567 struct GCInfoTrait<HeapVector<T, inlineCapacity>> : public GCInfoTrait<Vector<T, inlineCapacity, HeapAllocator>> { };
2570 template<typename T, size_t inlineCapacity> 2568 template<typename T, size_t inlineCapacity>
2571 struct GCInfoTrait<HeapDeque<T, inlineCapacity>> : public GCInfoTrait<Deque<T, i nlineCapacity, HeapAllocator>> { }; 2569 struct GCInfoTrait<HeapDeque<T, inlineCapacity>> : public GCInfoTrait<Deque<T, i nlineCapacity, HeapAllocator>> { };
2572 template<typename T, typename U, typename V> 2570 template<typename T, typename U, typename V>
2573 struct GCInfoTrait<HeapHashCountedSet<T, U, V>> : public GCInfoTrait<HashCounted Set<T, U, V, HeapAllocator>> { }; 2571 struct GCInfoTrait<HeapHashCountedSet<T, U, V>> : public GCInfoTrait<HashCounted Set<T, U, V, HeapAllocator>> { };
2574 2572
2575 } // namespace blink 2573 } // namespace blink
2576 2574
2577 #endif // Heap_h 2575 #endif // Heap_h
OLDNEW
« no previous file with comments | « no previous file | Source/platform/heap/ThreadState.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698