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 3443 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3454 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_regexp_lookbehind) | 3454 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_regexp_lookbehind) |
3455 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_regexp_named_captures) | 3455 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_regexp_named_captures) |
3456 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_regexp_property) | 3456 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_regexp_property) |
3457 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_function_sent) | 3457 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_function_sent) |
3458 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_tailcalls) | 3458 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_tailcalls) |
3459 #ifdef V8_I18N_SUPPORT | 3459 #ifdef V8_I18N_SUPPORT |
3460 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(datetime_format_to_parts) | 3460 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(datetime_format_to_parts) |
3461 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(icu_case_mapping) | 3461 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(icu_case_mapping) |
3462 #endif | 3462 #endif |
3463 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_restrictive_generators) | 3463 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_restrictive_generators) |
3464 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_trailing_commas) | |
3465 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_class_fields) | 3464 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_class_fields) |
3466 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_object_spread) | 3465 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_object_spread) |
3467 | 3466 |
3468 void InstallPublicSymbol(Factory* factory, Handle<Context> native_context, | 3467 void InstallPublicSymbol(Factory* factory, Handle<Context> native_context, |
3469 const char* name, Handle<Symbol> value) { | 3468 const char* name, Handle<Symbol> value) { |
3470 Handle<JSGlobalObject> global( | 3469 Handle<JSGlobalObject> global( |
3471 JSGlobalObject::cast(native_context->global_object())); | 3470 JSGlobalObject::cast(native_context->global_object())); |
3472 Handle<String> symbol_string = factory->InternalizeUtf8String("Symbol"); | 3471 Handle<String> symbol_string = factory->InternalizeUtf8String("Symbol"); |
3473 Handle<JSObject> symbol = Handle<JSObject>::cast( | 3472 Handle<JSObject> symbol = Handle<JSObject>::cast( |
3474 JSObject::GetProperty(global, symbol_string).ToHandleChecked()); | 3473 JSObject::GetProperty(global, symbol_string).ToHandleChecked()); |
(...skipping 540 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4015 static const char* harmony_regexp_property_natives[] = {nullptr}; | 4014 static const char* harmony_regexp_property_natives[] = {nullptr}; |
4016 static const char* harmony_function_sent_natives[] = {nullptr}; | 4015 static const char* harmony_function_sent_natives[] = {nullptr}; |
4017 static const char* harmony_array_prototype_values_natives[] = {nullptr}; | 4016 static const char* harmony_array_prototype_values_natives[] = {nullptr}; |
4018 #ifdef V8_I18N_SUPPORT | 4017 #ifdef V8_I18N_SUPPORT |
4019 static const char* icu_case_mapping_natives[] = {"native icu-case-mapping.js", | 4018 static const char* icu_case_mapping_natives[] = {"native icu-case-mapping.js", |
4020 nullptr}; | 4019 nullptr}; |
4021 static const char* datetime_format_to_parts_natives[] = { | 4020 static const char* datetime_format_to_parts_natives[] = { |
4022 "native datetime-format-to-parts.js", nullptr}; | 4021 "native datetime-format-to-parts.js", nullptr}; |
4023 #endif | 4022 #endif |
4024 static const char* harmony_restrictive_generators_natives[] = {nullptr}; | 4023 static const char* harmony_restrictive_generators_natives[] = {nullptr}; |
4025 static const char* harmony_trailing_commas_natives[] = {nullptr}; | |
4026 static const char* harmony_class_fields_natives[] = {nullptr}; | 4024 static const char* harmony_class_fields_natives[] = {nullptr}; |
4027 static const char* harmony_object_spread_natives[] = {nullptr}; | 4025 static const char* harmony_object_spread_natives[] = {nullptr}; |
4028 | 4026 |
4029 for (int i = ExperimentalNatives::GetDebuggerCount(); | 4027 for (int i = ExperimentalNatives::GetDebuggerCount(); |
4030 i < ExperimentalNatives::GetBuiltinsCount(); i++) { | 4028 i < ExperimentalNatives::GetBuiltinsCount(); i++) { |
4031 #define INSTALL_EXPERIMENTAL_NATIVES(id, desc) \ | 4029 #define INSTALL_EXPERIMENTAL_NATIVES(id, desc) \ |
4032 if (FLAG_##id) { \ | 4030 if (FLAG_##id) { \ |
4033 for (size_t j = 0; id##_natives[j] != NULL; j++) { \ | 4031 for (size_t j = 0; id##_natives[j] != NULL; j++) { \ |
4034 Vector<const char> script_name = ExperimentalNatives::GetScriptName(i); \ | 4032 Vector<const char> script_name = ExperimentalNatives::GetScriptName(i); \ |
4035 if (strncmp(script_name.start(), id##_natives[j], \ | 4033 if (strncmp(script_name.start(), id##_natives[j], \ |
(...skipping 726 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4762 } | 4760 } |
4763 | 4761 |
4764 | 4762 |
4765 // Called when the top-level V8 mutex is destroyed. | 4763 // Called when the top-level V8 mutex is destroyed. |
4766 void Bootstrapper::FreeThreadResources() { | 4764 void Bootstrapper::FreeThreadResources() { |
4767 DCHECK(!IsActive()); | 4765 DCHECK(!IsActive()); |
4768 } | 4766 } |
4769 | 4767 |
4770 } // namespace internal | 4768 } // namespace internal |
4771 } // namespace v8 | 4769 } // namespace v8 |
OLD | NEW |