| 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 1846 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  1857 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_default_parameters) |  1857 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_default_parameters) | 
|  1858 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_spreadcalls) |  1858 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_spreadcalls) | 
|  1859 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_destructuring) |  1859 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_destructuring) | 
|  1860 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_object_observe) |  1860 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_object_observe) | 
|  1861 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_spread_arrays) |  1861 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_spread_arrays) | 
|  1862 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_new_target) |  1862 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_new_target) | 
|  1863 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_concat_spreadable) |  1863 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_concat_spreadable) | 
|  1864 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_regexps) |  1864 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_regexps) | 
|  1865 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_unicode_regexps) |  1865 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_unicode_regexps) | 
|  1866 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_tostring) |  1866 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_tostring) | 
 |  1867 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_completion) | 
|  1867  |  1868  | 
|  1868  |  1869  | 
|  1869 void Genesis::InitializeGlobal_harmony_tolength() { |  1870 void Genesis::InitializeGlobal_harmony_tolength() { | 
|  1870   Handle<JSObject> builtins(native_context()->builtins()); |  1871   Handle<JSObject> builtins(native_context()->builtins()); | 
|  1871   Handle<Object> flag(factory()->ToBoolean(FLAG_harmony_tolength)); |  1872   Handle<Object> flag(factory()->ToBoolean(FLAG_harmony_tolength)); | 
|  1872   Runtime::SetObjectProperty(isolate(), builtins, |  1873   Runtime::SetObjectProperty(isolate(), builtins, | 
|  1873                              factory()->harmony_tolength_string(), flag, |  1874                              factory()->harmony_tolength_string(), flag, | 
|  1874                              STRICT).Assert(); |  1875                              STRICT).Assert(); | 
|  1875 } |  1876 } | 
|  1876  |  1877  | 
| (...skipping 688 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  2565       "native harmony-object-observe.js", nullptr}; |  2566       "native harmony-object-observe.js", nullptr}; | 
|  2566   static const char* harmony_spread_arrays_natives[] = {nullptr}; |  2567   static const char* harmony_spread_arrays_natives[] = {nullptr}; | 
|  2567   static const char* harmony_sharedarraybuffer_natives[] = { |  2568   static const char* harmony_sharedarraybuffer_natives[] = { | 
|  2568       "native harmony-sharedarraybuffer.js", "native harmony-atomics.js", NULL}; |  2569       "native harmony-sharedarraybuffer.js", "native harmony-atomics.js", NULL}; | 
|  2569   static const char* harmony_new_target_natives[] = {nullptr}; |  2570   static const char* harmony_new_target_natives[] = {nullptr}; | 
|  2570   static const char* harmony_concat_spreadable_natives[] = { |  2571   static const char* harmony_concat_spreadable_natives[] = { | 
|  2571       "native harmony-concat-spreadable.js", nullptr}; |  2572       "native harmony-concat-spreadable.js", nullptr}; | 
|  2572   static const char* harmony_simd_natives[] = {"native harmony-simd.js", |  2573   static const char* harmony_simd_natives[] = {"native harmony-simd.js", | 
|  2573                                                nullptr}; |  2574                                                nullptr}; | 
|  2574   static const char* harmony_tolength_natives[] = {nullptr}; |  2575   static const char* harmony_tolength_natives[] = {nullptr}; | 
 |  2576   static const char* harmony_completion_natives[] = {nullptr}; | 
|  2575  |  2577  | 
|  2576   for (int i = ExperimentalNatives::GetDebuggerCount(); |  2578   for (int i = ExperimentalNatives::GetDebuggerCount(); | 
|  2577        i < ExperimentalNatives::GetBuiltinsCount(); i++) { |  2579        i < ExperimentalNatives::GetBuiltinsCount(); i++) { | 
|  2578 #define INSTALL_EXPERIMENTAL_NATIVES(id, desc)                                \ |  2580 #define INSTALL_EXPERIMENTAL_NATIVES(id, desc)                                \ | 
|  2579   if (FLAG_##id) {                                                            \ |  2581   if (FLAG_##id) {                                                            \ | 
|  2580     for (size_t j = 0; id##_natives[j] != NULL; j++) {                        \ |  2582     for (size_t j = 0; id##_natives[j] != NULL; j++) {                        \ | 
|  2581       Vector<const char> script_name = ExperimentalNatives::GetScriptName(i); \ |  2583       Vector<const char> script_name = ExperimentalNatives::GetScriptName(i); \ | 
|  2582       if (strncmp(script_name.start(), id##_natives[j],                       \ |  2584       if (strncmp(script_name.start(), id##_natives[j],                       \ | 
|  2583                   script_name.length()) == 0) {                               \ |  2585                   script_name.length()) == 0) {                               \ | 
|  2584         if (!Bootstrapper::CompileExperimentalBuiltin(isolate(), i)) {        \ |  2586         if (!Bootstrapper::CompileExperimentalBuiltin(isolate(), i)) {        \ | 
| (...skipping 679 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  3264 } |  3266 } | 
|  3265  |  3267  | 
|  3266  |  3268  | 
|  3267 // Called when the top-level V8 mutex is destroyed. |  3269 // Called when the top-level V8 mutex is destroyed. | 
|  3268 void Bootstrapper::FreeThreadResources() { |  3270 void Bootstrapper::FreeThreadResources() { | 
|  3269   DCHECK(!IsActive()); |  3271   DCHECK(!IsActive()); | 
|  3270 } |  3272 } | 
|  3271  |  3273  | 
|  3272 }  // namespace internal |  3274 }  // namespace internal | 
|  3273 }  // namespace v8 |  3275 }  // namespace v8 | 
| OLD | NEW |