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 3213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3224 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_function_sent) | 3224 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_function_sent) |
3225 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_tailcalls) | 3225 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_tailcalls) |
3226 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_string_padding) | 3226 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_string_padding) |
3227 #ifdef V8_I18N_SUPPORT | 3227 #ifdef V8_I18N_SUPPORT |
3228 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(datetime_format_to_parts) | 3228 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(datetime_format_to_parts) |
3229 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(icu_case_mapping) | 3229 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(icu_case_mapping) |
3230 #endif | 3230 #endif |
3231 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_async_await) | 3231 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_async_await) |
3232 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_restrictive_generators) | 3232 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_restrictive_generators) |
3233 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_trailing_commas) | 3233 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_trailing_commas) |
| 3234 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_function_tostring) |
3234 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_class_fields) | 3235 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_class_fields) |
3235 | 3236 |
3236 void InstallPublicSymbol(Factory* factory, Handle<Context> native_context, | 3237 void InstallPublicSymbol(Factory* factory, Handle<Context> native_context, |
3237 const char* name, Handle<Symbol> value) { | 3238 const char* name, Handle<Symbol> value) { |
3238 Handle<JSGlobalObject> global( | 3239 Handle<JSGlobalObject> global( |
3239 JSGlobalObject::cast(native_context->global_object())); | 3240 JSGlobalObject::cast(native_context->global_object())); |
3240 Handle<String> symbol_string = factory->InternalizeUtf8String("Symbol"); | 3241 Handle<String> symbol_string = factory->InternalizeUtf8String("Symbol"); |
3241 Handle<JSObject> symbol = Handle<JSObject>::cast( | 3242 Handle<JSObject> symbol = Handle<JSObject>::cast( |
3242 JSObject::GetProperty(global, symbol_string).ToHandleChecked()); | 3243 JSObject::GetProperty(global, symbol_string).ToHandleChecked()); |
3243 Handle<String> name_string = factory->InternalizeUtf8String(name); | 3244 Handle<String> name_string = factory->InternalizeUtf8String(name); |
(...skipping 573 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3817 "native harmony-string-padding.js", nullptr}; | 3818 "native harmony-string-padding.js", nullptr}; |
3818 #ifdef V8_I18N_SUPPORT | 3819 #ifdef V8_I18N_SUPPORT |
3819 static const char* icu_case_mapping_natives[] = {"native icu-case-mapping.js", | 3820 static const char* icu_case_mapping_natives[] = {"native icu-case-mapping.js", |
3820 nullptr}; | 3821 nullptr}; |
3821 static const char* datetime_format_to_parts_natives[] = { | 3822 static const char* datetime_format_to_parts_natives[] = { |
3822 "native datetime-format-to-parts.js", nullptr}; | 3823 "native datetime-format-to-parts.js", nullptr}; |
3823 #endif | 3824 #endif |
3824 static const char* harmony_async_await_natives[] = {nullptr}; | 3825 static const char* harmony_async_await_natives[] = {nullptr}; |
3825 static const char* harmony_restrictive_generators_natives[] = {nullptr}; | 3826 static const char* harmony_restrictive_generators_natives[] = {nullptr}; |
3826 static const char* harmony_trailing_commas_natives[] = {nullptr}; | 3827 static const char* harmony_trailing_commas_natives[] = {nullptr}; |
| 3828 static const char* harmony_function_tostring_natives[] = {nullptr}; |
3827 static const char* harmony_class_fields_natives[] = {nullptr}; | 3829 static const char* harmony_class_fields_natives[] = {nullptr}; |
3828 | 3830 |
3829 for (int i = ExperimentalNatives::GetDebuggerCount(); | 3831 for (int i = ExperimentalNatives::GetDebuggerCount(); |
3830 i < ExperimentalNatives::GetBuiltinsCount(); i++) { | 3832 i < ExperimentalNatives::GetBuiltinsCount(); i++) { |
3831 #define INSTALL_EXPERIMENTAL_NATIVES(id, desc) \ | 3833 #define INSTALL_EXPERIMENTAL_NATIVES(id, desc) \ |
3832 if (FLAG_##id) { \ | 3834 if (FLAG_##id) { \ |
3833 for (size_t j = 0; id##_natives[j] != NULL; j++) { \ | 3835 for (size_t j = 0; id##_natives[j] != NULL; j++) { \ |
3834 Vector<const char> script_name = ExperimentalNatives::GetScriptName(i); \ | 3836 Vector<const char> script_name = ExperimentalNatives::GetScriptName(i); \ |
3835 if (strncmp(script_name.start(), id##_natives[j], \ | 3837 if (strncmp(script_name.start(), id##_natives[j], \ |
3836 script_name.length()) == 0) { \ | 3838 script_name.length()) == 0) { \ |
(...skipping 724 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4561 } | 4563 } |
4562 | 4564 |
4563 | 4565 |
4564 // Called when the top-level V8 mutex is destroyed. | 4566 // Called when the top-level V8 mutex is destroyed. |
4565 void Bootstrapper::FreeThreadResources() { | 4567 void Bootstrapper::FreeThreadResources() { |
4566 DCHECK(!IsActive()); | 4568 DCHECK(!IsActive()); |
4567 } | 4569 } |
4568 | 4570 |
4569 } // namespace internal | 4571 } // namespace internal |
4570 } // namespace v8 | 4572 } // namespace v8 |
OLD | NEW |