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

Unified Diff: runtime/vm/object.h

Issue 11308337: Improve C++ code for string splittig (Dromaeo benchmark). (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 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 side-by-side diff with in-line comments
Download patch
Index: runtime/vm/object.h
===================================================================
--- runtime/vm/object.h (revision 15670)
+++ runtime/vm/object.h (working copy)
@@ -4000,6 +4000,14 @@
const String& str,
Heap::Space space);
+ // High performance version of substring for one-byte strings.
+ // "str" must be OneByteString.
+ static RawOneByteString* SubStringUnchecked(const String& str,
+ intptr_t begin_index,
+ intptr_t length,
+ Isolate* isolate,
+ Heap::Space space);
+
static const ClassId kClassId = kOneByteStringCid;
static RawOneByteString* null() {
@@ -4418,6 +4426,10 @@
}
void Add(const Object& value, Heap::Space space = Heap::kNew) const;
+ void Add(const Object& value,
+ Isolate* isolate,
+ Heap::Space space = Heap::kNew) const;
+
void Grow(intptr_t new_capacity, Heap::Space space = Heap::kNew) const;
RawObject* RemoveLast() const;

Powered by Google App Engine
This is Rietveld 408576698