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/builtins/setup-builtins.h" |
| 6 |
| 7 #include "src/base/logging.h" |
| 8 #include "src/isolate.h" |
| 9 |
| 10 namespace v8 { |
| 11 namespace internal { |
| 12 |
| 13 void SetupBuiltinsDelegate::SetupBuiltins(Isolate* isolate, |
| 14 bool create_heap_objects) { |
| 15 #ifdef V8_GYP_BUILD |
| 16 // Compatibility hack to keep the deprecated GYP build working. |
| 17 if (create_heap_objects) { |
| 18 SetupBuiltinsInternal(isolate); |
| 19 } |
| 20 return; |
| 21 #endif |
| 22 DCHECK(create_heap_objects); |
| 23 SetupBuiltinsInternal(isolate); |
| 24 } |
| 25 |
| 26 } // namespace internal |
| 27 } // namespace v8 |
OLD | NEW |