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 #include <memory> | 9 #include <memory> |
10 | 10 |
(...skipping 9877 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
9888 | 9888 |
9889 static inline Handle<String> Flatten(Handle<String> string, | 9889 static inline Handle<String> Flatten(Handle<String> string, |
9890 PretenureFlag pretenure = NOT_TENURED); | 9890 PretenureFlag pretenure = NOT_TENURED); |
9891 | 9891 |
9892 // Tries to return the content of a flat string as a structure holding either | 9892 // Tries to return the content of a flat string as a structure holding either |
9893 // a flat vector of char or of uc16. | 9893 // a flat vector of char or of uc16. |
9894 // If the string isn't flat, and therefore doesn't have flat content, the | 9894 // If the string isn't flat, and therefore doesn't have flat content, the |
9895 // returned structure will report so, and can't provide a vector of either | 9895 // returned structure will report so, and can't provide a vector of either |
9896 // kind. | 9896 // kind. |
9897 FlatContent GetFlatContent(); | 9897 FlatContent GetFlatContent(); |
| 9898 FlatContent GetFlattenedContent(); |
9898 | 9899 |
9899 // Returns the parent of a sliced string or first part of a flat cons string. | 9900 // Returns the parent of a sliced string or first part of a flat cons string. |
9900 // Requires: StringShape(this).IsIndirect() && this->IsFlat() | 9901 // Requires: StringShape(this).IsIndirect() && this->IsFlat() |
9901 inline String* GetUnderlying(); | 9902 inline String* GetUnderlying(); |
9902 | 9903 |
9903 // String relational comparison, implemented according to ES6 section 7.2.11 | 9904 // String relational comparison, implemented according to ES6 section 7.2.11 |
9904 // Abstract Relational Comparison (step 5): The comparison of Strings uses a | 9905 // Abstract Relational Comparison (step 5): The comparison of Strings uses a |
9905 // simple lexicographic ordering on sequences of code unit values. There is no | 9906 // simple lexicographic ordering on sequences of code unit values. There is no |
9906 // attempt to use the more complex, semantically oriented definitions of | 9907 // attempt to use the more complex, semantically oriented definitions of |
9907 // character or string equality and collating order defined in the Unicode | 9908 // character or string equality and collating order defined in the Unicode |
(...skipping 2082 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
11990 } | 11991 } |
11991 return value; | 11992 return value; |
11992 } | 11993 } |
11993 }; | 11994 }; |
11994 | 11995 |
11995 | 11996 |
11996 } // NOLINT, false-positive due to second-order macros. | 11997 } // NOLINT, false-positive due to second-order macros. |
11997 } // NOLINT, false-positive due to second-order macros. | 11998 } // NOLINT, false-positive due to second-order macros. |
11998 | 11999 |
11999 #endif // V8_OBJECTS_H_ | 12000 #endif // V8_OBJECTS_H_ |
OLD | NEW |