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

Side by Side 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, 6 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/js/string.js ('k') | src/objects.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 the V8 project authors. All rights reserved. 1 // Copyright 2015 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef V8_OBJECTS_H_ 5 #ifndef V8_OBJECTS_H_
6 #define V8_OBJECTS_H_ 6 #define V8_OBJECTS_H_
7 7
8 #include <iosfwd> 8 #include <iosfwd>
9 9
10 #include "src/assert-scope.h" 10 #include "src/assert-scope.h"
(...skipping 8843 matching lines...) Expand 10 before | Expand all | Expand 10 after
8854 8854
8855 bool ComputeArrayIndex(uint32_t* index); 8855 bool ComputeArrayIndex(uint32_t* index);
8856 8856
8857 // Externalization. 8857 // Externalization.
8858 bool MakeExternal(v8::String::ExternalStringResource* resource); 8858 bool MakeExternal(v8::String::ExternalStringResource* resource);
8859 bool MakeExternal(v8::String::ExternalOneByteStringResource* resource); 8859 bool MakeExternal(v8::String::ExternalOneByteStringResource* resource);
8860 8860
8861 // Conversion. 8861 // Conversion.
8862 inline bool AsArrayIndex(uint32_t* index); 8862 inline bool AsArrayIndex(uint32_t* index);
8863 8863
8864 // Case conversion.
8865 static MaybeHandle<String> ToLowerCase(Handle<String> string)
8866 WARN_UNUSED_RESULT;
8867 static MaybeHandle<String> ToUpperCase(Handle<String> string)
8868 WARN_UNUSED_RESULT;
8869
8864 // Trimming. 8870 // Trimming.
8865 enum TrimMode { kTrim, kTrimLeft, kTrimRight }; 8871 enum TrimMode { kTrim, kTrimLeft, kTrimRight };
8866 static Handle<String> Trim(Handle<String> string, TrimMode mode); 8872 static Handle<String> Trim(Handle<String> string, TrimMode mode);
8867 8873
8868 DECLARE_CAST(String) 8874 DECLARE_CAST(String)
8869 8875
8870 void PrintOn(FILE* out); 8876 void PrintOn(FILE* out);
8871 8877
8872 // For use during stack traces. Performs rudimentary sanity check. 8878 // For use during stack traces. Performs rudimentary sanity check.
8873 bool LooksValid(); 8879 bool LooksValid();
(...skipping 1916 matching lines...) Expand 10 before | Expand all | Expand 10 after
10790 } 10796 }
10791 return value; 10797 return value;
10792 } 10798 }
10793 }; 10799 };
10794 10800
10795 10801
10796 } // NOLINT, false-positive due to second-order macros. 10802 } // NOLINT, false-positive due to second-order macros.
10797 } // NOLINT, false-positive due to second-order macros. 10803 } // NOLINT, false-positive due to second-order macros.
10798 10804
10799 #endif // V8_OBJECTS_H_ 10805 #endif // V8_OBJECTS_H_
OLDNEW
« 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