#include "src/heap/memory-reducer.h"
#include "src/flags/flags.h"
#include "src/heap/gc-tracer.h"
#include "src/heap/heap-inl.h"
#include "src/heap/incremental-marking.h"
#include "src/init/v8.h"
#include "src/utils/utils.h"
namespace v8 {
namespace internal {
const int MemoryReducer::kLongDelayMs = …;
const int MemoryReducer::kShortDelayMs = …;
const int MemoryReducer::kWatchdogDelayMs = …;
const double MemoryReducer::kCommittedMemoryFactor = …;
const size_t MemoryReducer::kCommittedMemoryDelta = …;
MemoryReducer::MemoryReducer(Heap* heap)
: … { … }
MemoryReducer::TimerTask::TimerTask(MemoryReducer* memory_reducer)
: … { … }
void MemoryReducer::TimerTask::RunInternal() { … }
void MemoryReducer::NotifyTimer(const Event& event) { … }
void MemoryReducer::NotifyMarkCompact(size_t committed_memory_before) { … }
void MemoryReducer::NotifyPossibleGarbage() { … }
bool MemoryReducer::WatchdogGC(const State& state, const Event& event) { … }
MemoryReducer::State MemoryReducer::Step(const State& state,
const Event& event) { … }
void MemoryReducer::ScheduleTimer(double delay_ms) { … }
void MemoryReducer::TearDown() { … }
int MemoryReducer::MaxNumberOfGCs() { … }
}
}