#include "src/heap/allocation-observer.h"
#include <algorithm>
#include "src/heap/heap.h"
#include "src/heap/spaces.h"
namespace v8 {
namespace internal {
void AllocationCounter::AddAllocationObserver(AllocationObserver* observer) { … }
void AllocationCounter::RemoveAllocationObserver(AllocationObserver* observer) { … }
void AllocationCounter::AdvanceAllocationObservers(size_t allocated) { … }
void AllocationCounter::InvokeAllocationObservers(Address soon_object,
size_t object_size,
size_t aligned_object_size) { … }
PauseAllocationObserversScope::PauseAllocationObserversScope(Heap* heap)
: … { … }
PauseAllocationObserversScope::~PauseAllocationObserversScope() { … }
}
}