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 3508 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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_function_tostring) |
3526 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_class_fields) | 3526 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_class_fields) |
3527 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_object_rest_spread) | 3527 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_object_rest_spread) |
3528 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_dynamic_import) | 3528 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_dynamic_import) |
| 3529 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_template_escapes) |
3529 | 3530 |
3530 void InstallPublicSymbol(Factory* factory, Handle<Context> native_context, | 3531 void InstallPublicSymbol(Factory* factory, Handle<Context> native_context, |
3531 const char* name, Handle<Symbol> value) { | 3532 const char* name, Handle<Symbol> value) { |
3532 Handle<JSGlobalObject> global( | 3533 Handle<JSGlobalObject> global( |
3533 JSGlobalObject::cast(native_context->global_object())); | 3534 JSGlobalObject::cast(native_context->global_object())); |
3534 Handle<String> symbol_string = factory->InternalizeUtf8String("Symbol"); | 3535 Handle<String> symbol_string = factory->InternalizeUtf8String("Symbol"); |
3535 Handle<JSObject> symbol = Handle<JSObject>::cast( | 3536 Handle<JSObject> symbol = Handle<JSObject>::cast( |
3536 JSObject::GetProperty(global, symbol_string).ToHandleChecked()); | 3537 JSObject::GetProperty(global, symbol_string).ToHandleChecked()); |
3537 Handle<String> name_string = factory->InternalizeUtf8String(name); | 3538 Handle<String> name_string = factory->InternalizeUtf8String(name); |
3538 PropertyAttributes attributes = | 3539 PropertyAttributes attributes = |
(...skipping 696 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4235 static const char* datetime_format_to_parts_natives[] = {nullptr}; | 4236 static const char* datetime_format_to_parts_natives[] = {nullptr}; |
4236 #endif | 4237 #endif |
4237 static const char* harmony_restrictive_generators_natives[] = {nullptr}; | 4238 static const char* harmony_restrictive_generators_natives[] = {nullptr}; |
4238 static const char* harmony_trailing_commas_natives[] = {nullptr}; | 4239 static const char* harmony_trailing_commas_natives[] = {nullptr}; |
4239 static const char* harmony_function_tostring_natives[] = {nullptr}; | 4240 static const char* harmony_function_tostring_natives[] = {nullptr}; |
4240 static const char* harmony_class_fields_natives[] = {nullptr}; | 4241 static const char* harmony_class_fields_natives[] = {nullptr}; |
4241 static const char* harmony_object_rest_spread_natives[] = {nullptr}; | 4242 static const char* harmony_object_rest_spread_natives[] = {nullptr}; |
4242 static const char* harmony_async_iteration_natives[] = {nullptr}; | 4243 static const char* harmony_async_iteration_natives[] = {nullptr}; |
4243 static const char* harmony_dynamic_import_natives[] = {nullptr}; | 4244 static const char* harmony_dynamic_import_natives[] = {nullptr}; |
4244 static const char* harmony_promise_finally_natives[] = {nullptr}; | 4245 static const char* harmony_promise_finally_natives[] = {nullptr}; |
| 4246 static const char* harmony_template_escapes_natives[] = {nullptr}; |
4245 | 4247 |
4246 for (int i = ExperimentalNatives::GetDebuggerCount(); | 4248 for (int i = ExperimentalNatives::GetDebuggerCount(); |
4247 i < ExperimentalNatives::GetBuiltinsCount(); i++) { | 4249 i < ExperimentalNatives::GetBuiltinsCount(); i++) { |
4248 #define INSTALL_EXPERIMENTAL_NATIVES(id, desc) \ | 4250 #define INSTALL_EXPERIMENTAL_NATIVES(id, desc) \ |
4249 if (FLAG_##id) { \ | 4251 if (FLAG_##id) { \ |
4250 for (size_t j = 0; id##_natives[j] != NULL; j++) { \ | 4252 for (size_t j = 0; id##_natives[j] != NULL; j++) { \ |
4251 Vector<const char> script_name = ExperimentalNatives::GetScriptName(i); \ | 4253 Vector<const char> script_name = ExperimentalNatives::GetScriptName(i); \ |
4252 if (strncmp(script_name.start(), id##_natives[j], \ | 4254 if (strncmp(script_name.start(), id##_natives[j], \ |
4253 script_name.length()) == 0) { \ | 4255 script_name.length()) == 0) { \ |
4254 if (!Bootstrapper::CompileExperimentalBuiltin(isolate(), i)) { \ | 4256 if (!Bootstrapper::CompileExperimentalBuiltin(isolate(), i)) { \ |
(...skipping 746 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5001 } | 5003 } |
5002 | 5004 |
5003 | 5005 |
5004 // Called when the top-level V8 mutex is destroyed. | 5006 // Called when the top-level V8 mutex is destroyed. |
5005 void Bootstrapper::FreeThreadResources() { | 5007 void Bootstrapper::FreeThreadResources() { |
5006 DCHECK(!IsActive()); | 5008 DCHECK(!IsActive()); |
5007 } | 5009 } |
5008 | 5010 |
5009 } // namespace internal | 5011 } // namespace internal |
5010 } // namespace v8 | 5012 } // namespace v8 |
OLD | NEW |