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

Unified Diff: runtime/vm/object_store.h

Issue 9195031: Add ByteArray interface and provide internal and external implementations. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: address remaining review comments Created 8 years, 11 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 | « runtime/vm/object.cc ('k') | runtime/vm/object_store.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/object_store.h
diff --git a/runtime/vm/object_store.h b/runtime/vm/object_store.h
index 77a75e192d712b68145c99551f9951cf39668e3b..3593e319d5cd36a2a070648f315f08be81f0b738 100644
--- a/runtime/vm/object_store.h
+++ b/runtime/vm/object_store.h
@@ -35,6 +35,7 @@ class ObjectStore {
kBoolInterface,
kStringInterface,
kListInterface,
+ kByteArrayInterface,
kObjectClass,
kSmiClass,
kMintClass,
@@ -49,7 +50,8 @@ class ObjectStore {
kBoolClass,
kArrayClass,
kImmutableArrayClass,
- kByteBufferClass,
+ kInternalByteArrayClass,
+ kExternalByteArrayClass,
kStacktraceClass,
kJSRegExpClass,
kMaxId,
@@ -181,14 +183,28 @@ class ObjectStore {
return OFFSET_OF(ObjectStore, array_class_);
}
+ RawType* byte_array_interface() const { return byte_array_interface_; }
+ void set_byte_array_interface(const Type& value) {
+ byte_array_interface_ = value.raw();
+ }
+
RawClass* immutable_array_class() const { return immutable_array_class_; }
void set_immutable_array_class(const Class& value) {
immutable_array_class_ = value.raw();
}
- RawClass* byte_buffer_class() const { return byte_buffer_class_; }
- void set_byte_buffer_class(const Class& value) {
- byte_buffer_class_ = value.raw();
+ RawClass* internal_byte_array_class() const {
+ return internal_byte_array_class_;
+ }
+ void set_internal_byte_array_class(const Class& value) {
+ internal_byte_array_class_ = value.raw();
+ }
+
+ RawClass* external_byte_array_class() const {
+ return external_byte_array_class_;
+ }
+ void set_external_byte_array_class(const Class& value) {
+ external_byte_array_class_ = value.raw();
}
RawClass* stacktrace_class() const {
@@ -329,7 +345,9 @@ class ObjectStore {
RawType* list_interface_;
RawClass* array_class_;
RawClass* immutable_array_class_;
- RawClass* byte_buffer_class_;
+ RawType* byte_array_interface_;
+ RawClass* internal_byte_array_class_;
+ RawClass* external_byte_array_class_;
RawClass* stacktrace_class_;
RawClass* jsregexp_class_;
RawBool* true_value_;
« no previous file with comments | « runtime/vm/object.cc ('k') | runtime/vm/object_store.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698