| 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/ieee754.h" |     9 #include "src/base/ieee754.h" | 
|    10 #include "src/code-stubs.h" |    10 #include "src/code-stubs.h" | 
| (...skipping 3504 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  3515   void Genesis::InitializeGlobal_##id() {} |  3515   void Genesis::InitializeGlobal_##id() {} | 
|  3516  |  3516  | 
|  3517 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_do_expressions) |  3517 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_do_expressions) | 
|  3518 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_regexp_lookbehind) |  3518 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_regexp_lookbehind) | 
|  3519 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_regexp_named_captures) |  3519 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_regexp_named_captures) | 
|  3520 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_regexp_property) |  3520 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_regexp_property) | 
|  3521 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_function_sent) |  3521 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_function_sent) | 
|  3522 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_tailcalls) |  3522 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_tailcalls) | 
|  3523 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_restrictive_generators) |  3523 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_restrictive_generators) | 
|  3524 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_trailing_commas) |  3524 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_trailing_commas) | 
 |  3525 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_function_tostring) | 
|  3525 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_class_fields) |  3526 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_class_fields) | 
|  3526 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_object_rest_spread) |  3527 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_object_rest_spread) | 
|  3527 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_dynamic_import) |  3528 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_dynamic_import) | 
|  3528  |  3529  | 
|  3529 void InstallPublicSymbol(Factory* factory, Handle<Context> native_context, |  3530 void InstallPublicSymbol(Factory* factory, Handle<Context> native_context, | 
|  3530                          const char* name, Handle<Symbol> value) { |  3531                          const char* name, Handle<Symbol> value) { | 
|  3531   Handle<JSGlobalObject> global( |  3532   Handle<JSGlobalObject> global( | 
|  3532       JSGlobalObject::cast(native_context->global_object())); |  3533       JSGlobalObject::cast(native_context->global_object())); | 
|  3533   Handle<String> symbol_string = factory->InternalizeUtf8String("Symbol"); |  3534   Handle<String> symbol_string = factory->InternalizeUtf8String("Symbol"); | 
|  3534   Handle<JSObject> symbol = Handle<JSObject>::cast( |  3535   Handle<JSObject> symbol = Handle<JSObject>::cast( | 
| (...skipping 605 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  4140   static const char* harmony_regexp_named_captures_natives[] = {nullptr}; |  4141   static const char* harmony_regexp_named_captures_natives[] = {nullptr}; | 
|  4141   static const char* harmony_regexp_property_natives[] = {nullptr}; |  4142   static const char* harmony_regexp_property_natives[] = {nullptr}; | 
|  4142   static const char* harmony_function_sent_natives[] = {nullptr}; |  4143   static const char* harmony_function_sent_natives[] = {nullptr}; | 
|  4143   static const char* harmony_array_prototype_values_natives[] = {nullptr}; |  4144   static const char* harmony_array_prototype_values_natives[] = {nullptr}; | 
|  4144 #ifdef V8_I18N_SUPPORT |  4145 #ifdef V8_I18N_SUPPORT | 
|  4145   static const char* icu_case_mapping_natives[] = {nullptr}; |  4146   static const char* icu_case_mapping_natives[] = {nullptr}; | 
|  4146   static const char* datetime_format_to_parts_natives[] = {nullptr}; |  4147   static const char* datetime_format_to_parts_natives[] = {nullptr}; | 
|  4147 #endif |  4148 #endif | 
|  4148   static const char* harmony_restrictive_generators_natives[] = {nullptr}; |  4149   static const char* harmony_restrictive_generators_natives[] = {nullptr}; | 
|  4149   static const char* harmony_trailing_commas_natives[] = {nullptr}; |  4150   static const char* harmony_trailing_commas_natives[] = {nullptr}; | 
 |  4151   static const char* harmony_function_tostring_natives[] = {nullptr}; | 
|  4150   static const char* harmony_class_fields_natives[] = {nullptr}; |  4152   static const char* harmony_class_fields_natives[] = {nullptr}; | 
|  4151   static const char* harmony_object_rest_spread_natives[] = {nullptr}; |  4153   static const char* harmony_object_rest_spread_natives[] = {nullptr}; | 
|  4152   static const char* harmony_async_iteration_natives[] = {nullptr}; |  4154   static const char* harmony_async_iteration_natives[] = {nullptr}; | 
|  4153   static const char* harmony_dynamic_import_natives[] = {nullptr}; |  4155   static const char* harmony_dynamic_import_natives[] = {nullptr}; | 
|  4154  |  4156  | 
|  4155   for (int i = ExperimentalNatives::GetDebuggerCount(); |  4157   for (int i = ExperimentalNatives::GetDebuggerCount(); | 
|  4156        i < ExperimentalNatives::GetBuiltinsCount(); i++) { |  4158        i < ExperimentalNatives::GetBuiltinsCount(); i++) { | 
|  4157 #define INSTALL_EXPERIMENTAL_NATIVES(id, desc)                                \ |  4159 #define INSTALL_EXPERIMENTAL_NATIVES(id, desc)                                \ | 
|  4158   if (FLAG_##id) {                                                            \ |  4160   if (FLAG_##id) {                                                            \ | 
|  4159     for (size_t j = 0; id##_natives[j] != NULL; j++) {                        \ |  4161     for (size_t j = 0; id##_natives[j] != NULL; j++) {                        \ | 
| (...skipping 739 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  4899 } |  4901 } | 
|  4900  |  4902  | 
|  4901  |  4903  | 
|  4902 // Called when the top-level V8 mutex is destroyed. |  4904 // Called when the top-level V8 mutex is destroyed. | 
|  4903 void Bootstrapper::FreeThreadResources() { |  4905 void Bootstrapper::FreeThreadResources() { | 
|  4904   DCHECK(!IsActive()); |  4906   DCHECK(!IsActive()); | 
|  4905 } |  4907 } | 
|  4906  |  4908  | 
|  4907 }  // namespace internal |  4909 }  // namespace internal | 
|  4908 }  // namespace v8 |  4910 }  // namespace v8 | 
| OLD | NEW |