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 1825 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1836 #define EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(id) \ | 1836 #define EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(id) \ |
1837 void Genesis::InstallNativeFunctions_##id() {} | 1837 void Genesis::InstallNativeFunctions_##id() {} |
1838 | 1838 |
1839 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_modules) | 1839 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_modules) |
1840 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_array_includes) | 1840 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_array_includes) |
1841 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_regexps) | 1841 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_regexps) |
1842 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_arrow_functions) | 1842 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_arrow_functions) |
1843 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_tostring) | 1843 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_tostring) |
1844 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_sloppy) | 1844 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_sloppy) |
1845 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_sloppy_let) | 1845 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_sloppy_let) |
1846 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_unicode) | |
1847 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_unicode_regexps) | 1846 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_unicode_regexps) |
1848 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_computed_property_names) | 1847 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_computed_property_names) |
1849 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_rest_parameters) | 1848 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_rest_parameters) |
1850 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_reflect) | 1849 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_reflect) |
1851 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_spreadcalls) | 1850 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_spreadcalls) |
1852 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_destructuring) | 1851 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_destructuring) |
1853 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_object) | 1852 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_object) |
1854 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_object_observe) | 1853 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_object_observe) |
1855 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_spread_arrays) | 1854 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_spread_arrays) |
1856 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_sharedarraybuffer) | 1855 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_sharedarraybuffer) |
(...skipping 17 matching lines...) Expand all Loading... |
1874 | 1873 |
1875 #define EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(id) \ | 1874 #define EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(id) \ |
1876 void Genesis::InitializeGlobal_##id() {} | 1875 void Genesis::InitializeGlobal_##id() {} |
1877 | 1876 |
1878 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_modules) | 1877 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_modules) |
1879 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_array_includes) | 1878 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_array_includes) |
1880 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_arrow_functions) | 1879 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_arrow_functions) |
1881 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_proxies) | 1880 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_proxies) |
1882 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_sloppy) | 1881 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_sloppy) |
1883 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_sloppy_let) | 1882 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_sloppy_let) |
1884 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_unicode) | |
1885 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_computed_property_names) | 1883 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_computed_property_names) |
1886 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_rest_parameters) | 1884 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_rest_parameters) |
1887 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_spreadcalls) | 1885 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_spreadcalls) |
1888 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_destructuring) | 1886 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_destructuring) |
1889 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_object) | 1887 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_object) |
1890 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_object_observe) | 1888 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_object_observe) |
1891 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_spread_arrays) | 1889 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_spread_arrays) |
1892 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_atomics) | 1890 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_atomics) |
1893 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_new_target) | 1891 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_new_target) |
1894 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_concat_spreadable) | 1892 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_concat_spreadable) |
(...skipping 662 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2557 "native harmony-array-includes.js", nullptr}; | 2555 "native harmony-array-includes.js", nullptr}; |
2558 static const char* harmony_proxies_natives[] = {"native proxy.js", nullptr}; | 2556 static const char* harmony_proxies_natives[] = {"native proxy.js", nullptr}; |
2559 static const char* harmony_modules_natives[] = {nullptr}; | 2557 static const char* harmony_modules_natives[] = {nullptr}; |
2560 static const char* harmony_regexps_natives[] = {"native harmony-regexp.js", | 2558 static const char* harmony_regexps_natives[] = {"native harmony-regexp.js", |
2561 nullptr}; | 2559 nullptr}; |
2562 static const char* harmony_arrow_functions_natives[] = {nullptr}; | 2560 static const char* harmony_arrow_functions_natives[] = {nullptr}; |
2563 static const char* harmony_tostring_natives[] = {"native harmony-tostring.js", | 2561 static const char* harmony_tostring_natives[] = {"native harmony-tostring.js", |
2564 nullptr}; | 2562 nullptr}; |
2565 static const char* harmony_sloppy_natives[] = {nullptr}; | 2563 static const char* harmony_sloppy_natives[] = {nullptr}; |
2566 static const char* harmony_sloppy_let_natives[] = {nullptr}; | 2564 static const char* harmony_sloppy_let_natives[] = {nullptr}; |
2567 static const char* harmony_unicode_natives[] = {nullptr}; | |
2568 static const char* harmony_unicode_regexps_natives[] = {nullptr}; | 2565 static const char* harmony_unicode_regexps_natives[] = {nullptr}; |
2569 static const char* harmony_computed_property_names_natives[] = {nullptr}; | 2566 static const char* harmony_computed_property_names_natives[] = {nullptr}; |
2570 static const char* harmony_rest_parameters_natives[] = {nullptr}; | 2567 static const char* harmony_rest_parameters_natives[] = {nullptr}; |
2571 static const char* harmony_reflect_natives[] = {"native harmony-reflect.js", | 2568 static const char* harmony_reflect_natives[] = {"native harmony-reflect.js", |
2572 nullptr}; | 2569 nullptr}; |
2573 static const char* harmony_spreadcalls_natives[] = { | 2570 static const char* harmony_spreadcalls_natives[] = { |
2574 "native harmony-spread.js", nullptr}; | 2571 "native harmony-spread.js", nullptr}; |
2575 static const char* harmony_destructuring_natives[] = {nullptr}; | 2572 static const char* harmony_destructuring_natives[] = {nullptr}; |
2576 static const char* harmony_object_natives[] = {"native harmony-object.js", | 2573 static const char* harmony_object_natives[] = {"native harmony-object.js", |
2577 NULL}; | 2574 NULL}; |
(...skipping 680 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3258 } | 3255 } |
3259 | 3256 |
3260 | 3257 |
3261 // Called when the top-level V8 mutex is destroyed. | 3258 // Called when the top-level V8 mutex is destroyed. |
3262 void Bootstrapper::FreeThreadResources() { | 3259 void Bootstrapper::FreeThreadResources() { |
3263 DCHECK(!IsActive()); | 3260 DCHECK(!IsActive()); |
3264 } | 3261 } |
3265 | 3262 |
3266 } // namespace internal | 3263 } // namespace internal |
3267 } // namespace v8 | 3264 } // namespace v8 |
OLD | NEW |