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 2299 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2310 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_destructuring_bind) | 2310 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_destructuring_bind) |
2311 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_destructuring_assignment) | 2311 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_destructuring_assignment) |
2312 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_object_observe) | 2312 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_object_observe) |
2313 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_regexps) | 2313 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_regexps) |
2314 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_unicode_regexps) | 2314 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_unicode_regexps) |
2315 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_completion) | 2315 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_completion) |
2316 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_tolength) | 2316 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_tolength) |
2317 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_do_expressions) | 2317 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_do_expressions) |
2318 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_regexp_lookbehind) | 2318 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_regexp_lookbehind) |
2319 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_function_name) | 2319 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_function_name) |
| 2320 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_function_sent) |
2320 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(promise_extra) | 2321 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(promise_extra) |
2321 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_tailcalls) | 2322 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_tailcalls) |
2322 | 2323 |
2323 void InstallPublicSymbol(Factory* factory, Handle<Context> native_context, | 2324 void InstallPublicSymbol(Factory* factory, Handle<Context> native_context, |
2324 const char* name, Handle<Symbol> value) { | 2325 const char* name, Handle<Symbol> value) { |
2325 Handle<JSGlobalObject> global( | 2326 Handle<JSGlobalObject> global( |
2326 JSGlobalObject::cast(native_context->global_object())); | 2327 JSGlobalObject::cast(native_context->global_object())); |
2327 Handle<String> symbol_string = factory->InternalizeUtf8String("Symbol"); | 2328 Handle<String> symbol_string = factory->InternalizeUtf8String("Symbol"); |
2328 Handle<JSObject> symbol = Handle<JSObject>::cast( | 2329 Handle<JSObject> symbol = Handle<JSObject>::cast( |
2329 JSObject::GetProperty(global, symbol_string).ToHandleChecked()); | 2330 JSObject::GetProperty(global, symbol_string).ToHandleChecked()); |
(...skipping 618 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2948 "native harmony-sharedarraybuffer.js", "native harmony-atomics.js", NULL}; | 2949 "native harmony-sharedarraybuffer.js", "native harmony-atomics.js", NULL}; |
2949 static const char* harmony_concat_spreadable_natives[] = {nullptr}; | 2950 static const char* harmony_concat_spreadable_natives[] = {nullptr}; |
2950 static const char* harmony_simd_natives[] = {"native harmony-simd.js", | 2951 static const char* harmony_simd_natives[] = {"native harmony-simd.js", |
2951 nullptr}; | 2952 nullptr}; |
2952 static const char* harmony_tolength_natives[] = {nullptr}; | 2953 static const char* harmony_tolength_natives[] = {nullptr}; |
2953 static const char* harmony_completion_natives[] = {nullptr}; | 2954 static const char* harmony_completion_natives[] = {nullptr}; |
2954 static const char* harmony_do_expressions_natives[] = {nullptr}; | 2955 static const char* harmony_do_expressions_natives[] = {nullptr}; |
2955 static const char* harmony_regexp_subclass_natives[] = {nullptr}; | 2956 static const char* harmony_regexp_subclass_natives[] = {nullptr}; |
2956 static const char* harmony_regexp_lookbehind_natives[] = {nullptr}; | 2957 static const char* harmony_regexp_lookbehind_natives[] = {nullptr}; |
2957 static const char* harmony_function_name_natives[] = {nullptr}; | 2958 static const char* harmony_function_name_natives[] = {nullptr}; |
| 2959 static const char* harmony_function_sent_natives[] = {nullptr}; |
2958 static const char* promise_extra_natives[] = {"native promise-extra.js", | 2960 static const char* promise_extra_natives[] = {"native promise-extra.js", |
2959 nullptr}; | 2961 nullptr}; |
2960 static const char* harmony_object_values_entries_natives[] = {nullptr}; | 2962 static const char* harmony_object_values_entries_natives[] = {nullptr}; |
2961 | 2963 |
2962 for (int i = ExperimentalNatives::GetDebuggerCount(); | 2964 for (int i = ExperimentalNatives::GetDebuggerCount(); |
2963 i < ExperimentalNatives::GetBuiltinsCount(); i++) { | 2965 i < ExperimentalNatives::GetBuiltinsCount(); i++) { |
2964 #define INSTALL_EXPERIMENTAL_NATIVES(id, desc) \ | 2966 #define INSTALL_EXPERIMENTAL_NATIVES(id, desc) \ |
2965 if (FLAG_##id) { \ | 2967 if (FLAG_##id) { \ |
2966 for (size_t j = 0; id##_natives[j] != NULL; j++) { \ | 2968 for (size_t j = 0; id##_natives[j] != NULL; j++) { \ |
2967 Vector<const char> script_name = ExperimentalNatives::GetScriptName(i); \ | 2969 Vector<const char> script_name = ExperimentalNatives::GetScriptName(i); \ |
(...skipping 658 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3626 } | 3628 } |
3627 | 3629 |
3628 | 3630 |
3629 // Called when the top-level V8 mutex is destroyed. | 3631 // Called when the top-level V8 mutex is destroyed. |
3630 void Bootstrapper::FreeThreadResources() { | 3632 void Bootstrapper::FreeThreadResources() { |
3631 DCHECK(!IsActive()); | 3633 DCHECK(!IsActive()); |
3632 } | 3634 } |
3633 | 3635 |
3634 } // namespace internal | 3636 } // namespace internal |
3635 } // namespace v8 | 3637 } // namespace v8 |
OLD | NEW |