| 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 2285 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2296 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_unicode_regexps) | 2296 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_unicode_regexps) |
| 2297 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_do_expressions) | 2297 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_do_expressions) |
| 2298 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_iterator_close) | 2298 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_iterator_close) |
| 2299 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_regexp_lookbehind) | 2299 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_regexp_lookbehind) |
| 2300 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_regexp_property) | 2300 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_regexp_property) |
| 2301 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_function_name) | 2301 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_function_name) |
| 2302 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_function_sent) | 2302 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_function_sent) |
| 2303 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(promise_extra) | 2303 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(promise_extra) |
| 2304 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_tailcalls) | 2304 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_tailcalls) |
| 2305 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_instanceof) | 2305 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_instanceof) |
| 2306 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_restrictive_declarations) |
| 2306 | 2307 |
| 2307 void InstallPublicSymbol(Factory* factory, Handle<Context> native_context, | 2308 void InstallPublicSymbol(Factory* factory, Handle<Context> native_context, |
| 2308 const char* name, Handle<Symbol> value) { | 2309 const char* name, Handle<Symbol> value) { |
| 2309 Handle<JSGlobalObject> global( | 2310 Handle<JSGlobalObject> global( |
| 2310 JSGlobalObject::cast(native_context->global_object())); | 2311 JSGlobalObject::cast(native_context->global_object())); |
| 2311 Handle<String> symbol_string = factory->InternalizeUtf8String("Symbol"); | 2312 Handle<String> symbol_string = factory->InternalizeUtf8String("Symbol"); |
| 2312 Handle<JSObject> symbol = Handle<JSObject>::cast( | 2313 Handle<JSObject> symbol = Handle<JSObject>::cast( |
| 2313 JSObject::GetProperty(global, symbol_string).ToHandleChecked()); | 2314 JSObject::GetProperty(global, symbol_string).ToHandleChecked()); |
| 2314 Handle<String> name_string = factory->InternalizeUtf8String(name); | 2315 Handle<String> name_string = factory->InternalizeUtf8String(name); |
| 2315 PropertyAttributes attributes = | 2316 PropertyAttributes attributes = |
| (...skipping 633 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2949 static const char* harmony_object_observe_natives[] = { | 2950 static const char* harmony_object_observe_natives[] = { |
| 2950 "native harmony-object-observe.js", nullptr}; | 2951 "native harmony-object-observe.js", nullptr}; |
| 2951 static const char* harmony_sharedarraybuffer_natives[] = { | 2952 static const char* harmony_sharedarraybuffer_natives[] = { |
| 2952 "native harmony-sharedarraybuffer.js", "native harmony-atomics.js", NULL}; | 2953 "native harmony-sharedarraybuffer.js", "native harmony-atomics.js", NULL}; |
| 2953 static const char* harmony_simd_natives[] = {"native harmony-simd.js", | 2954 static const char* harmony_simd_natives[] = {"native harmony-simd.js", |
| 2954 nullptr}; | 2955 nullptr}; |
| 2955 static const char* harmony_do_expressions_natives[] = {nullptr}; | 2956 static const char* harmony_do_expressions_natives[] = {nullptr}; |
| 2956 static const char* harmony_regexp_subclass_natives[] = {nullptr}; | 2957 static const char* harmony_regexp_subclass_natives[] = {nullptr}; |
| 2957 static const char* harmony_regexp_lookbehind_natives[] = {nullptr}; | 2958 static const char* harmony_regexp_lookbehind_natives[] = {nullptr}; |
| 2958 static const char* harmony_instanceof_natives[] = {nullptr}; | 2959 static const char* harmony_instanceof_natives[] = {nullptr}; |
| 2960 static const char* harmony_restrictive_declarations_natives[] = {nullptr}; |
| 2959 static const char* harmony_regexp_property_natives[] = {nullptr}; | 2961 static const char* harmony_regexp_property_natives[] = {nullptr}; |
| 2960 static const char* harmony_function_name_natives[] = {nullptr}; | 2962 static const char* harmony_function_name_natives[] = {nullptr}; |
| 2961 static const char* harmony_function_sent_natives[] = {nullptr}; | 2963 static const char* harmony_function_sent_natives[] = {nullptr}; |
| 2962 static const char* promise_extra_natives[] = {"native promise-extra.js", | 2964 static const char* promise_extra_natives[] = {"native promise-extra.js", |
| 2963 nullptr}; | 2965 nullptr}; |
| 2964 static const char* harmony_object_values_entries_natives[] = {nullptr}; | 2966 static const char* harmony_object_values_entries_natives[] = {nullptr}; |
| 2965 static const char* harmony_object_own_property_descriptors_natives[] = { | 2967 static const char* harmony_object_own_property_descriptors_natives[] = { |
| 2966 nullptr}; | 2968 nullptr}; |
| 2967 | 2969 |
| 2968 for (int i = ExperimentalNatives::GetDebuggerCount(); | 2970 for (int i = ExperimentalNatives::GetDebuggerCount(); |
| (...skipping 661 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3630 } | 3632 } |
| 3631 | 3633 |
| 3632 | 3634 |
| 3633 // Called when the top-level V8 mutex is destroyed. | 3635 // Called when the top-level V8 mutex is destroyed. |
| 3634 void Bootstrapper::FreeThreadResources() { | 3636 void Bootstrapper::FreeThreadResources() { |
| 3635 DCHECK(!IsActive()); | 3637 DCHECK(!IsActive()); |
| 3636 } | 3638 } |
| 3637 | 3639 |
| 3638 } // namespace internal | 3640 } // namespace internal |
| 3639 } // namespace v8 | 3641 } // namespace v8 |
| OLD | NEW |