| 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 3861 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3872 | 3872 |
| 3873 void Genesis::InitializeGlobal_icu_case_mapping() { | 3873 void Genesis::InitializeGlobal_icu_case_mapping() { |
| 3874 if (!FLAG_icu_case_mapping) return; | 3874 if (!FLAG_icu_case_mapping) return; |
| 3875 | 3875 |
| 3876 Handle<JSReceiver> exports_container( | 3876 Handle<JSReceiver> exports_container( |
| 3877 JSReceiver::cast(native_context()->exports_container())); | 3877 JSReceiver::cast(native_context()->exports_container())); |
| 3878 | 3878 |
| 3879 Handle<JSObject> string_prototype( | 3879 Handle<JSObject> string_prototype( |
| 3880 JSObject::cast(native_context()->string_function()->prototype())); | 3880 JSObject::cast(native_context()->string_function()->prototype())); |
| 3881 | 3881 |
| 3882 Handle<JSFunction> to_lower_case = Handle<JSFunction>::cast( | 3882 { |
| 3883 JSReceiver::GetProperty( | 3883 Handle<String> name = factory()->InternalizeUtf8String("toLowerCase"); |
| 3884 exports_container, | 3884 SetFunction(string_prototype, |
| 3885 factory()->InternalizeUtf8String("ToLowerCaseI18N")) | 3885 SimpleCreateFunction(isolate(), name, |
| 3886 .ToHandleChecked()); | 3886 Builtins::kStringPrototypeToLowerCaseI18N, |
| 3887 SetFunction(string_prototype, to_lower_case, | 3887 0, false), |
| 3888 factory()->InternalizeUtf8String("toLowerCase")); | 3888 name); |
| 3889 | 3889 } |
| 3890 Handle<JSFunction> to_upper_case = Handle<JSFunction>::cast( | 3890 { |
| 3891 JSReceiver::GetProperty( | 3891 Handle<String> name = factory()->InternalizeUtf8String("toUpperCase"); |
| 3892 exports_container, | 3892 SetFunction(string_prototype, |
| 3893 factory()->InternalizeUtf8String("ToUpperCaseI18N")) | 3893 SimpleCreateFunction(isolate(), name, |
| 3894 .ToHandleChecked()); | 3894 Builtins::kStringPrototypeToUpperCaseI18N, |
| 3895 SetFunction(string_prototype, to_upper_case, | 3895 0, false), |
| 3896 factory()->InternalizeUtf8String("toUpperCase")); | 3896 name); |
| 3897 } |
| 3897 | 3898 |
| 3898 Handle<JSFunction> to_locale_lower_case = Handle<JSFunction>::cast( | 3899 Handle<JSFunction> to_locale_lower_case = Handle<JSFunction>::cast( |
| 3899 JSReceiver::GetProperty( | 3900 JSReceiver::GetProperty( |
| 3900 exports_container, | 3901 exports_container, |
| 3901 factory()->InternalizeUtf8String("ToLocaleLowerCaseI18N")) | 3902 factory()->InternalizeUtf8String("ToLocaleLowerCaseI18N")) |
| 3902 .ToHandleChecked()); | 3903 .ToHandleChecked()); |
| 3903 SetFunction(string_prototype, to_locale_lower_case, | 3904 SetFunction(string_prototype, to_locale_lower_case, |
| 3904 factory()->InternalizeUtf8String("toLocaleLowerCase")); | 3905 factory()->InternalizeUtf8String("toLocaleLowerCase")); |
| 3905 | 3906 |
| 3906 Handle<JSFunction> to_locale_upper_case = Handle<JSFunction>::cast( | 3907 Handle<JSFunction> to_locale_upper_case = Handle<JSFunction>::cast( |
| (...skipping 1150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5057 } | 5058 } |
| 5058 | 5059 |
| 5059 | 5060 |
| 5060 // Called when the top-level V8 mutex is destroyed. | 5061 // Called when the top-level V8 mutex is destroyed. |
| 5061 void Bootstrapper::FreeThreadResources() { | 5062 void Bootstrapper::FreeThreadResources() { |
| 5062 DCHECK(!IsActive()); | 5063 DCHECK(!IsActive()); |
| 5063 } | 5064 } |
| 5064 | 5065 |
| 5065 } // namespace internal | 5066 } // namespace internal |
| 5066 } // namespace v8 | 5067 } // namespace v8 |
| OLD | NEW |