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 1782 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1793 } | 1793 } |
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) | |
1804 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_regexps) | 1803 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_regexps) |
1805 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_arrow_functions) | 1804 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_arrow_functions) |
1806 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_tostring) | 1805 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_tostring) |
1807 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_sloppy) | 1806 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_sloppy) |
1808 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_unicode) | 1807 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_unicode) |
1809 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_unicode_regexps) | 1808 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_unicode_regexps) |
1810 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_computed_property_names) | 1809 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_computed_property_names) |
1811 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_rest_parameters) | 1810 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_rest_parameters) |
1812 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_reflect) | 1811 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_reflect) |
1813 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_spreadcalls) | 1812 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_spreadcalls) |
(...skipping 16 matching lines...) Expand all Loading... |
1830 | 1829 |
1831 | 1830 |
1832 #undef INSTALL_NATIVE | 1831 #undef INSTALL_NATIVE |
1833 | 1832 |
1834 #define EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(id) \ | 1833 #define EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(id) \ |
1835 void Genesis::InitializeGlobal_##id() {} | 1834 void Genesis::InitializeGlobal_##id() {} |
1836 | 1835 |
1837 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_modules) | 1836 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_modules) |
1838 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_arrays) | 1837 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_arrays) |
1839 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_array_includes) | 1838 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_array_includes) |
1840 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_classes) | |
1841 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_arrow_functions) | 1839 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_arrow_functions) |
1842 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_proxies) | 1840 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_proxies) |
1843 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_sloppy) | 1841 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_sloppy) |
1844 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_unicode) | 1842 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_unicode) |
1845 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_computed_property_names) | 1843 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_computed_property_names) |
1846 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_rest_parameters) | 1844 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_rest_parameters) |
1847 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_spreadcalls) | 1845 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_spreadcalls) |
1848 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_destructuring) | 1846 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_destructuring) |
1849 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_object) | 1847 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_object) |
1850 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_spread_arrays) | 1848 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_spread_arrays) |
(...skipping 613 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2464 return true; | 2462 return true; |
2465 } | 2463 } |
2466 | 2464 |
2467 | 2465 |
2468 bool Genesis::InstallExperimentalNatives() { | 2466 bool Genesis::InstallExperimentalNatives() { |
2469 static const char* harmony_arrays_natives[] = { | 2467 static const char* harmony_arrays_natives[] = { |
2470 "native harmony-array.js", "native harmony-typedarray.js", nullptr}; | 2468 "native harmony-array.js", "native harmony-typedarray.js", nullptr}; |
2471 static const char* harmony_array_includes_natives[] = { | 2469 static const char* harmony_array_includes_natives[] = { |
2472 "native harmony-array-includes.js", nullptr}; | 2470 "native harmony-array-includes.js", nullptr}; |
2473 static const char* harmony_proxies_natives[] = {"native proxy.js", nullptr}; | 2471 static const char* harmony_proxies_natives[] = {"native proxy.js", nullptr}; |
2474 static const char* harmony_classes_natives[] = {nullptr}; | |
2475 static const char* harmony_modules_natives[] = {nullptr}; | 2472 static const char* harmony_modules_natives[] = {nullptr}; |
2476 static const char* harmony_regexps_natives[] = {"native harmony-regexp.js", | 2473 static const char* harmony_regexps_natives[] = {"native harmony-regexp.js", |
2477 nullptr}; | 2474 nullptr}; |
2478 static const char* harmony_arrow_functions_natives[] = {nullptr}; | 2475 static const char* harmony_arrow_functions_natives[] = {nullptr}; |
2479 static const char* harmony_tostring_natives[] = {"native harmony-tostring.js", | 2476 static const char* harmony_tostring_natives[] = {"native harmony-tostring.js", |
2480 nullptr}; | 2477 nullptr}; |
2481 static const char* harmony_sloppy_natives[] = {nullptr}; | 2478 static const char* harmony_sloppy_natives[] = {nullptr}; |
2482 static const char* harmony_unicode_natives[] = {nullptr}; | 2479 static const char* harmony_unicode_natives[] = {nullptr}; |
2483 static const char* harmony_unicode_regexps_natives[] = {nullptr}; | 2480 static const char* harmony_unicode_regexps_natives[] = {nullptr}; |
2484 static const char* harmony_computed_property_names_natives[] = {nullptr}; | 2481 static const char* harmony_computed_property_names_natives[] = {nullptr}; |
(...skipping 710 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3195 } | 3192 } |
3196 | 3193 |
3197 | 3194 |
3198 // Called when the top-level V8 mutex is destroyed. | 3195 // Called when the top-level V8 mutex is destroyed. |
3199 void Bootstrapper::FreeThreadResources() { | 3196 void Bootstrapper::FreeThreadResources() { |
3200 DCHECK(!IsActive()); | 3197 DCHECK(!IsActive()); |
3201 } | 3198 } |
3202 | 3199 |
3203 } // namespace internal | 3200 } // namespace internal |
3204 } // namespace v8 | 3201 } // namespace v8 |
OLD | NEW |