v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
Loading...
Searching...
No Matches
setup-isolate-deserialize.cc
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#include "src/base/logging.h"
8
9namespace v8 {
10namespace internal {
11
13 bool create_heap_objects) {
14 // No actual work to be done; heap will be deserialized from the snapshot.
15 CHECK_WITH_MSG(!create_heap_objects,
16 "Heap setup supported only in mksnapshot");
17 return true;
18}
19
21 bool compile_builtins) {
22 // No actual work to be done; builtins will be deserialized from the snapshot.
23 CHECK_WITH_MSG(!compile_builtins,
24 "Builtin compilation supported only in mksnapshot");
25}
26
27} // namespace internal
28} // namespace v8
virtual bool SetupHeap(Isolate *isolate, bool create_heap_objects)
virtual void SetupBuiltins(Isolate *isolate, bool compile_builtins)
#define CHECK_WITH_MSG(condition, message)
Definition logging.h:118