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

Unified Diff: src/objects.h

Issue 6269: KMP string search using direct memory access and templates for type specialization. (Closed)
Patch Set: 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 | « src/jsregexp.cc ('k') | src/objects-inl.h » ('j') | src/runtime.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 e34b5dce4db4c7b7aafdd8b3cfe4209b7154ad33..d718470babe9fcbe45371bbbe74e0c4669eb9fc8 100644
--- a/src/objects.h
+++ b/src/objects.h
@@ -3138,6 +3138,9 @@ class TwoByteString: public SeqString {
inline uint16_t TwoByteStringGet(int index);
inline void TwoByteStringSet(int index, uint16_t value);
+ // Get the address of the characters in this string.
+ inline Address GetCharsAddress();
+
// For regexp code.
const uint16_t* TwoByteStringGetData(unsigned start);
« no previous file with comments | « src/jsregexp.cc ('k') | src/objects-inl.h » ('j') | src/runtime.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698