chromium/v8/test/unittests/heap/heap-utils.cc

// Copyright 2020 the V8 project authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "test/unittests/heap/heap-utils.h"

#include <algorithm>

#include "src/common/globals.h"
#include "src/flags/flags.h"
#include "src/heap/gc-tracer-inl.h"
#include "src/heap/incremental-marking.h"
#include "src/heap/mark-compact.h"
#include "src/heap/new-spaces.h"
#include "src/heap/page-metadata-inl.h"
#include "src/heap/safepoint.h"
#include "src/objects/free-space-inl.h"

namespace v8 {
namespace internal {

void HeapInternalsBase::SimulateIncrementalMarking(Heap* heap,
                                                   bool force_completion) {}

namespace {

int FixedArrayLenFromSize(int size) {}

void FillPageInPagedSpace(PageMetadata* page,
                          std::vector<Handle<FixedArray>>* out_handles) {}

}  // namespace

void HeapInternalsBase::SimulateFullSpace(
    v8::internal::NewSpace* space,
    std::vector<Handle<FixedArray>>* out_handles) {}

void HeapInternalsBase::SimulateFullSpace(v8::internal::PagedSpace* space) {}

namespace {
std::vector<Handle<FixedArray>> CreatePadding(Heap* heap, int padding_size,
                                              AllocationType allocation) {}

void FillCurrentSemiSpacePage(v8::internal::SemiSpaceNewSpace* space,
                              std::vector<Handle<FixedArray>>* out_handles) {}

void FillCurrentPagedSpacePage(v8::internal::NewSpace* space,
                               std::vector<Handle<FixedArray>>* out_handles) {}

}  // namespace

void HeapInternalsBase::FillCurrentPage(
    v8::internal::NewSpace* space,
    std::vector<Handle<FixedArray>>* out_handles) {}

bool IsNewObjectInCorrectGeneration(Tagged<HeapObject> object) {}

ManualGCScope::ManualGCScope(Isolate* isolate)
    :{}

ManualGCScope::~ManualGCScope() {}

}  // namespace internal
}  // namespace v8