chromium/v8/src/snapshot/read-only-serializer.cc

// Copyright 2018 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 "src/snapshot/read-only-serializer.h"

#include "src/heap/heap-inl.h"
#include "src/heap/read-only-heap.h"
#include "src/objects/objects-inl.h"
#include "src/objects/slots.h"
#include "src/snapshot/read-only-serializer-deserializer.h"

namespace v8 {
namespace internal {

namespace {

// Preprocess an object to prepare it for serialization.
class ObjectPreProcessor final {};

struct ReadOnlySegmentForSerialization {};

ro::EncodedTagged Encode(Isolate* isolate, Tagged<HeapObject> o) {}

// If relocations are needed, this class
// - encodes all tagged slots s.t. valid pointers can be reconstructed during
//   deserialization, and
// - records the location of all tagged slots in a table.
class EncodeRelocationsVisitor final : public ObjectVisitor {};

void ReadOnlySegmentForSerialization::EncodeTaggedSlots(Isolate* isolate) {}

class ReadOnlyHeapImageSerializer {};

std::vector<ReadOnlyHeapImageSerializer::MemoryRegion> GetUnmappedRegions(
    Isolate* isolate) {}

}  // namespace

ReadOnlySerializer::ReadOnlySerializer(Isolate* isolate,
                                       Snapshot::SerializerFlags flags)
    :{}

ReadOnlySerializer::~ReadOnlySerializer() {}

void ReadOnlySerializer::Serialize() {}

}  // namespace internal
}  // namespace v8