| OLD | NEW |
| 1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "src/bootstrapper.h" | 5 #include "src/bootstrapper.h" |
| 6 | 6 |
| 7 #include "src/accessors.h" | 7 #include "src/accessors.h" |
| 8 #include "src/api-natives.h" | 8 #include "src/api-natives.h" |
| 9 #include "src/base/utils/random-number-generator.h" | 9 #include "src/base/utils/random-number-generator.h" |
| 10 #include "src/code-stubs.h" | 10 #include "src/code-stubs.h" |
| (...skipping 1699 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1710 | 1710 |
| 1711 | 1711 |
| 1712 void Genesis::InstallNativeFunctions() { | 1712 void Genesis::InstallNativeFunctions() { |
| 1713 HandleScope scope(isolate()); | 1713 HandleScope scope(isolate()); |
| 1714 INSTALL_NATIVE(JSFunction, "$createDate", create_date_fun); | 1714 INSTALL_NATIVE(JSFunction, "$createDate", create_date_fun); |
| 1715 | 1715 |
| 1716 INSTALL_NATIVE(JSFunction, "$toNumber", to_number_fun); | 1716 INSTALL_NATIVE(JSFunction, "$toNumber", to_number_fun); |
| 1717 INSTALL_NATIVE(JSFunction, "$toString", to_string_fun); | 1717 INSTALL_NATIVE(JSFunction, "$toString", to_string_fun); |
| 1718 INSTALL_NATIVE(JSFunction, "$toDetailString", to_detail_string_fun); | 1718 INSTALL_NATIVE(JSFunction, "$toDetailString", to_detail_string_fun); |
| 1719 INSTALL_NATIVE(JSFunction, "$toInteger", to_integer_fun); | 1719 INSTALL_NATIVE(JSFunction, "$toInteger", to_integer_fun); |
| 1720 INSTALL_NATIVE(JSFunction, "$toUint32", to_uint32_fun); | |
| 1721 INSTALL_NATIVE(JSFunction, "$toInt32", to_int32_fun); | |
| 1722 INSTALL_NATIVE(JSFunction, "$toLength", to_length_fun); | 1720 INSTALL_NATIVE(JSFunction, "$toLength", to_length_fun); |
| 1723 | 1721 |
| 1724 INSTALL_NATIVE(JSFunction, "$globalEval", global_eval_fun); | 1722 INSTALL_NATIVE(JSFunction, "$globalEval", global_eval_fun); |
| 1725 INSTALL_NATIVE(JSFunction, "$getStackTraceLine", get_stack_trace_line_fun); | 1723 INSTALL_NATIVE(JSFunction, "$getStackTraceLine", get_stack_trace_line_fun); |
| 1726 INSTALL_NATIVE(JSFunction, "$toCompletePropertyDescriptor", | 1724 INSTALL_NATIVE(JSFunction, "$toCompletePropertyDescriptor", |
| 1727 to_complete_property_descriptor); | 1725 to_complete_property_descriptor); |
| 1728 | 1726 |
| 1729 INSTALL_NATIVE(Symbol, "$promiseStatus", promise_status); | 1727 INSTALL_NATIVE(Symbol, "$promiseStatus", promise_status); |
| 1730 INSTALL_NATIVE(Symbol, "$promiseValue", promise_value); | 1728 INSTALL_NATIVE(Symbol, "$promiseValue", promise_value); |
| 1731 INSTALL_NATIVE(JSFunction, "$promiseCreate", promise_create); | 1729 INSTALL_NATIVE(JSFunction, "$promiseCreate", promise_create); |
| (...skipping 1521 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3253 } | 3251 } |
| 3254 | 3252 |
| 3255 | 3253 |
| 3256 // Called when the top-level V8 mutex is destroyed. | 3254 // Called when the top-level V8 mutex is destroyed. |
| 3257 void Bootstrapper::FreeThreadResources() { | 3255 void Bootstrapper::FreeThreadResources() { |
| 3258 DCHECK(!IsActive()); | 3256 DCHECK(!IsActive()); |
| 3259 } | 3257 } |
| 3260 | 3258 |
| 3261 } // namespace internal | 3259 } // namespace internal |
| 3262 } // namespace v8 | 3260 } // namespace v8 |
| OLD | NEW |