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 2301 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2312 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_destructuring_bind) | 2312 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_destructuring_bind) |
2313 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_destructuring_assignment) | 2313 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_destructuring_assignment) |
2314 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_object_observe) | 2314 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_object_observe) |
2315 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_regexps) | 2315 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_regexps) |
2316 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_unicode_regexps) | 2316 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_unicode_regexps) |
2317 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_completion) | 2317 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_completion) |
2318 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_tolength) | 2318 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_tolength) |
2319 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_do_expressions) | 2319 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_do_expressions) |
2320 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_regexp_lookbehind) | 2320 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_regexp_lookbehind) |
2321 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_function_name) | 2321 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_function_name) |
| 2322 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_function_sent) |
2322 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(promise_extra) | 2323 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(promise_extra) |
2323 | 2324 |
2324 | 2325 |
2325 void InstallPublicSymbol(Factory* factory, Handle<Context> native_context, | 2326 void InstallPublicSymbol(Factory* factory, Handle<Context> native_context, |
2326 const char* name, Handle<Symbol> value) { | 2327 const char* name, Handle<Symbol> value) { |
2327 Handle<JSGlobalObject> global( | 2328 Handle<JSGlobalObject> global( |
2328 JSGlobalObject::cast(native_context->global_object())); | 2329 JSGlobalObject::cast(native_context->global_object())); |
2329 Handle<String> symbol_string = factory->InternalizeUtf8String("Symbol"); | 2330 Handle<String> symbol_string = factory->InternalizeUtf8String("Symbol"); |
2330 Handle<JSObject> symbol = Handle<JSObject>::cast( | 2331 Handle<JSObject> symbol = Handle<JSObject>::cast( |
2331 JSObject::GetProperty(global, symbol_string).ToHandleChecked()); | 2332 JSObject::GetProperty(global, symbol_string).ToHandleChecked()); |
(...skipping 518 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2850 "native harmony-sharedarraybuffer.js", "native harmony-atomics.js", NULL}; | 2851 "native harmony-sharedarraybuffer.js", "native harmony-atomics.js", NULL}; |
2851 static const char* harmony_concat_spreadable_natives[] = {nullptr}; | 2852 static const char* harmony_concat_spreadable_natives[] = {nullptr}; |
2852 static const char* harmony_simd_natives[] = {"native harmony-simd.js", | 2853 static const char* harmony_simd_natives[] = {"native harmony-simd.js", |
2853 nullptr}; | 2854 nullptr}; |
2854 static const char* harmony_tolength_natives[] = {nullptr}; | 2855 static const char* harmony_tolength_natives[] = {nullptr}; |
2855 static const char* harmony_completion_natives[] = {nullptr}; | 2856 static const char* harmony_completion_natives[] = {nullptr}; |
2856 static const char* harmony_do_expressions_natives[] = {nullptr}; | 2857 static const char* harmony_do_expressions_natives[] = {nullptr}; |
2857 static const char* harmony_regexp_subclass_natives[] = {nullptr}; | 2858 static const char* harmony_regexp_subclass_natives[] = {nullptr}; |
2858 static const char* harmony_regexp_lookbehind_natives[] = {nullptr}; | 2859 static const char* harmony_regexp_lookbehind_natives[] = {nullptr}; |
2859 static const char* harmony_function_name_natives[] = {nullptr}; | 2860 static const char* harmony_function_name_natives[] = {nullptr}; |
| 2861 static const char* harmony_function_sent_natives[] = {nullptr}; |
2860 static const char* promise_extra_natives[] = {"native promise-extra.js", | 2862 static const char* promise_extra_natives[] = {"native promise-extra.js", |
2861 nullptr}; | 2863 nullptr}; |
2862 | 2864 |
2863 for (int i = ExperimentalNatives::GetDebuggerCount(); | 2865 for (int i = ExperimentalNatives::GetDebuggerCount(); |
2864 i < ExperimentalNatives::GetBuiltinsCount(); i++) { | 2866 i < ExperimentalNatives::GetBuiltinsCount(); i++) { |
2865 #define INSTALL_EXPERIMENTAL_NATIVES(id, desc) \ | 2867 #define INSTALL_EXPERIMENTAL_NATIVES(id, desc) \ |
2866 if (FLAG_##id) { \ | 2868 if (FLAG_##id) { \ |
2867 for (size_t j = 0; id##_natives[j] != NULL; j++) { \ | 2869 for (size_t j = 0; id##_natives[j] != NULL; j++) { \ |
2868 Vector<const char> script_name = ExperimentalNatives::GetScriptName(i); \ | 2870 Vector<const char> script_name = ExperimentalNatives::GetScriptName(i); \ |
2869 if (strncmp(script_name.start(), id##_natives[j], \ | 2871 if (strncmp(script_name.start(), id##_natives[j], \ |
(...skipping 657 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3527 } | 3529 } |
3528 | 3530 |
3529 | 3531 |
3530 // Called when the top-level V8 mutex is destroyed. | 3532 // Called when the top-level V8 mutex is destroyed. |
3531 void Bootstrapper::FreeThreadResources() { | 3533 void Bootstrapper::FreeThreadResources() { |
3532 DCHECK(!IsActive()); | 3534 DCHECK(!IsActive()); |
3533 } | 3535 } |
3534 | 3536 |
3535 } // namespace internal | 3537 } // namespace internal |
3536 } // namespace v8 | 3538 } // namespace v8 |
OLD | NEW |