// 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. #ifndef V8_SNAPSHOT_ROOTS_SERIALIZER_H_ #define V8_SNAPSHOT_ROOTS_SERIALIZER_H_ #include <bitset> #include "src/objects/visitors.h" #include "src/snapshot/serializer.h" namespace v8 { namespace internal { class HeapObject; class Object; class Isolate; enum class RootIndex : uint16_t; // Base class for serializer that iterate over roots. Also maintains a cache // that can be used to share non-root objects with other serializers. class RootsSerializer : public Serializer { … }; } // namespace internal } // namespace v8 #endif // V8_SNAPSHOT_ROOTS_SERIALIZER_H_