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

Unified Diff: Source/platform/heap/ThreadState.h

Issue 906213002: Oilpan: Rename heap classes (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/platform/heap/HeapTest.cpp ('k') | Source/platform/heap/ThreadState.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/heap/ThreadState.h
diff --git a/Source/platform/heap/ThreadState.h b/Source/platform/heap/ThreadState.h
index 2d527207732ff80c2e2629f7b5b27581032ef8d2..929f058fa874faa162507e3db299cae0422abf1b 100644
--- a/Source/platform/heap/ThreadState.h
+++ b/Source/platform/heap/ThreadState.h
@@ -51,7 +51,7 @@ class Isolate;
namespace blink {
-class BaseHeapPage;
+class BasePage;
class CallbackStack;
struct GCInfo;
class HeapObjectHeader;
@@ -60,7 +60,7 @@ class PageMemory;
class PersistentNode;
class SafePointBarrier;
class SafePointAwareMutexLocker;
-class ThreadHeap;
+class BaseHeap;
class ThreadState;
class Visitor;
@@ -179,13 +179,13 @@ template<typename U> class ThreadingTrait<const U> : public ThreadingTrait<U> {
#define TypedHeapEnumName(Type) Type##Heap,
-enum TypedHeaps {
- GeneralHeap = 0,
- VectorBackingHeap,
- InlineVectorBackingHeap,
- HashTableBackingHeap,
+enum HeapIndices {
+ NormalPageHeapIndex = 0,
+ VectorHeapIndex,
+ InlineVectorHeapIndex,
+ HashTableHeapIndex,
FOR_EACH_TYPED_HEAP(TypedHeapEnumName)
- LargeObjectHeap,
+ LargeObjectHeapIndex,
// Values used for iteration of heap segments.
NumberOfHeaps,
};
@@ -481,14 +481,14 @@ public:
// The heap is split into multiple heap parts based on object
// types. To get the index for a given type, use
// HeapIndexTrait<Type>::index.
- ThreadHeap* heap(int heapIndex) const { return m_heaps[heapIndex]; }
+ BaseHeap* heap(int heapIndex) const { return m_heaps[heapIndex]; }
#if ENABLE(ASSERT) || ENABLE(GC_PROFILING)
// Infrastructure to determine if an address is within one of the
// address ranges for the Blink heap. If the address is in the Blink
// heap the containing heap page is returned.
- BaseHeapPage* findPageFromAddress(Address);
- BaseHeapPage* findPageFromAddress(void* pointer) { return findPageFromAddress(reinterpret_cast<Address>(pointer)); }
+ BasePage* findPageFromAddress(Address);
+ BasePage* findPageFromAddress(void* pointer) { return findPageFromAddress(reinterpret_cast<Address>(pointer)); }
#endif
// List of persistent roots allocated on the given thread.
@@ -666,7 +666,7 @@ private:
bool m_sweepForbidden;
size_t m_noAllocationCount;
size_t m_allocatedObjectSizeBeforeGC;
- ThreadHeap* m_heaps[NumberOfHeaps];
+ BaseHeap* m_heaps[NumberOfHeaps];
Vector<OwnPtr<CleanupTask>> m_cleanupTasks;
bool m_isTerminating;
« no previous file with comments | « Source/platform/heap/HeapTest.cpp ('k') | Source/platform/heap/ThreadState.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698