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

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

Issue 2728763006: Migrate some case conversion functions from JS to CPP builtins (Closed)
Patch Set: flatten strings 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 #include "src/builtins/builtins-utils.h"
6 #include "src/builtins/builtins.h"
7 #include "src/code-stub-assembler.h"
8 #include "src/i18n.h"
caitp 2017/03/15 23:27:12 I think you need to wrap this whole file in `#ifde
caitp 2017/03/15 23:28:38 ah, having re-read your IRC messages I see you alr
9
10 namespace v8 {
11 namespace internal {
12
13 BUILTIN(StringPrototypeToLowerCaseI18N) {
14 HandleScope scope(isolate);
15 TO_THIS_STRING(string, "String.prototype.toLowerCase");
16 string = String::Flatten(string);
17 return ConvertCase(string, false, isolate);
18 }
19
20 BUILTIN(StringPrototypeToUpperCaseI18N) {
21 HandleScope scope(isolate);
22 TO_THIS_STRING(string, "String.prototype.toUpperCase");
23 string = String::Flatten(string);
24 return ConvertCase(string, true, isolate);
25 }
26
27 } // namespace internal
28 } // namespace v8
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