v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
Loading...
Searching...
No Matches
read-only-serializer.h
Go to the documentation of this file.
1// Copyright 2018 the V8 project authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5#ifndef V8_SNAPSHOT_READ_ONLY_SERIALIZER_H_
6#define V8_SNAPSHOT_READ_ONLY_SERIALIZER_H_
7
9
10namespace v8 {
11namespace internal {
12
13// TODO(jgruber): Now that this does a memcpy-style serialization, there is no
14// longer a fundamental reason to inherit from RootsSerializer. It's still
15// convenient though because callers expect parts of the Serializer interface
16// (e.g.: rehashability, serialization statistics, blob creation).
17// Consider removing this inheritance.
19 public:
21 ~ReadOnlySerializer() override;
22
23 // Serializes the entire ReadOnlySpace as well as the ReadOnlyRoots table.
24 void Serialize();
25
26 private:
27 void SerializeObjectImpl(Handle<HeapObject> o, SlotType slot_type) override {
29 }
30
33};
34
35} // namespace internal
36} // namespace v8
37
38#endif // V8_SNAPSHOT_READ_ONLY_SERIALIZER_H_
ReadOnlySerializer & operator=(const ReadOnlySerializer &)=delete
ReadOnlySerializer(const ReadOnlySerializer &)=delete
void SerializeObjectImpl(Handle< HeapObject > o, SlotType slot_type) override
#define UNREACHABLE()
Definition logging.h:67
#define V8_EXPORT_PRIVATE
Definition macros.h:460