Index: src/heap/spaces.h |
diff --git a/src/heap/spaces.h b/src/heap/spaces.h |
index 67e9aae114326e8a57f55751115c063882b30712..856b010c3e4ed2dae0653de094aeec0a8b7840d1 100644 |
--- a/src/heap/spaces.h |
+++ b/src/heap/spaces.h |
@@ -1446,16 +1446,6 @@ class MemoryAllocator { |
// filling it up with a recognizable non-NULL bit pattern. |
void ZapBlock(Address start, size_t size); |
- void PerformAllocationCallback(ObjectSpace space, AllocationAction action, |
- size_t size); |
- |
- void AddMemoryAllocationCallback(MemoryAllocationCallback callback, |
- ObjectSpace space, AllocationAction action); |
- |
- void RemoveMemoryAllocationCallback(MemoryAllocationCallback callback); |
- |
- bool MemoryAllocationCallbackRegistered(MemoryAllocationCallback callback); |
- |
static int CodePageGuardStartOffset(); |
static int CodePageGuardSize(); |
@@ -1516,19 +1506,6 @@ class MemoryAllocator { |
base::AtomicValue<void*> lowest_ever_allocated_; |
base::AtomicValue<void*> highest_ever_allocated_; |
- struct MemoryAllocationCallbackRegistration { |
- MemoryAllocationCallbackRegistration(MemoryAllocationCallback callback, |
- ObjectSpace space, |
- AllocationAction action) |
- : callback(callback), space(space), action(action) {} |
- MemoryAllocationCallback callback; |
- ObjectSpace space; |
- AllocationAction action; |
- }; |
- |
- // A List of callback that are triggered when memory is allocated or free'd |
- List<MemoryAllocationCallbackRegistration> memory_allocation_callbacks_; |
- |
// Initializes pages in a chunk. Returns the first page address. |
// This function and GetChunkId() are provided for the mark-compact |
// collector to rebuild page headers in the from space, which is |