| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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_ |
| OLD | NEW |