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
10
11namespace v8 {
12namespace internal {
13
14// Initializes an isolate with context-independent data from a given snapshot.
15class 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.
25
26 private:
27 void FlushICache();
28 void LogNewMapEvents();
30};
31
32} // namespace internal
33} // namespace v8
34
35#endif // V8_SNAPSHOT_STARTUP_DESERIALIZER_H_
StartupDeserializer(Isolate *isolate, const SnapshotData *startup_data, bool can_rehash)