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 1833 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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) | 1846 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_unicode) |
1847 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_unicode_regexps) | 1847 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_unicode_regexps) |
1848 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_computed_property_names) | 1848 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_computed_property_names) |
1849 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_rest_parameters) | 1849 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_rest_parameters) |
1850 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_reflect) | 1850 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_reflect) |
1851 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_spreadcalls) | 1851 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_spreadcalls) |
1852 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_destructuring) | 1852 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_destructuring) |
1853 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_object) | 1853 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_object) |
| 1854 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_object_observe) |
1854 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_spread_arrays) | 1855 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_spread_arrays) |
1855 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_sharedarraybuffer) | 1856 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_sharedarraybuffer) |
1856 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_atomics) | 1857 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_atomics) |
1857 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_new_target) | 1858 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_new_target) |
1858 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_concat_spreadable) | 1859 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_concat_spreadable) |
1859 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_simd) | 1860 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_simd) |
1860 | 1861 |
1861 | 1862 |
1862 void Genesis::InstallNativeFunctions_harmony_proxies() { | 1863 void Genesis::InstallNativeFunctions_harmony_proxies() { |
1863 if (FLAG_harmony_proxies) { | 1864 if (FLAG_harmony_proxies) { |
(...skipping 15 matching lines...) Expand all Loading... |
1879 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_arrow_functions) | 1880 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_arrow_functions) |
1880 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_proxies) | 1881 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_proxies) |
1881 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_sloppy) | 1882 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_sloppy) |
1882 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_sloppy_let) | 1883 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_sloppy_let) |
1883 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_unicode) | 1884 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_unicode) |
1884 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_computed_property_names) | 1885 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_computed_property_names) |
1885 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_rest_parameters) | 1886 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_rest_parameters) |
1886 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_spreadcalls) | 1887 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_spreadcalls) |
1887 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_destructuring) | 1888 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_destructuring) |
1888 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_object) | 1889 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_object) |
| 1890 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_object_observe) |
1889 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_spread_arrays) | 1891 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_spread_arrays) |
1890 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_atomics) | 1892 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_atomics) |
1891 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_new_target) | 1893 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_new_target) |
1892 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_concat_spreadable) | 1894 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_concat_spreadable) |
1893 | 1895 |
1894 void Genesis::InitializeGlobal_harmony_regexps() { | 1896 void Genesis::InitializeGlobal_harmony_regexps() { |
1895 Handle<JSObject> builtins(native_context()->builtins()); | 1897 Handle<JSObject> builtins(native_context()->builtins()); |
1896 | 1898 |
1897 Handle<HeapObject> flag(FLAG_harmony_regexps ? heap()->true_value() | 1899 Handle<HeapObject> flag(FLAG_harmony_regexps ? heap()->true_value() |
1898 : heap()->false_value()); | 1900 : heap()->false_value()); |
(...skipping 667 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2566 static const char* harmony_unicode_regexps_natives[] = {nullptr}; | 2568 static const char* harmony_unicode_regexps_natives[] = {nullptr}; |
2567 static const char* harmony_computed_property_names_natives[] = {nullptr}; | 2569 static const char* harmony_computed_property_names_natives[] = {nullptr}; |
2568 static const char* harmony_rest_parameters_natives[] = {nullptr}; | 2570 static const char* harmony_rest_parameters_natives[] = {nullptr}; |
2569 static const char* harmony_reflect_natives[] = {"native harmony-reflect.js", | 2571 static const char* harmony_reflect_natives[] = {"native harmony-reflect.js", |
2570 nullptr}; | 2572 nullptr}; |
2571 static const char* harmony_spreadcalls_natives[] = { | 2573 static const char* harmony_spreadcalls_natives[] = { |
2572 "native harmony-spread.js", nullptr}; | 2574 "native harmony-spread.js", nullptr}; |
2573 static const char* harmony_destructuring_natives[] = {nullptr}; | 2575 static const char* harmony_destructuring_natives[] = {nullptr}; |
2574 static const char* harmony_object_natives[] = {"native harmony-object.js", | 2576 static const char* harmony_object_natives[] = {"native harmony-object.js", |
2575 NULL}; | 2577 NULL}; |
| 2578 static const char* harmony_object_observe_natives[] = { |
| 2579 "native harmony-object-observe.js", nullptr}; |
2576 static const char* harmony_spread_arrays_natives[] = {nullptr}; | 2580 static const char* harmony_spread_arrays_natives[] = {nullptr}; |
2577 static const char* harmony_sharedarraybuffer_natives[] = { | 2581 static const char* harmony_sharedarraybuffer_natives[] = { |
2578 "native harmony-sharedarraybuffer.js", NULL}; | 2582 "native harmony-sharedarraybuffer.js", NULL}; |
2579 static const char* harmony_atomics_natives[] = {"native harmony-atomics.js", | 2583 static const char* harmony_atomics_natives[] = {"native harmony-atomics.js", |
2580 nullptr}; | 2584 nullptr}; |
2581 static const char* harmony_new_target_natives[] = {nullptr}; | 2585 static const char* harmony_new_target_natives[] = {nullptr}; |
2582 static const char* harmony_concat_spreadable_natives[] = { | 2586 static const char* harmony_concat_spreadable_natives[] = { |
2583 "native harmony-concat-spreadable.js", nullptr}; | 2587 "native harmony-concat-spreadable.js", nullptr}; |
2584 static const char* harmony_simd_natives[] = {"native harmony-simd.js", | 2588 static const char* harmony_simd_natives[] = {"native harmony-simd.js", |
2585 nullptr}; | 2589 nullptr}; |
(...skipping 668 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3254 } | 3258 } |
3255 | 3259 |
3256 | 3260 |
3257 // Called when the top-level V8 mutex is destroyed. | 3261 // Called when the top-level V8 mutex is destroyed. |
3258 void Bootstrapper::FreeThreadResources() { | 3262 void Bootstrapper::FreeThreadResources() { |
3259 DCHECK(!IsActive()); | 3263 DCHECK(!IsActive()); |
3260 } | 3264 } |
3261 | 3265 |
3262 } // namespace internal | 3266 } // namespace internal |
3263 } // namespace v8 | 3267 } // namespace v8 |
OLD | NEW |