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 2259 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2270 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_do_expressions) | 2270 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_do_expressions) |
2271 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_iterator_close) | 2271 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_iterator_close) |
2272 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_regexp_lookbehind) | 2272 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_regexp_lookbehind) |
2273 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_regexp_property) | 2273 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_regexp_property) |
2274 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_function_name) | 2274 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_function_name) |
2275 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_function_sent) | 2275 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_function_sent) |
2276 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(promise_extra) | 2276 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(promise_extra) |
2277 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_tailcalls) | 2277 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_tailcalls) |
2278 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_instanceof) | 2278 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_instanceof) |
2279 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_restrictive_declarations) | 2279 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_restrictive_declarations) |
| 2280 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_exponentiation_operator) |
2280 | 2281 |
2281 void InstallPublicSymbol(Factory* factory, Handle<Context> native_context, | 2282 void InstallPublicSymbol(Factory* factory, Handle<Context> native_context, |
2282 const char* name, Handle<Symbol> value) { | 2283 const char* name, Handle<Symbol> value) { |
2283 Handle<JSGlobalObject> global( | 2284 Handle<JSGlobalObject> global( |
2284 JSGlobalObject::cast(native_context->global_object())); | 2285 JSGlobalObject::cast(native_context->global_object())); |
2285 Handle<String> symbol_string = factory->InternalizeUtf8String("Symbol"); | 2286 Handle<String> symbol_string = factory->InternalizeUtf8String("Symbol"); |
2286 Handle<JSObject> symbol = Handle<JSObject>::cast( | 2287 Handle<JSObject> symbol = Handle<JSObject>::cast( |
2287 JSObject::GetProperty(global, symbol_string).ToHandleChecked()); | 2288 JSObject::GetProperty(global, symbol_string).ToHandleChecked()); |
2288 Handle<String> name_string = factory->InternalizeUtf8String(name); | 2289 Handle<String> name_string = factory->InternalizeUtf8String(name); |
2289 PropertyAttributes attributes = | 2290 PropertyAttributes attributes = |
(...skipping 683 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2973 static const char* harmony_restrictive_declarations_natives[] = {nullptr}; | 2974 static const char* harmony_restrictive_declarations_natives[] = {nullptr}; |
2974 static const char* harmony_regexp_property_natives[] = {nullptr}; | 2975 static const char* harmony_regexp_property_natives[] = {nullptr}; |
2975 static const char* harmony_function_name_natives[] = {nullptr}; | 2976 static const char* harmony_function_name_natives[] = {nullptr}; |
2976 static const char* harmony_function_sent_natives[] = {nullptr}; | 2977 static const char* harmony_function_sent_natives[] = {nullptr}; |
2977 static const char* promise_extra_natives[] = {"native promise-extra.js", | 2978 static const char* promise_extra_natives[] = {"native promise-extra.js", |
2978 nullptr}; | 2979 nullptr}; |
2979 static const char* harmony_object_values_entries_natives[] = {nullptr}; | 2980 static const char* harmony_object_values_entries_natives[] = {nullptr}; |
2980 static const char* harmony_object_own_property_descriptors_natives[] = { | 2981 static const char* harmony_object_own_property_descriptors_natives[] = { |
2981 nullptr}; | 2982 nullptr}; |
2982 static const char* harmony_array_prototype_values_natives[] = {nullptr}; | 2983 static const char* harmony_array_prototype_values_natives[] = {nullptr}; |
| 2984 static const char* harmony_exponentiation_operator_natives[] = {nullptr}; |
2983 | 2985 |
2984 for (int i = ExperimentalNatives::GetDebuggerCount(); | 2986 for (int i = ExperimentalNatives::GetDebuggerCount(); |
2985 i < ExperimentalNatives::GetBuiltinsCount(); i++) { | 2987 i < ExperimentalNatives::GetBuiltinsCount(); i++) { |
2986 #define INSTALL_EXPERIMENTAL_NATIVES(id, desc) \ | 2988 #define INSTALL_EXPERIMENTAL_NATIVES(id, desc) \ |
2987 if (FLAG_##id) { \ | 2989 if (FLAG_##id) { \ |
2988 for (size_t j = 0; id##_natives[j] != NULL; j++) { \ | 2990 for (size_t j = 0; id##_natives[j] != NULL; j++) { \ |
2989 Vector<const char> script_name = ExperimentalNatives::GetScriptName(i); \ | 2991 Vector<const char> script_name = ExperimentalNatives::GetScriptName(i); \ |
2990 if (strncmp(script_name.start(), id##_natives[j], \ | 2992 if (strncmp(script_name.start(), id##_natives[j], \ |
2991 script_name.length()) == 0) { \ | 2993 script_name.length()) == 0) { \ |
2992 if (!Bootstrapper::CompileExperimentalBuiltin(isolate(), i)) { \ | 2994 if (!Bootstrapper::CompileExperimentalBuiltin(isolate(), i)) { \ |
(...skipping 653 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3646 } | 3648 } |
3647 | 3649 |
3648 | 3650 |
3649 // Called when the top-level V8 mutex is destroyed. | 3651 // Called when the top-level V8 mutex is destroyed. |
3650 void Bootstrapper::FreeThreadResources() { | 3652 void Bootstrapper::FreeThreadResources() { |
3651 DCHECK(!IsActive()); | 3653 DCHECK(!IsActive()); |
3652 } | 3654 } |
3653 | 3655 |
3654 } // namespace internal | 3656 } // namespace internal |
3655 } // namespace v8 | 3657 } // namespace v8 |
OLD | NEW |