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

Unified Diff: runtime/vm/raw_object.cc

Issue 8429027: Add an external array type to support typed arrays. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 9 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
Index: runtime/vm/raw_object.cc
diff --git a/runtime/vm/raw_object.cc b/runtime/vm/raw_object.cc
index 5e2dc3efa42469e429e3f163c3232ba6add5da43..e9654110b628892e89e34f696698599e24ad4a5c 100644
--- a/runtime/vm/raw_object.cc
+++ b/runtime/vm/raw_object.cc
@@ -476,6 +476,14 @@ intptr_t RawImmutableArray::VisitImmutableArrayPointers(
}
+intptr_t RawExternalArray::VisitExternalArrayPointers(
+ RawExternalArray* raw_obj, ObjectPointerVisitor* visitor) {
+ // Make sure that we got here with the tagged pointer as this.
+ ASSERT(raw_obj->IsHeapObject());
siva 2011/11/02 17:05:31 I would add visitor->VisitPointers(from, to) for c
cshapiro 2011/11/04 18:16:21 Added. Done.
+ return ExternalArray::InstanceSize();
+}
+
+
intptr_t RawClosure::VisitClosurePointers(RawClosure* raw_obj,
ObjectPointerVisitor* visitor) {
// Make sure that we got here with the tagged pointer as this.

Powered by Google App Engine
This is Rietveld 408576698