| 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 4066 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4077 JSReceiver::cast(native_context()->exports_container())); | 4077 JSReceiver::cast(native_context()->exports_container())); |
| 4078 | 4078 |
| 4079 Handle<JSObject> string_prototype( | 4079 Handle<JSObject> string_prototype( |
| 4080 JSObject::cast(native_context()->string_function()->prototype())); | 4080 JSObject::cast(native_context()->string_function()->prototype())); |
| 4081 | 4081 |
| 4082 { | 4082 { |
| 4083 Handle<String> name = factory()->InternalizeUtf8String("toLowerCase"); | 4083 Handle<String> name = factory()->InternalizeUtf8String("toLowerCase"); |
| 4084 SetFunction(string_prototype, | 4084 SetFunction(string_prototype, |
| 4085 SimpleCreateFunction(isolate(), name, | 4085 SimpleCreateFunction(isolate(), name, |
| 4086 Builtins::kStringPrototypeToLowerCaseIntl, | 4086 Builtins::kStringPrototypeToLowerCaseIntl, |
| 4087 0, false), | 4087 0, true), |
| 4088 name); | 4088 name); |
| 4089 } | 4089 } |
| 4090 { | 4090 { |
| 4091 Handle<String> name = factory()->InternalizeUtf8String("toUpperCase"); | 4091 Handle<String> name = factory()->InternalizeUtf8String("toUpperCase"); |
| 4092 SetFunction(string_prototype, | 4092 SetFunction(string_prototype, |
| 4093 SimpleCreateFunction(isolate(), name, | 4093 SimpleCreateFunction(isolate(), name, |
| 4094 Builtins::kStringPrototypeToUpperCaseIntl, | 4094 Builtins::kStringPrototypeToUpperCaseIntl, |
| 4095 0, false), | 4095 0, false), |
| 4096 name); | 4096 name); |
| 4097 } | 4097 } |
| (...skipping 1183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5281 } | 5281 } |
| 5282 | 5282 |
| 5283 | 5283 |
| 5284 // Called when the top-level V8 mutex is destroyed. | 5284 // Called when the top-level V8 mutex is destroyed. |
| 5285 void Bootstrapper::FreeThreadResources() { | 5285 void Bootstrapper::FreeThreadResources() { |
| 5286 DCHECK(!IsActive()); | 5286 DCHECK(!IsActive()); |
| 5287 } | 5287 } |
| 5288 | 5288 |
| 5289 } // namespace internal | 5289 } // namespace internal |
| 5290 } // namespace v8 | 5290 } // namespace v8 |
| OLD | NEW |