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

Unified Diff: runtime/vm/raw_object.h

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.h
diff --git a/runtime/vm/raw_object.h b/runtime/vm/raw_object.h
index 5872b4cd6434c0b067c82480167bfa28c1da7cfd..8fe419a42fb8855b2718ca6b0049294252047889 100644
--- a/runtime/vm/raw_object.h
+++ b/runtime/vm/raw_object.h
@@ -52,6 +52,7 @@ namespace dart {
V(Bool) \
V(Array) \
V(ImmutableArray) \
+ V(ExternalArray) \
V(Closure) \
V(Stacktrace) \
V(JSRegExp) \
@@ -719,6 +720,14 @@ class RawImmutableArray : public RawArray {
};
+class RawExternalArray : public RawInstance {
+ RAW_HEAP_OBJECT_IMPLEMENTATION(ExternalArray);
+
+ RawSmi* length_;
siva 2011/11/02 17:05:31 Do we want this to be RawSmi or intptr_t i.e have
cshapiro 2011/11/04 18:16:21 I am partial to having the length parameter to be
+ uint8_t* data_;
+};
+
+
class RawClosure : public RawInstance {
RAW_HEAP_OBJECT_IMPLEMENTATION(Closure);

Powered by Google App Engine
This is Rietveld 408576698