v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
Loading...
Searching...
No Matches
snapshot-empty.cc
Go to the documentation of this file.
1
// Copyright 2006-2008 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
// Used for building without snapshots.
6
7
#include "
src/snapshot/snapshot.h
"
8
9
namespace
v8
{
10
namespace
internal
{
11
12
#ifdef V8_USE_EXTERNAL_STARTUP_DATA
13
// Dummy implementations of Set*FromFile(..) APIs.
14
//
15
// These are meant for use with snapshot-external.cc. Should this file
16
// be compiled with those options we just supply these dummy implementations
17
// below. This happens when compiling the mksnapshot utility.
18
void
SetNativesFromFile(StartupData* data) {
UNREACHABLE
(); }
19
void
SetSnapshotFromFile
(StartupData* data) {
UNREACHABLE
(); }
20
void
ReadNatives() {}
21
void
DisposeNatives() {}
22
#endif
// V8_USE_EXTERNAL_STARTUP_DATA
23
24
const
v8::StartupData
*
Snapshot::DefaultSnapshotBlob
() {
return
nullptr
; }
25
bool
Snapshot::ShouldVerifyChecksum
(
const
v8::StartupData
* data) {
26
return
false
;
27
}
28
29
}
// namespace internal
30
}
// namespace v8
v8::StartupData
Definition
v8-snapshot.h:21
v8::internal::Snapshot::DefaultSnapshotBlob
static const v8::StartupData * DefaultSnapshotBlob()
Definition
snapshot-empty.cc:24
v8::internal::Snapshot::ShouldVerifyChecksum
static bool ShouldVerifyChecksum(const v8::StartupData *data)
Definition
snapshot-empty.cc:25
v8::internal::internal
internal
Definition
wasm-objects-inl.h:458
v8::internal::UNREACHABLE
UNREACHABLE()
v8::internal::SetSnapshotFromFile
void SetSnapshotFromFile(StartupData *snapshot_blob)
Definition
snapshot-external.cc:27
v8
Definition
api-arguments-inl.h:19
snapshot.h
src
snapshot
snapshot-empty.cc
Generated on Sun Apr 6 2025 21:08:57 for v8 by
1.12.0