#include "src/snapshot/startup-serializer.h"
#include "src/execution/v8threads.h"
#include "src/handles/global-handles-inl.h"
#include "src/heap/heap-inl.h"
#include "src/heap/read-only-heap.h"
#include "src/objects/contexts.h"
#include "src/objects/objects-inl.h"
#include "src/objects/slots.h"
#include "src/snapshot/read-only-serializer.h"
#include "src/snapshot/shared-heap-serializer.h"
namespace v8 {
namespace internal {
namespace {
class V8_NODISCARD SanitizeIsolateScope final { … };
}
StartupSerializer::StartupSerializer(
Isolate* isolate, Snapshot::SerializerFlags flags,
SharedHeapSerializer* shared_heap_serializer)
: … { … }
StartupSerializer::~StartupSerializer() { … }
void StartupSerializer::SerializeObjectImpl(Handle<HeapObject> obj,
SlotType slot_type) { … }
void StartupSerializer::SerializeWeakReferencesAndDeferred() { … }
void StartupSerializer::SerializeStrongReferences(
const DisallowGarbageCollection& no_gc) { … }
SerializedHandleChecker::SerializedHandleChecker(
Isolate* isolate, std::vector<Tagged<Context>>* contexts)
: … { … }
bool StartupSerializer::SerializeUsingSharedHeapObjectCache(
SnapshotByteSink* sink, Handle<HeapObject> obj) { … }
void StartupSerializer::SerializeUsingStartupObjectCache(
SnapshotByteSink* sink, Handle<HeapObject> obj) { … }
void StartupSerializer::CheckNoDirtyFinalizationRegistries() { … }
void SerializedHandleChecker::AddToSet(Tagged<FixedArray> serialized) { … }
void SerializedHandleChecker::VisitRootPointers(Root root,
const char* description,
FullObjectSlot start,
FullObjectSlot end) { … }
bool SerializedHandleChecker::CheckGlobalAndEternalHandles() { … }
}
}