setup-isolate-for-tests.cc 588 Bytes
Newer Older
1 2 3 4 5 6 7 8 9
// Copyright 2017 the V8 project authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "test/cctest/setup-isolate-for-tests.h"

namespace v8 {
namespace internal {

10 11
void SetupIsolateDelegateForTests::SetupBuiltins(Isolate* isolate) {
  if (create_heap_objects_) {
12 13 14 15
    SetupBuiltinsInternal(isolate);
  }
}

16 17 18 19 20 21 22
bool SetupIsolateDelegateForTests::SetupHeap(Heap* heap) {
  if (create_heap_objects_) {
    return SetupHeapInternal(heap);
  }
  return true;
}

23 24
}  // namespace internal
}  // namespace v8