#include "src/heap/stress-scavenge-observer.h"
#include "src/base/utils/random-number-generator.h"
#include "src/execution/isolate.h"
#include "src/heap/heap-inl.h"
#include "src/heap/spaces.h"
namespace v8 {
namespace internal {
StressScavengeObserver::StressScavengeObserver(Heap* heap)
: … { … }
void StressScavengeObserver::Step(int bytes_allocated, Address soon_object,
size_t size) { … }
bool StressScavengeObserver::HasRequestedGC() const { … }
void StressScavengeObserver::RequestedGCDone() { … }
double StressScavengeObserver::MaxNewSpaceSizeReached() const { … }
int StressScavengeObserver::NextLimit(int min) { … }
}
}