| 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 1670 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1681 | 1681 |
| 1682 // Install the "constructor" property on the {prototype}. | 1682 // Install the "constructor" property on the {prototype}. |
| 1683 JSObject::AddProperty(prototype, factory->constructor_string(), string_fun, | 1683 JSObject::AddProperty(prototype, factory->constructor_string(), string_fun, |
| 1684 DONT_ENUM); | 1684 DONT_ENUM); |
| 1685 | 1685 |
| 1686 // Install the String.prototype methods. | 1686 // Install the String.prototype methods. |
| 1687 SimpleInstallFunction(prototype, "charAt", Builtins::kStringPrototypeCharAt, | 1687 SimpleInstallFunction(prototype, "charAt", Builtins::kStringPrototypeCharAt, |
| 1688 1, true); | 1688 1, true); |
| 1689 SimpleInstallFunction(prototype, "charCodeAt", | 1689 SimpleInstallFunction(prototype, "charCodeAt", |
| 1690 Builtins::kStringPrototypeCharCodeAt, 1, true); | 1690 Builtins::kStringPrototypeCharCodeAt, 1, true); |
| 1691 SimpleInstallFunction(prototype, "concat", Builtins::kStringPrototypeConcat, |
| 1692 1, false); |
| 1691 SimpleInstallFunction(prototype, "endsWith", | 1693 SimpleInstallFunction(prototype, "endsWith", |
| 1692 Builtins::kStringPrototypeEndsWith, 1, false); | 1694 Builtins::kStringPrototypeEndsWith, 1, false); |
| 1693 SimpleInstallFunction(prototype, "includes", | 1695 SimpleInstallFunction(prototype, "includes", |
| 1694 Builtins::kStringPrototypeIncludes, 1, false); | 1696 Builtins::kStringPrototypeIncludes, 1, false); |
| 1695 SimpleInstallFunction(prototype, "indexOf", | 1697 SimpleInstallFunction(prototype, "indexOf", |
| 1696 Builtins::kStringPrototypeIndexOf, 1, false); | 1698 Builtins::kStringPrototypeIndexOf, 1, false); |
| 1697 SimpleInstallFunction(prototype, "lastIndexOf", | 1699 SimpleInstallFunction(prototype, "lastIndexOf", |
| 1698 Builtins::kStringPrototypeLastIndexOf, 1, false); | 1700 Builtins::kStringPrototypeLastIndexOf, 1, false); |
| 1699 SimpleInstallFunction(prototype, "localeCompare", | 1701 SimpleInstallFunction(prototype, "localeCompare", |
| 1700 Builtins::kStringPrototypeLocaleCompare, 1, true); | 1702 Builtins::kStringPrototypeLocaleCompare, 1, true); |
| (...skipping 3362 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5063 } | 5065 } |
| 5064 | 5066 |
| 5065 | 5067 |
| 5066 // Called when the top-level V8 mutex is destroyed. | 5068 // Called when the top-level V8 mutex is destroyed. |
| 5067 void Bootstrapper::FreeThreadResources() { | 5069 void Bootstrapper::FreeThreadResources() { |
| 5068 DCHECK(!IsActive()); | 5070 DCHECK(!IsActive()); |
| 5069 } | 5071 } |
| 5070 | 5072 |
| 5071 } // namespace internal | 5073 } // namespace internal |
| 5072 } // namespace v8 | 5074 } // namespace v8 |
| OLD | NEW |