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 1818 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1829 for (size_t i = 0; i < num_elements; i++) data[i] = 0; | 1829 for (size_t i = 0; i < num_elements; i++) data[i] = 0; |
1830 } | 1830 } |
1831 } | 1831 } |
1832 | 1832 |
1833 | 1833 |
1834 #define EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(id) \ | 1834 #define EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(id) \ |
1835 void Genesis::InstallNativeFunctions_##id() {} | 1835 void Genesis::InstallNativeFunctions_##id() {} |
1836 | 1836 |
1837 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_modules) | 1837 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_modules) |
1838 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_array_includes) | 1838 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_array_includes) |
| 1839 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_block_function) |
1839 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_regexps) | 1840 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_regexps) |
1840 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_arrow_functions) | 1841 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_arrow_functions) |
1841 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_tostring) | 1842 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_tostring) |
1842 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_sloppy) | 1843 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_sloppy) |
1843 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_sloppy_let) | 1844 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_sloppy_let) |
1844 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_unicode_regexps) | 1845 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_unicode_regexps) |
1845 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_rest_parameters) | 1846 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_rest_parameters) |
1846 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_reflect) | 1847 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_reflect) |
1847 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_spreadcalls) | 1848 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_spreadcalls) |
1848 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_destructuring) | 1849 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_destructuring) |
(...skipping 17 matching lines...) Expand all Loading... |
1866 } | 1867 } |
1867 | 1868 |
1868 | 1869 |
1869 #undef INSTALL_NATIVE | 1870 #undef INSTALL_NATIVE |
1870 | 1871 |
1871 #define EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(id) \ | 1872 #define EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(id) \ |
1872 void Genesis::InitializeGlobal_##id() {} | 1873 void Genesis::InitializeGlobal_##id() {} |
1873 | 1874 |
1874 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_modules) | 1875 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_modules) |
1875 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_array_includes) | 1876 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_array_includes) |
| 1877 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_block_function) |
1876 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_arrow_functions) | 1878 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_arrow_functions) |
1877 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_proxies) | 1879 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_proxies) |
1878 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_sloppy) | 1880 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_sloppy) |
1879 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_sloppy_let) | 1881 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_sloppy_let) |
1880 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_rest_parameters) | 1882 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_rest_parameters) |
1881 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_spreadcalls) | 1883 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_spreadcalls) |
1882 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_destructuring) | 1884 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_destructuring) |
1883 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_object) | 1885 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_object) |
1884 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_object_observe) | 1886 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_object_observe) |
1885 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_spread_arrays) | 1887 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_spread_arrays) |
(...skipping 657 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2543 } | 2545 } |
2544 #endif | 2546 #endif |
2545 | 2547 |
2546 return true; | 2548 return true; |
2547 } | 2549 } |
2548 | 2550 |
2549 | 2551 |
2550 bool Genesis::InstallExperimentalNatives() { | 2552 bool Genesis::InstallExperimentalNatives() { |
2551 static const char* harmony_array_includes_natives[] = { | 2553 static const char* harmony_array_includes_natives[] = { |
2552 "native harmony-array-includes.js", nullptr}; | 2554 "native harmony-array-includes.js", nullptr}; |
| 2555 static const char* harmony_block_function_natives[] = {nullptr}; |
2553 static const char* harmony_proxies_natives[] = {"native proxy.js", nullptr}; | 2556 static const char* harmony_proxies_natives[] = {"native proxy.js", nullptr}; |
2554 static const char* harmony_modules_natives[] = {nullptr}; | 2557 static const char* harmony_modules_natives[] = {nullptr}; |
2555 static const char* harmony_regexps_natives[] = {"native harmony-regexp.js", | 2558 static const char* harmony_regexps_natives[] = {"native harmony-regexp.js", |
2556 nullptr}; | 2559 nullptr}; |
2557 static const char* harmony_arrow_functions_natives[] = {nullptr}; | 2560 static const char* harmony_arrow_functions_natives[] = {nullptr}; |
2558 static const char* harmony_tostring_natives[] = {"native harmony-tostring.js", | 2561 static const char* harmony_tostring_natives[] = {"native harmony-tostring.js", |
2559 nullptr}; | 2562 nullptr}; |
2560 static const char* harmony_sloppy_natives[] = {nullptr}; | 2563 static const char* harmony_sloppy_natives[] = {nullptr}; |
2561 static const char* harmony_sloppy_let_natives[] = {nullptr}; | 2564 static const char* harmony_sloppy_let_natives[] = {nullptr}; |
2562 static const char* harmony_unicode_regexps_natives[] = {nullptr}; | 2565 static const char* harmony_unicode_regexps_natives[] = {nullptr}; |
(...skipping 688 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3251 } | 3254 } |
3252 | 3255 |
3253 | 3256 |
3254 // Called when the top-level V8 mutex is destroyed. | 3257 // Called when the top-level V8 mutex is destroyed. |
3255 void Bootstrapper::FreeThreadResources() { | 3258 void Bootstrapper::FreeThreadResources() { |
3256 DCHECK(!IsActive()); | 3259 DCHECK(!IsActive()); |
3257 } | 3260 } |
3258 | 3261 |
3259 } // namespace internal | 3262 } // namespace internal |
3260 } // namespace v8 | 3263 } // namespace v8 |
OLD | NEW |