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
10
11namespace v8 {
12namespace internal {
13
14// Initializes objects in the shared isolate that are not already included in
15// the startup snapshot.
16class SharedHeapDeserializer final : public Deserializer<Isolate> {
17 public:
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.
27
28 private:
30};
31
32} // namespace internal
33} // namespace v8
34
35#endif // V8_SNAPSHOT_SHARED_HEAP_DESERIALIZER_H_
SharedHeapDeserializer(Isolate *isolate, const SnapshotData *shared_heap_data, bool can_rehash)