OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2017 the V8 project authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 #ifdef V8_I18N_SUPPORT | |
6 | |
7 #include "src/builtins/builtins-utils.h" | |
8 #include "src/builtins/builtins.h" | |
9 #include "src/code-stub-assembler.h" | |
Jakob Kummerow
2017/03/18 12:27:32
This doesn't need the CodeStubAssembler. However,
| |
10 #include "src/i18n.h" | |
11 | |
12 namespace v8 { | |
13 namespace internal { | |
14 | |
15 BUILTIN(StringPrototypeToLowerCaseI18N) { | |
16 HandleScope scope(isolate); | |
17 TO_THIS_STRING(string, "String.prototype.toLowerCase"); | |
18 string = String::Flatten(string); | |
19 return ConvertCase(string, false, isolate); | |
20 } | |
21 | |
22 BUILTIN(StringPrototypeToUpperCaseI18N) { | |
23 HandleScope scope(isolate); | |
24 TO_THIS_STRING(string, "String.prototype.toUpperCase"); | |
25 string = String::Flatten(string); | |
26 return ConvertCase(string, true, isolate); | |
27 } | |
28 | |
29 } // namespace internal | |
30 } // namespace v8 | |
31 | |
32 #endif // V8_I18N_SUPPORT | |
OLD | NEW |