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/code-stubs.h" | 9 #include "src/code-stubs.h" |
10 #include "src/extensions/externalize-string-extension.h" | 10 #include "src/extensions/externalize-string-extension.h" |
(...skipping 2439 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2450 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(intl_extra) | 2450 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(intl_extra) |
2451 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_explicit_tailcalls) | 2451 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_explicit_tailcalls) |
2452 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_tailcalls) | 2452 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_tailcalls) |
2453 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_instanceof) | 2453 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_instanceof) |
2454 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_restrictive_declarations) | 2454 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_restrictive_declarations) |
2455 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_exponentiation_operator) | 2455 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_exponentiation_operator) |
2456 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_string_padding) | 2456 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_string_padding) |
2457 #ifdef V8_I18N_SUPPORT | 2457 #ifdef V8_I18N_SUPPORT |
2458 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(icu_case_mapping) | 2458 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(icu_case_mapping) |
2459 #endif | 2459 #endif |
| 2460 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_async_await) |
2460 | 2461 |
2461 void InstallPublicSymbol(Factory* factory, Handle<Context> native_context, | 2462 void InstallPublicSymbol(Factory* factory, Handle<Context> native_context, |
2462 const char* name, Handle<Symbol> value) { | 2463 const char* name, Handle<Symbol> value) { |
2463 Handle<JSGlobalObject> global( | 2464 Handle<JSGlobalObject> global( |
2464 JSGlobalObject::cast(native_context->global_object())); | 2465 JSGlobalObject::cast(native_context->global_object())); |
2465 Handle<String> symbol_string = factory->InternalizeUtf8String("Symbol"); | 2466 Handle<String> symbol_string = factory->InternalizeUtf8String("Symbol"); |
2466 Handle<JSObject> symbol = Handle<JSObject>::cast( | 2467 Handle<JSObject> symbol = Handle<JSObject>::cast( |
2467 JSObject::GetProperty(global, symbol_string).ToHandleChecked()); | 2468 JSObject::GetProperty(global, symbol_string).ToHandleChecked()); |
2468 Handle<String> name_string = factory->InternalizeUtf8String(name); | 2469 Handle<String> name_string = factory->InternalizeUtf8String(name); |
2469 PropertyAttributes attributes = | 2470 PropertyAttributes attributes = |
(...skipping 553 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3023 static const char* harmony_object_own_property_descriptors_natives[] = { | 3024 static const char* harmony_object_own_property_descriptors_natives[] = { |
3024 nullptr}; | 3025 nullptr}; |
3025 static const char* harmony_array_prototype_values_natives[] = {nullptr}; | 3026 static const char* harmony_array_prototype_values_natives[] = {nullptr}; |
3026 static const char* harmony_exponentiation_operator_natives[] = {nullptr}; | 3027 static const char* harmony_exponentiation_operator_natives[] = {nullptr}; |
3027 static const char* harmony_string_padding_natives[] = { | 3028 static const char* harmony_string_padding_natives[] = { |
3028 "native harmony-string-padding.js", nullptr}; | 3029 "native harmony-string-padding.js", nullptr}; |
3029 #ifdef V8_I18N_SUPPORT | 3030 #ifdef V8_I18N_SUPPORT |
3030 static const char* icu_case_mapping_natives[] = {"native icu-case-mapping.js", | 3031 static const char* icu_case_mapping_natives[] = {"native icu-case-mapping.js", |
3031 nullptr}; | 3032 nullptr}; |
3032 #endif | 3033 #endif |
| 3034 static const char* harmony_async_await_natives[] = {nullptr}; |
3033 | 3035 |
3034 for (int i = ExperimentalNatives::GetDebuggerCount(); | 3036 for (int i = ExperimentalNatives::GetDebuggerCount(); |
3035 i < ExperimentalNatives::GetBuiltinsCount(); i++) { | 3037 i < ExperimentalNatives::GetBuiltinsCount(); i++) { |
3036 #define INSTALL_EXPERIMENTAL_NATIVES(id, desc) \ | 3038 #define INSTALL_EXPERIMENTAL_NATIVES(id, desc) \ |
3037 if (FLAG_##id) { \ | 3039 if (FLAG_##id) { \ |
3038 for (size_t j = 0; id##_natives[j] != NULL; j++) { \ | 3040 for (size_t j = 0; id##_natives[j] != NULL; j++) { \ |
3039 Vector<const char> script_name = ExperimentalNatives::GetScriptName(i); \ | 3041 Vector<const char> script_name = ExperimentalNatives::GetScriptName(i); \ |
3040 if (strncmp(script_name.start(), id##_natives[j], \ | 3042 if (strncmp(script_name.start(), id##_natives[j], \ |
3041 script_name.length()) == 0) { \ | 3043 script_name.length()) == 0) { \ |
3042 if (!Bootstrapper::CompileExperimentalBuiltin(isolate(), i)) { \ | 3044 if (!Bootstrapper::CompileExperimentalBuiltin(isolate(), i)) { \ |
(...skipping 657 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3700 } | 3702 } |
3701 | 3703 |
3702 | 3704 |
3703 // Called when the top-level V8 mutex is destroyed. | 3705 // Called when the top-level V8 mutex is destroyed. |
3704 void Bootstrapper::FreeThreadResources() { | 3706 void Bootstrapper::FreeThreadResources() { |
3705 DCHECK(!IsActive()); | 3707 DCHECK(!IsActive()); |
3706 } | 3708 } |
3707 | 3709 |
3708 } // namespace internal | 3710 } // namespace internal |
3709 } // namespace v8 | 3711 } // namespace v8 |
OLD | NEW |