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 1783 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1794 } | 1794 } |
1795 | 1795 |
1796 | 1796 |
1797 #define EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(id) \ | 1797 #define EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(id) \ |
1798 void Genesis::InstallNativeFunctions_##id() {} | 1798 void Genesis::InstallNativeFunctions_##id() {} |
1799 | 1799 |
1800 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_modules) | 1800 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_modules) |
1801 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_arrays) | 1801 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_arrays) |
1802 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_array_includes) | 1802 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_array_includes) |
1803 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_classes) | 1803 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_classes) |
1804 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_object_literals) | |
1805 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_regexps) | 1804 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_regexps) |
1806 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_arrow_functions) | 1805 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_arrow_functions) |
1807 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_tostring) | 1806 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_tostring) |
1808 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_sloppy) | 1807 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_sloppy) |
1809 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_unicode) | 1808 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_unicode) |
1810 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_unicode_regexps) | 1809 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_unicode_regexps) |
1811 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_computed_property_names) | 1810 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_computed_property_names) |
1812 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_rest_parameters) | 1811 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_rest_parameters) |
1813 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_reflect) | 1812 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_reflect) |
1814 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_spreadcalls) | 1813 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_spreadcalls) |
(...skipping 17 matching lines...) Expand all Loading... |
1832 | 1831 |
1833 #undef INSTALL_NATIVE | 1832 #undef INSTALL_NATIVE |
1834 | 1833 |
1835 #define EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(id) \ | 1834 #define EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(id) \ |
1836 void Genesis::InitializeGlobal_##id() {} | 1835 void Genesis::InitializeGlobal_##id() {} |
1837 | 1836 |
1838 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_modules) | 1837 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_modules) |
1839 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_arrays) | 1838 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_arrays) |
1840 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_array_includes) | 1839 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_array_includes) |
1841 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_classes) | 1840 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_classes) |
1842 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_object_literals) | |
1843 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_arrow_functions) | 1841 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_arrow_functions) |
1844 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_proxies) | 1842 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_proxies) |
1845 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_sloppy) | 1843 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_sloppy) |
1846 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_unicode) | 1844 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_unicode) |
1847 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_computed_property_names) | 1845 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_computed_property_names) |
1848 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_rest_parameters) | 1846 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_rest_parameters) |
1849 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_spreadcalls) | 1847 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_spreadcalls) |
1850 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_destructuring) | 1848 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_destructuring) |
1851 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_object) | 1849 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_object) |
1852 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_spread_arrays) | 1850 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_spread_arrays) |
(...skipping 615 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2468 | 2466 |
2469 | 2467 |
2470 bool Genesis::InstallExperimentalNatives() { | 2468 bool Genesis::InstallExperimentalNatives() { |
2471 static const char* harmony_arrays_natives[] = { | 2469 static const char* harmony_arrays_natives[] = { |
2472 "native harmony-array.js", "native harmony-typedarray.js", nullptr}; | 2470 "native harmony-array.js", "native harmony-typedarray.js", nullptr}; |
2473 static const char* harmony_array_includes_natives[] = { | 2471 static const char* harmony_array_includes_natives[] = { |
2474 "native harmony-array-includes.js", nullptr}; | 2472 "native harmony-array-includes.js", nullptr}; |
2475 static const char* harmony_proxies_natives[] = {"native proxy.js", nullptr}; | 2473 static const char* harmony_proxies_natives[] = {"native proxy.js", nullptr}; |
2476 static const char* harmony_classes_natives[] = {nullptr}; | 2474 static const char* harmony_classes_natives[] = {nullptr}; |
2477 static const char* harmony_modules_natives[] = {nullptr}; | 2475 static const char* harmony_modules_natives[] = {nullptr}; |
2478 static const char* harmony_object_literals_natives[] = {nullptr}; | |
2479 static const char* harmony_regexps_natives[] = {"native harmony-regexp.js", | 2476 static const char* harmony_regexps_natives[] = {"native harmony-regexp.js", |
2480 nullptr}; | 2477 nullptr}; |
2481 static const char* harmony_arrow_functions_natives[] = {nullptr}; | 2478 static const char* harmony_arrow_functions_natives[] = {nullptr}; |
2482 static const char* harmony_tostring_natives[] = {"native harmony-tostring.js", | 2479 static const char* harmony_tostring_natives[] = {"native harmony-tostring.js", |
2483 nullptr}; | 2480 nullptr}; |
2484 static const char* harmony_sloppy_natives[] = {nullptr}; | 2481 static const char* harmony_sloppy_natives[] = {nullptr}; |
2485 static const char* harmony_unicode_natives[] = {nullptr}; | 2482 static const char* harmony_unicode_natives[] = {nullptr}; |
2486 static const char* harmony_unicode_regexps_natives[] = {nullptr}; | 2483 static const char* harmony_unicode_regexps_natives[] = {nullptr}; |
2487 static const char* harmony_computed_property_names_natives[] = {nullptr}; | 2484 static const char* harmony_computed_property_names_natives[] = {nullptr}; |
2488 static const char* harmony_rest_parameters_natives[] = {nullptr}; | 2485 static const char* harmony_rest_parameters_natives[] = {nullptr}; |
(...skipping 709 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3198 } | 3195 } |
3199 | 3196 |
3200 | 3197 |
3201 // Called when the top-level V8 mutex is destroyed. | 3198 // Called when the top-level V8 mutex is destroyed. |
3202 void Bootstrapper::FreeThreadResources() { | 3199 void Bootstrapper::FreeThreadResources() { |
3203 DCHECK(!IsActive()); | 3200 DCHECK(!IsActive()); |
3204 } | 3201 } |
3205 | 3202 |
3206 } // namespace internal | 3203 } // namespace internal |
3207 } // namespace v8 | 3204 } // namespace v8 |
OLD | NEW |