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

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: Address final review comments Created 9 years, 1 month 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 | « runtime/vm/object_test.cc ('k') | runtime/vm/raw_object.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/raw_object.h
diff --git a/runtime/vm/raw_object.h b/runtime/vm/raw_object.h
index ddb649505e83964a6a5e84248c9a861ce15b9807..e1296dc90ab96d289a6d0035c0b2a03b3a79db34 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(ByteBuffer) \
V(Closure) \
V(Stacktrace) \
V(JSRegExp) \
@@ -718,6 +719,16 @@ class RawImmutableArray : public RawArray {
};
+class RawByteBuffer : public RawInstance {
+ RAW_HEAP_OBJECT_IMPLEMENTATION(ByteBuffer);
+
+ RawObject** from() { return reinterpret_cast<RawObject**>(&ptr()->length_); }
+ RawSmi* length_;
+ RawObject** to() { return reinterpret_cast<RawObject**>(&ptr()->length_); }
+ uint8_t* data_;
+};
+
+
class RawClosure : public RawInstance {
RAW_HEAP_OBJECT_IMPLEMENTATION(Closure);
« no previous file with comments | « runtime/vm/object_test.cc ('k') | runtime/vm/raw_object.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698