V8 API Reference, 7.2.502.16 (for Deno 0.2.4)
setup-isolate-full.cc
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/setup-isolate.h"
6 
7 #include "src/base/logging.h"
8 #include "src/heap/heap-inl.h"
9 #include "src/interpreter/interpreter.h"
10 #include "src/isolate.h"
11 
12 namespace v8 {
13 namespace internal {
14 
15 void SetupIsolateDelegate::SetupBuiltins(Isolate* isolate) {
16  if (create_heap_objects_) {
17  SetupBuiltinsInternal(isolate);
18  } else {
19  CHECK(isolate->snapshot_available());
20  }
21 }
22 
23 bool SetupIsolateDelegate::SetupHeap(Heap* heap) {
24  if (create_heap_objects_) {
25  return SetupHeapInternal(heap);
26  } else {
27  CHECK(heap->isolate()->snapshot_available());
28  return true;
29  }
30 }
31 
32 } // namespace internal
33 } // namespace v8
Definition: libplatform.h:13