| 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 2300 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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(promise_extra) | 2320 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(promise_extra) |
| 2321 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_tailcalls) |
| 2321 | 2322 |
| 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()); |
| 2330 Handle<String> name_string = factory->InternalizeUtf8String(name); | 2331 Handle<String> name_string = factory->InternalizeUtf8String(name); |
| (...skipping 580 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2911 static const char* harmony_proxies_natives[] = {"native proxy.js", nullptr}; | 2912 static const char* harmony_proxies_natives[] = {"native proxy.js", nullptr}; |
| 2912 static const char* harmony_modules_natives[] = {nullptr}; | 2913 static const char* harmony_modules_natives[] = {nullptr}; |
| 2913 static const char* harmony_regexps_natives[] = {"native harmony-regexp.js", | 2914 static const char* harmony_regexps_natives[] = {"native harmony-regexp.js", |
| 2914 nullptr}; | 2915 nullptr}; |
| 2915 static const char* harmony_tostring_natives[] = {nullptr}; | 2916 static const char* harmony_tostring_natives[] = {nullptr}; |
| 2916 static const char* harmony_sloppy_natives[] = {nullptr}; | 2917 static const char* harmony_sloppy_natives[] = {nullptr}; |
| 2917 static const char* harmony_sloppy_function_natives[] = {nullptr}; | 2918 static const char* harmony_sloppy_function_natives[] = {nullptr}; |
| 2918 static const char* harmony_sloppy_let_natives[] = {nullptr}; | 2919 static const char* harmony_sloppy_let_natives[] = {nullptr}; |
| 2919 static const char* harmony_species_natives[] = {"native harmony-species.js", | 2920 static const char* harmony_species_natives[] = {"native harmony-species.js", |
| 2920 nullptr}; | 2921 nullptr}; |
| 2922 static const char* harmony_tailcalls_natives[] = {nullptr}; |
| 2921 static const char* harmony_unicode_regexps_natives[] = { | 2923 static const char* harmony_unicode_regexps_natives[] = { |
| 2922 "native harmony-unicode-regexps.js", nullptr}; | 2924 "native harmony-unicode-regexps.js", nullptr}; |
| 2923 static const char* harmony_default_parameters_natives[] = {nullptr}; | 2925 static const char* harmony_default_parameters_natives[] = {nullptr}; |
| 2924 static const char* harmony_reflect_natives[] = {"native harmony-reflect.js", | 2926 static const char* harmony_reflect_natives[] = {"native harmony-reflect.js", |
| 2925 nullptr}; | 2927 nullptr}; |
| 2926 static const char* harmony_destructuring_bind_natives[] = {nullptr}; | 2928 static const char* harmony_destructuring_bind_natives[] = {nullptr}; |
| 2927 static const char* harmony_destructuring_assignment_natives[] = {nullptr}; | 2929 static const char* harmony_destructuring_assignment_natives[] = {nullptr}; |
| 2928 static const char* harmony_object_observe_natives[] = { | 2930 static const char* harmony_object_observe_natives[] = { |
| 2929 "native harmony-object-observe.js", nullptr}; | 2931 "native harmony-object-observe.js", nullptr}; |
| 2930 static const char* harmony_sharedarraybuffer_natives[] = { | 2932 static const char* harmony_sharedarraybuffer_natives[] = { |
| (...skipping 677 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3608 } | 3610 } |
| 3609 | 3611 |
| 3610 | 3612 |
| 3611 // Called when the top-level V8 mutex is destroyed. | 3613 // Called when the top-level V8 mutex is destroyed. |
| 3612 void Bootstrapper::FreeThreadResources() { | 3614 void Bootstrapper::FreeThreadResources() { |
| 3613 DCHECK(!IsActive()); | 3615 DCHECK(!IsActive()); |
| 3614 } | 3616 } |
| 3615 | 3617 |
| 3616 } // namespace internal | 3618 } // namespace internal |
| 3617 } // namespace v8 | 3619 } // namespace v8 |
| OLD | NEW |