v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
Loading...
Searching...
No Matches
startup-deserializer.h
Go to the documentation of this file.
1
// Copyright 2017 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_STARTUP_DESERIALIZER_H_
6
#define V8_SNAPSHOT_STARTUP_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 an isolate with context-independent data from a given snapshot.
15
class
StartupDeserializer
final :
public
Deserializer
<Isolate> {
16
public
:
17
explicit
StartupDeserializer
(
Isolate
* isolate,
18
const
SnapshotData
* startup_data,
19
bool
can_rehash)
20
:
Deserializer
(isolate, startup_data->Payload(),
21
startup_data->GetMagicNumber(), false, can_rehash) {}
22
23
// Deserialize the snapshot into an empty heap.
24
void
DeserializeIntoIsolate
();
25
26
private
:
27
void
FlushICache
();
28
void
LogNewMapEvents
();
29
void
DeserializeAndCheckExternalReferenceTable
();
30
};
31
32
}
// namespace internal
33
}
// namespace v8
34
35
#endif
// V8_SNAPSHOT_STARTUP_DESERIALIZER_H_
v8::internal::Deserializer
Definition
deserializer.h:44
v8::internal::Isolate
Definition
isolate.h:586
v8::internal::SnapshotData
Definition
snapshot-data.h:70
v8::internal::StartupDeserializer
Definition
startup-deserializer.h:15
v8::internal::StartupDeserializer::DeserializeIntoIsolate
void DeserializeIntoIsolate()
Definition
startup-deserializer.cc:20
v8::internal::StartupDeserializer::LogNewMapEvents
void LogNewMapEvents()
Definition
startup-deserializer.cc:107
v8::internal::StartupDeserializer::StartupDeserializer
StartupDeserializer(Isolate *isolate, const SnapshotData *startup_data, bool can_rehash)
Definition
startup-deserializer.h:17
v8::internal::StartupDeserializer::FlushICache
void FlushICache()
Definition
startup-deserializer.cc:111
v8::internal::StartupDeserializer::DeserializeAndCheckExternalReferenceTable
void DeserializeAndCheckExternalReferenceTable()
Definition
startup-deserializer.cc:95
deserializer.h
v8::internal::internal
internal
Definition
wasm-objects-inl.h:458
v8
Definition
api-arguments-inl.h:19
snapshot-data.h
src
snapshot
startup-deserializer.h
Generated on Sun Apr 6 2025 21:08:57 for v8 by
1.12.0