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

Unified Diff: src/objects.h

Issue 2018983002: [builtins] Also migrate String.prototype.toLowerCase/toUpperCase to C++. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@StringTrim
Patch Set: REBASE Created 4 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/js/string.js ('k') | src/objects.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/objects.h
diff --git a/src/objects.h b/src/objects.h
index 02e3b4f89d3ba4aed5ca912278ca5d1cd2c1063c..6f96a69d031e48ba296bf5aa654b3a625432ab8d 100644
--- a/src/objects.h
+++ b/src/objects.h
@@ -8861,6 +8861,12 @@ class String: public Name {
// Conversion.
inline bool AsArrayIndex(uint32_t* index);
+ // Case conversion.
+ static MaybeHandle<String> ToLowerCase(Handle<String> string)
+ WARN_UNUSED_RESULT;
+ static MaybeHandle<String> ToUpperCase(Handle<String> string)
+ WARN_UNUSED_RESULT;
+
// Trimming.
enum TrimMode { kTrim, kTrimLeft, kTrimRight };
static Handle<String> Trim(Handle<String> string, TrimMode mode);
« no previous file with comments | « src/js/string.js ('k') | src/objects.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698