| 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 1826 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 1837 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_sloppy) | 1837 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_sloppy) | 
| 1838 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_sloppy_function) | 1838 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_sloppy_function) | 
| 1839 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_sloppy_let) | 1839 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_sloppy_let) | 
| 1840 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_rest_parameters) | 1840 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_rest_parameters) | 
| 1841 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_default_parameters) | 1841 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_default_parameters) | 
| 1842 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_spreadcalls) | 1842 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_spreadcalls) | 
| 1843 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_destructuring) | 1843 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_destructuring) | 
| 1844 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_object) | 1844 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_object) | 
| 1845 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_object_observe) | 1845 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_object_observe) | 
| 1846 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_spread_arrays) | 1846 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_spread_arrays) | 
| 1847 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_atomics) |  | 
| 1848 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_new_target) | 1847 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_new_target) | 
| 1849 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_concat_spreadable) | 1848 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_concat_spreadable) | 
| 1850 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_regexps) | 1849 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_regexps) | 
| 1851 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_unicode_regexps) | 1850 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_unicode_regexps) | 
| 1852 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_tostring) | 1851 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_tostring) | 
| 1853 | 1852 | 
| 1854 | 1853 | 
| 1855 void Genesis::InitializeGlobal_harmony_reflect() { | 1854 void Genesis::InitializeGlobal_harmony_reflect() { | 
| 1856   if (!FLAG_harmony_reflect) return; | 1855   if (!FLAG_harmony_reflect) return; | 
| 1857 | 1856 | 
| (...skipping 625 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 2483                                                   nullptr}; | 2482                                                   nullptr}; | 
| 2484   static const char* harmony_spreadcalls_natives[] = { | 2483   static const char* harmony_spreadcalls_natives[] = { | 
| 2485       "native harmony-spread.js", nullptr}; | 2484       "native harmony-spread.js", nullptr}; | 
| 2486   static const char* harmony_destructuring_natives[] = {nullptr}; | 2485   static const char* harmony_destructuring_natives[] = {nullptr}; | 
| 2487   static const char* harmony_object_natives[] = {"native harmony-object.js", | 2486   static const char* harmony_object_natives[] = {"native harmony-object.js", | 
| 2488                                                  NULL}; | 2487                                                  NULL}; | 
| 2489   static const char* harmony_object_observe_natives[] = { | 2488   static const char* harmony_object_observe_natives[] = { | 
| 2490       "native harmony-object-observe.js", nullptr}; | 2489       "native harmony-object-observe.js", nullptr}; | 
| 2491   static const char* harmony_spread_arrays_natives[] = {nullptr}; | 2490   static const char* harmony_spread_arrays_natives[] = {nullptr}; | 
| 2492   static const char* harmony_sharedarraybuffer_natives[] = { | 2491   static const char* harmony_sharedarraybuffer_natives[] = { | 
| 2493       "native harmony-sharedarraybuffer.js", NULL}; | 2492       "native harmony-sharedarraybuffer.js", "native harmony-atomics.js", NULL}; | 
| 2494   static const char* harmony_atomics_natives[] = {"native harmony-atomics.js", |  | 
| 2495                                                   nullptr}; |  | 
| 2496   static const char* harmony_new_target_natives[] = {nullptr}; | 2493   static const char* harmony_new_target_natives[] = {nullptr}; | 
| 2497   static const char* harmony_concat_spreadable_natives[] = { | 2494   static const char* harmony_concat_spreadable_natives[] = { | 
| 2498       "native harmony-concat-spreadable.js", nullptr}; | 2495       "native harmony-concat-spreadable.js", nullptr}; | 
| 2499   static const char* harmony_simd_natives[] = {"native harmony-simd.js", | 2496   static const char* harmony_simd_natives[] = {"native harmony-simd.js", | 
| 2500                                                nullptr}; | 2497                                                nullptr}; | 
| 2501 | 2498 | 
| 2502   for (int i = ExperimentalNatives::GetDebuggerCount(); | 2499   for (int i = ExperimentalNatives::GetDebuggerCount(); | 
| 2503        i < ExperimentalNatives::GetBuiltinsCount(); i++) { | 2500        i < ExperimentalNatives::GetBuiltinsCount(); i++) { | 
| 2504 #define INSTALL_EXPERIMENTAL_NATIVES(id, desc)                                \ | 2501 #define INSTALL_EXPERIMENTAL_NATIVES(id, desc)                                \ | 
| 2505   if (FLAG_##id) {                                                            \ | 2502   if (FLAG_##id) {                                                            \ | 
| (...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 2602 | 2599 | 
| 2603   for (const BuiltinFunctionIds& builtin : builtins) { | 2600   for (const BuiltinFunctionIds& builtin : builtins) { | 
| 2604     Handle<JSObject> holder = | 2601     Handle<JSObject> holder = | 
| 2605         ResolveBuiltinIdHolder(native_context(), builtin.holder_expr); | 2602         ResolveBuiltinIdHolder(native_context(), builtin.holder_expr); | 
| 2606     InstallBuiltinFunctionId(holder, builtin.fun_name, builtin.id); | 2603     InstallBuiltinFunctionId(holder, builtin.fun_name, builtin.id); | 
| 2607   } | 2604   } | 
| 2608 } | 2605 } | 
| 2609 | 2606 | 
| 2610 | 2607 | 
| 2611 void Genesis::InstallExperimentalBuiltinFunctionIds() { | 2608 void Genesis::InstallExperimentalBuiltinFunctionIds() { | 
| 2612   if (FLAG_harmony_atomics) { | 2609   if (FLAG_harmony_sharedarraybuffer) { | 
| 2613     struct BuiltinFunctionIds { | 2610     struct BuiltinFunctionIds { | 
| 2614       const char* holder_expr; | 2611       const char* holder_expr; | 
| 2615       const char* fun_name; | 2612       const char* fun_name; | 
| 2616       BuiltinFunctionId id; | 2613       BuiltinFunctionId id; | 
| 2617     }; | 2614     }; | 
| 2618 | 2615 | 
| 2619     const BuiltinFunctionIds atomic_builtins[] = { | 2616     const BuiltinFunctionIds atomic_builtins[] = { | 
| 2620         ATOMIC_FUNCTIONS_WITH_ID_LIST(INSTALL_BUILTIN_ID)}; | 2617         ATOMIC_FUNCTIONS_WITH_ID_LIST(INSTALL_BUILTIN_ID)}; | 
| 2621 | 2618 | 
| 2622     for (const BuiltinFunctionIds& builtin : atomic_builtins) { | 2619     for (const BuiltinFunctionIds& builtin : atomic_builtins) { | 
| (...skipping 567 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 3190 } | 3187 } | 
| 3191 | 3188 | 
| 3192 | 3189 | 
| 3193 // Called when the top-level V8 mutex is destroyed. | 3190 // Called when the top-level V8 mutex is destroyed. | 
| 3194 void Bootstrapper::FreeThreadResources() { | 3191 void Bootstrapper::FreeThreadResources() { | 
| 3195   DCHECK(!IsActive()); | 3192   DCHECK(!IsActive()); | 
| 3196 } | 3193 } | 
| 3197 | 3194 | 
| 3198 }  // namespace internal | 3195 }  // namespace internal | 
| 3199 }  // namespace v8 | 3196 }  // namespace v8 | 
| OLD | NEW | 
|---|