v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
Loading...
Searching...
No Matches
shared-heap-deserializer.h
Go to the documentation of this file.
1
// Copyright 2021 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_SHARED_HEAP_DESERIALIZER_H_
6
#define V8_SNAPSHOT_SHARED_HEAP_DESERIALIZER_H_
7
8
#include "
src/snapshot/deserializer.h
"
9
#include "
src/snapshot/snapshot-data.h
"
10
11
namespace
v8
{
12
namespace
internal
{
13
14
// Initializes objects in the shared isolate that are not already included in
15
// the startup snapshot.
16
class
SharedHeapDeserializer
final :
public
Deserializer
<Isolate> {
17
public
:
18
explicit
SharedHeapDeserializer
(
Isolate
* isolate,
19
const
SnapshotData
* shared_heap_data,
20
bool
can_rehash)
21
:
Deserializer
(isolate, shared_heap_data->Payload(),
22
shared_heap_data->GetMagicNumber(), false, can_rehash) {}
23
24
// Depending on runtime flags, deserialize shared heap objects into the
25
// Isolate.
26
void
DeserializeIntoIsolate
();
27
28
private
:
29
void
DeserializeStringTable
();
30
};
31
32
}
// namespace internal
33
}
// namespace v8
34
35
#endif
// V8_SNAPSHOT_SHARED_HEAP_DESERIALIZER_H_
v8::internal::Deserializer
Definition
deserializer.h:44
v8::internal::Isolate
Definition
isolate.h:586
v8::internal::SharedHeapDeserializer
Definition
shared-heap-deserializer.h:16
v8::internal::SharedHeapDeserializer::DeserializeIntoIsolate
void DeserializeIntoIsolate()
Definition
shared-heap-deserializer.cc:12
v8::internal::SharedHeapDeserializer::DeserializeStringTable
void DeserializeStringTable()
Definition
shared-heap-deserializer.cc:37
v8::internal::SharedHeapDeserializer::SharedHeapDeserializer
SharedHeapDeserializer(Isolate *isolate, const SnapshotData *shared_heap_data, bool can_rehash)
Definition
shared-heap-deserializer.h:18
v8::internal::SnapshotData
Definition
snapshot-data.h:70
deserializer.h
v8::internal::internal
internal
Definition
wasm-objects-inl.h:458
v8
Definition
api-arguments-inl.h:19
snapshot-data.h
src
snapshot
shared-heap-deserializer.h
Generated on Sun Apr 6 2025 21:08:57 for v8 by
1.12.0