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

Unified Diff: src/objects.h

Issue 7518: String equality improvements. (Closed)
Patch Set: Fixed lint issue Created 12 years, 2 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 | « no previous file | src/objects.cc » ('j') | src/objects.cc » ('J')
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 943784436691a635ecf3bf9e6272b7ea58642674..819739a98aee5c258b1cadbb6a432207bc5ff7e8 100644
--- a/src/objects.h
+++ b/src/objects.h
@@ -2956,6 +2956,10 @@ class String: public HeapObject {
// Is this string an ascii string.
inline bool IsAsciiRepresentation();
+ // Specialization of this function from Object that skips the
+ // string check.
+ inline bool IsSeqAsciiString();
+
// Fast testing routines that assume the receiver is a string and
// just check whether it is a certain kind of string.
inline bool StringIsSlicedString();
@@ -3183,6 +3187,8 @@ class SeqAsciiString: public SeqString {
// Get the address of the characters in this string.
inline Address GetCharsAddress();
+ inline const char* GetChars();
+
// Casting
static inline SeqAsciiString* cast(Object* obj);
« no previous file with comments | « no previous file | src/objects.cc » ('j') | src/objects.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698