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

Unified Diff: runtime/lib/growable_array.cc

Issue 134893003: Add internal operation that converts a growable list to a fixed list. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Rename native to STaticClass_toFixedLength Created 6 years, 10 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 | runtime/lib/internal_patch.dart » ('j') | runtime/lib/internal_patch.dart » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/lib/growable_array.cc
diff --git a/runtime/lib/growable_array.cc b/runtime/lib/growable_array.cc
index 5cbf58537b873429ba27668111357b191b34fd9c..df146bc208278200bae3866a7d1d51022391014f 100644
--- a/runtime/lib/growable_array.cc
+++ b/runtime/lib/growable_array.cc
@@ -91,4 +91,11 @@ DEFINE_NATIVE_ENTRY(GrowableList_setData, 2) {
return Object::null();
}
+
+DEFINE_NATIVE_ENTRY(StaticClass_toFixedLength, 1) {
floitsch 2014/02/10 13:25:49 StaticClass_makeListFixedLength
Lasse Reichstein Nielsen 2014/02/11 07:08:47 Now "Internal_makeListFixedLength".
+ GET_NON_NULL_NATIVE_ARGUMENT(GrowableObjectArray, array,
+ arguments->NativeArgAt(0));
+ return Array::MakeArray(array);
+}
+
} // namespace dart
« no previous file with comments | « no previous file | runtime/lib/internal_patch.dart » ('j') | runtime/lib/internal_patch.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698