Line data Source code
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 "test/cctest/setup-isolate-for-tests.h"
6 :
7 : namespace v8 {
8 : namespace internal {
9 :
10 265 : void SetupIsolateDelegateForTests::SetupBuiltins(Isolate* isolate) {
11 265 : if (create_heap_objects_) {
12 55 : SetupBuiltinsInternal(isolate);
13 : }
14 265 : }
15 :
16 265 : bool SetupIsolateDelegateForTests::SetupHeap(Heap* heap) {
17 265 : if (create_heap_objects_) {
18 55 : return SetupHeapInternal(heap);
19 : }
20 : return true;
21 : }
22 :
23 : } // namespace internal
24 : } // namespace v8
|