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 1792 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1803 Builtins::kStringPrototypeLocaleCompare, 1, true); | 1803 Builtins::kStringPrototypeLocaleCompare, 1, true); |
1804 #ifdef V8_INTL_SUPPORT | 1804 #ifdef V8_INTL_SUPPORT |
1805 SimpleInstallFunction(prototype, "normalize", | 1805 SimpleInstallFunction(prototype, "normalize", |
1806 Builtins::kStringPrototypeNormalizeIntl, 0, false); | 1806 Builtins::kStringPrototypeNormalizeIntl, 0, false); |
1807 #else | 1807 #else |
1808 SimpleInstallFunction(prototype, "normalize", | 1808 SimpleInstallFunction(prototype, "normalize", |
1809 Builtins::kStringPrototypeNormalize, 0, false); | 1809 Builtins::kStringPrototypeNormalize, 0, false); |
1810 #endif // V8_INTL_SUPPORT | 1810 #endif // V8_INTL_SUPPORT |
1811 SimpleInstallFunction(prototype, "replace", | 1811 SimpleInstallFunction(prototype, "replace", |
1812 Builtins::kStringPrototypeReplace, 2, true); | 1812 Builtins::kStringPrototypeReplace, 2, true); |
| 1813 SimpleInstallFunction(prototype, "slice", Builtins::kStringPrototypeSlice, |
| 1814 2, false); |
1813 SimpleInstallFunction(prototype, "split", Builtins::kStringPrototypeSplit, | 1815 SimpleInstallFunction(prototype, "split", Builtins::kStringPrototypeSplit, |
1814 2, true); | 1816 2, true); |
1815 SimpleInstallFunction(prototype, "substr", Builtins::kStringPrototypeSubstr, | 1817 SimpleInstallFunction(prototype, "substr", Builtins::kStringPrototypeSubstr, |
1816 2, true); | 1818 2, true); |
1817 SimpleInstallFunction(prototype, "substring", | 1819 SimpleInstallFunction(prototype, "substring", |
1818 Builtins::kStringPrototypeSubstring, 2, true); | 1820 Builtins::kStringPrototypeSubstring, 2, true); |
1819 SimpleInstallFunction(prototype, "startsWith", | 1821 SimpleInstallFunction(prototype, "startsWith", |
1820 Builtins::kStringPrototypeStartsWith, 1, false); | 1822 Builtins::kStringPrototypeStartsWith, 1, false); |
1821 SimpleInstallFunction(prototype, "toString", | 1823 SimpleInstallFunction(prototype, "toString", |
1822 Builtins::kStringPrototypeToString, 0, true); | 1824 Builtins::kStringPrototypeToString, 0, true); |
(...skipping 3458 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5281 } | 5283 } |
5282 | 5284 |
5283 | 5285 |
5284 // Called when the top-level V8 mutex is destroyed. | 5286 // Called when the top-level V8 mutex is destroyed. |
5285 void Bootstrapper::FreeThreadResources() { | 5287 void Bootstrapper::FreeThreadResources() { |
5286 DCHECK(!IsActive()); | 5288 DCHECK(!IsActive()); |
5287 } | 5289 } |
5288 | 5290 |
5289 } // namespace internal | 5291 } // namespace internal |
5290 } // namespace v8 | 5292 } // namespace v8 |
OLD | NEW |