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 1374 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1385 | 1385 |
1386 // Install the "constructor" property on the {prototype}. | 1386 // Install the "constructor" property on the {prototype}. |
1387 JSObject::AddProperty(prototype, factory->constructor_string(), string_fun, | 1387 JSObject::AddProperty(prototype, factory->constructor_string(), string_fun, |
1388 DONT_ENUM); | 1388 DONT_ENUM); |
1389 | 1389 |
1390 // Install the String.prototype methods. | 1390 // Install the String.prototype methods. |
1391 SimpleInstallFunction(prototype, "charAt", Builtins::kStringPrototypeCharAt, | 1391 SimpleInstallFunction(prototype, "charAt", Builtins::kStringPrototypeCharAt, |
1392 1, true); | 1392 1, true); |
1393 SimpleInstallFunction(prototype, "charCodeAt", | 1393 SimpleInstallFunction(prototype, "charCodeAt", |
1394 Builtins::kStringPrototypeCharCodeAt, 1, true); | 1394 Builtins::kStringPrototypeCharCodeAt, 1, true); |
| 1395 SimpleInstallFunction(prototype, "indexOf", |
| 1396 Builtins::kStringPrototypeIndexOf, 1, false); |
1395 SimpleInstallFunction(prototype, "lastIndexOf", | 1397 SimpleInstallFunction(prototype, "lastIndexOf", |
1396 Builtins::kStringPrototypeLastIndexOf, 1, false); | 1398 Builtins::kStringPrototypeLastIndexOf, 1, false); |
1397 SimpleInstallFunction(prototype, "localeCompare", | 1399 SimpleInstallFunction(prototype, "localeCompare", |
1398 Builtins::kStringPrototypeLocaleCompare, 1, true); | 1400 Builtins::kStringPrototypeLocaleCompare, 1, true); |
1399 SimpleInstallFunction(prototype, "normalize", | 1401 SimpleInstallFunction(prototype, "normalize", |
1400 Builtins::kStringPrototypeNormalize, 0, false); | 1402 Builtins::kStringPrototypeNormalize, 0, false); |
1401 SimpleInstallFunction(prototype, "toString", | 1403 SimpleInstallFunction(prototype, "toString", |
1402 Builtins::kStringPrototypeToString, 0, true); | 1404 Builtins::kStringPrototypeToString, 0, true); |
1403 SimpleInstallFunction(prototype, "trim", Builtins::kStringPrototypeTrim, 0, | 1405 SimpleInstallFunction(prototype, "trim", Builtins::kStringPrototypeTrim, 0, |
1404 false); | 1406 false); |
(...skipping 2743 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4148 } | 4150 } |
4149 | 4151 |
4150 | 4152 |
4151 // Called when the top-level V8 mutex is destroyed. | 4153 // Called when the top-level V8 mutex is destroyed. |
4152 void Bootstrapper::FreeThreadResources() { | 4154 void Bootstrapper::FreeThreadResources() { |
4153 DCHECK(!IsActive()); | 4155 DCHECK(!IsActive()); |
4154 } | 4156 } |
4155 | 4157 |
4156 } // namespace internal | 4158 } // namespace internal |
4157 } // namespace v8 | 4159 } // namespace v8 |
OLD | NEW |