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 "src/setup-isolate.h" |
| 6 |
| 7 #include "src/base/logging.h" |
| 8 #include "src/interpreter/setup-interpreter.h" |
| 9 #include "src/isolate.h" |
| 10 |
| 11 namespace v8 { |
| 12 namespace internal { |
| 13 |
| 14 void SetupIsolateDelegate::SetupBuiltins(Isolate* isolate, |
| 15 bool create_heap_objects) { |
| 16 #ifdef V8_GYP_BUILD |
| 17 // Compatibility hack to keep the deprecated GYP build working. |
| 18 if (create_heap_objects) { |
| 19 SetupBuiltinsInternal(isolate); |
| 20 } else { |
| 21 isolate->builtins()->MarkInitialized(); |
| 22 } |
| 23 return; |
| 24 #endif |
| 25 DCHECK(create_heap_objects); |
| 26 SetupBuiltinsInternal(isolate); |
| 27 } |
| 28 |
| 29 void SetupIsolateDelegate::SetupInterpreter( |
| 30 interpreter::Interpreter* interpreter, bool create_heap_objects) { |
| 31 #ifdef V8_GYP_BUILD |
| 32 // Compatibility hack to keep the deprecated GYP build working. |
| 33 if (create_heap_objects) { |
| 34 interpreter::SetupInterpreter::InstallBytecodeHandlers(interpreter); |
| 35 } |
| 36 return; |
| 37 #endif |
| 38 DCHECK(create_heap_objects); |
| 39 interpreter::SetupInterpreter::InstallBytecodeHandlers(interpreter); |
| 40 } |
| 41 |
| 42 } // namespace internal |
| 43 } // namespace v8 |
OLD | NEW |