Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(389)

Side by Side Diff: src/builtins/builtins-intl.cc

Issue 2728763006: Migrate some case conversion functions from JS to CPP builtins (Closed)
Patch Set: rebase Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/builtins/builtins.h ('k') | src/i18n.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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/i18n.h"
10 #include "src/objects-inl.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
OLDNEW
« no previous file with comments | « src/builtins/builtins.h ('k') | src/i18n.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698