OLD | NEW |
| (Empty) |
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 #include "src/interpreter/setup-interpreter.h" | |
8 | |
9 namespace v8 { | |
10 namespace internal { | |
11 | |
12 void SetupIsolateDelegateForTests::SetupBuiltins(Isolate* isolate, | |
13 bool create_heap_objects) { | |
14 if (create_heap_objects) { | |
15 SetupBuiltinsInternal(isolate); | |
16 } | |
17 } | |
18 | |
19 void SetupIsolateDelegateForTests::SetupInterpreter( | |
20 interpreter::Interpreter* interpreter, bool create_heap_objects) { | |
21 if (create_heap_objects) { | |
22 interpreter::SetupInterpreter::InstallBytecodeHandlers(interpreter); | |
23 } | |
24 } | |
25 | |
26 } // namespace internal | |
27 } // namespace v8 | |
OLD | NEW |