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 : #ifndef V8_TEST_CCTEST_SETUP_ISOLATE_FOR_TESTS_H_
6 : #define V8_TEST_CCTEST_SETUP_ISOLATE_FOR_TESTS_H_
7 :
8 : #include "src/setup-isolate.h"
9 :
10 : namespace v8 {
11 : namespace internal {
12 :
13 : class SetupIsolateDelegateForTests : public SetupIsolateDelegate {
14 : public:
15 : explicit SetupIsolateDelegateForTests(bool create_heap_objects)
16 265 : : SetupIsolateDelegate(create_heap_objects) {}
17 530 : ~SetupIsolateDelegateForTests() override = default;
18 :
19 : void SetupBuiltins(Isolate* isolate) override;
20 :
21 : bool SetupHeap(Heap* heap) override;
22 : };
23 :
24 : } // namespace internal
25 : } // namespace v8
26 :
27 : #endif // V8_TEST_CCTEST_SETUP_ISOLATE_FOR_TESTS_H_
|