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
8
#include "
src/snapshot/roots-serializer.h
"
9
10
namespace
v8
{
11
namespace
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.
18
class
V8_EXPORT_PRIVATE
ReadOnlySerializer
:
public
RootsSerializer
{
19
public
:
20
ReadOnlySerializer
(
Isolate
* isolate,
Snapshot::SerializerFlags
flags);
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
{
28
UNREACHABLE
();
29
}
30
31
ReadOnlySerializer
(
const
ReadOnlySerializer
&) =
delete
;
32
ReadOnlySerializer
&
operator=
(
const
ReadOnlySerializer
&) =
delete
;
33
};
34
35
}
// namespace internal
36
}
// namespace v8
37
38
#endif
// V8_SNAPSHOT_READ_ONLY_SERIALIZER_H_
v8::base::Flags
Definition
flags.h:25
v8::internal::Handle
Definition
handles.h:149
v8::internal::Isolate
Definition
isolate.h:586
v8::internal::ReadOnlySerializer
Definition
read-only-serializer.h:18
v8::internal::ReadOnlySerializer::operator=
ReadOnlySerializer & operator=(const ReadOnlySerializer &)=delete
v8::internal::ReadOnlySerializer::ReadOnlySerializer
ReadOnlySerializer(const ReadOnlySerializer &)=delete
v8::internal::ReadOnlySerializer::SerializeObjectImpl
void SerializeObjectImpl(Handle< HeapObject > o, SlotType slot_type) override
Definition
read-only-serializer.h:27
v8::internal::RootsSerializer
Definition
roots-serializer.h:23
v8::internal::internal
internal
Definition
wasm-objects-inl.h:458
v8::internal::SlotType
SlotType
Definition
slot-set.h:232
v8
Definition
api-arguments-inl.h:19
roots-serializer.h
UNREACHABLE
#define UNREACHABLE()
Definition
logging.h:67
V8_EXPORT_PRIVATE
#define V8_EXPORT_PRIVATE
Definition
macros.h:460
src
snapshot
read-only-serializer.h
Generated on Sun Apr 6 2025 21:08:57 for v8 by
1.12.0