OLD | NEW |
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 1040 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1051 static bool s_lastGCWasConservative; | 1051 static bool s_lastGCWasConservative; |
1052 static FreePagePool* s_freePagePool; | 1052 static FreePagePool* s_freePagePool; |
1053 static OrphanedPagePool* s_orphanedPagePool; | 1053 static OrphanedPagePool* s_orphanedPagePool; |
1054 static RegionTree* s_regionTree; | 1054 static RegionTree* s_regionTree; |
1055 static size_t s_allocatedSpace; | 1055 static size_t s_allocatedSpace; |
1056 static size_t s_allocatedObjectSize; | 1056 static size_t s_allocatedObjectSize; |
1057 static size_t s_markedObjectSize; | 1057 static size_t s_markedObjectSize; |
1058 static size_t s_externallyAllocatedBytes; | 1058 static size_t s_externallyAllocatedBytes; |
1059 static size_t s_externallyAllocatedBytesAlive; | 1059 static size_t s_externallyAllocatedBytesAlive; |
1060 static unsigned s_requestedUrgentGC; | 1060 static unsigned s_requestedUrgentGC; |
| 1061 static double s_recentMarkingTime; |
1061 | 1062 |
1062 friend class ThreadState; | 1063 friend class ThreadState; |
1063 }; | 1064 }; |
1064 | 1065 |
1065 template<typename T> | 1066 template<typename T> |
1066 struct HeapIndexTrait { | 1067 struct HeapIndexTrait { |
1067 static int index() { return NormalPageHeapIndex; }; | 1068 static int index() { return NormalPageHeapIndex; }; |
1068 }; | 1069 }; |
1069 | 1070 |
1070 // FIXME: The forward declaration is layering violation. | 1071 // FIXME: The forward declaration is layering violation. |
(...skipping 1497 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2568 template<typename T, size_t inlineCapacity> | 2569 template<typename T, size_t inlineCapacity> |
2569 struct GCInfoTrait<HeapVector<T, inlineCapacity>> : public GCInfoTrait<Vector<T,
inlineCapacity, HeapAllocator>> { }; | 2570 struct GCInfoTrait<HeapVector<T, inlineCapacity>> : public GCInfoTrait<Vector<T,
inlineCapacity, HeapAllocator>> { }; |
2570 template<typename T, size_t inlineCapacity> | 2571 template<typename T, size_t inlineCapacity> |
2571 struct GCInfoTrait<HeapDeque<T, inlineCapacity>> : public GCInfoTrait<Deque<T, i
nlineCapacity, HeapAllocator>> { }; | 2572 struct GCInfoTrait<HeapDeque<T, inlineCapacity>> : public GCInfoTrait<Deque<T, i
nlineCapacity, HeapAllocator>> { }; |
2572 template<typename T, typename U, typename V> | 2573 template<typename T, typename U, typename V> |
2573 struct GCInfoTrait<HeapHashCountedSet<T, U, V>> : public GCInfoTrait<HashCounted
Set<T, U, V, HeapAllocator>> { }; | 2574 struct GCInfoTrait<HeapHashCountedSet<T, U, V>> : public GCInfoTrait<HashCounted
Set<T, U, V, HeapAllocator>> { }; |
2574 | 2575 |
2575 } // namespace blink | 2576 } // namespace blink |
2576 | 2577 |
2577 #endif // Heap_h | 2578 #endif // Heap_h |
OLD | NEW |