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

Side by Side Diff: src/objects.h

Issue 2539093002: [runtime] Port simple String.prototype.indexOf cases to TF Builtin (Closed)
Patch Set: merging with master Created 4 years 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/machine-type.h ('k') | src/runtime/runtime.h » ('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 #include <memory> 9 #include <memory>
10 10
(...skipping 9877 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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_
OLDNEW
« no previous file with comments | « src/machine-type.h ('k') | src/runtime/runtime.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698