v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
Loading...
Searching...
No Matches
setup-isolate-full.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#include "src/heap/heap-inl.h"
10
11namespace v8 {
12namespace internal {
13
14bool SetupIsolateDelegate::SetupHeap(Isolate* isolate,
15 bool create_heap_objects) {
16 if (!create_heap_objects) {
17 CHECK(isolate->snapshot_available());
18 return true;
19 }
20 return SetupHeapInternal(isolate);
21}
22
23void SetupIsolateDelegate::SetupBuiltins(Isolate* isolate,
24 bool compile_builtins) {
25 if (!compile_builtins) {
26 CHECK(isolate->snapshot_available());
27 return;
28 }
29 SetupBuiltinsInternal(isolate);
30#ifdef DEBUG
31 DebugEvaluate::VerifyTransitiveBuiltins(isolate);
32#endif // DEBUG
33}
34
35} // namespace internal
36} // namespace v8
static void SetupBuiltinsInternal(Isolate *isolate)
virtual bool SetupHeap(Isolate *isolate, bool create_heap_objects)
static bool SetupHeapInternal(Isolate *isolate)
virtual void SetupBuiltins(Isolate *isolate, bool compile_builtins)
#define CHECK(condition)
Definition logging.h:124