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

Unified Diff: runtime/vm/object.h

Issue 536043002: Merge array allocation and List._copyFromObjectArray to provide fast path for large arrays. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 3 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
Index: runtime/vm/object.h
diff --git a/runtime/vm/object.h b/runtime/vm/object.h
index 1fd813208c1a2e417665252cec4919bf1088d390..ac7bf97c21c4e48590aea2afd1ae022a5c50ac2c 100644
--- a/runtime/vm/object.h
+++ b/runtime/vm/object.h
@@ -6242,6 +6242,10 @@ class Array : public Instance {
// set to an empty array.
static RawArray* MakeArray(const GrowableObjectArray& growable_array);
+ RawArray* Slice(intptr_t start,
+ intptr_t count,
+ bool with_type_argument) const;
+
protected:
static RawArray* New(intptr_t class_id,
intptr_t len,

Powered by Google App Engine
This is Rietveld 408576698