Chromium Code Reviews| 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 #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 | |
| OLD | NEW |