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

Side by Side Diff: runtime/vm/object_store.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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « runtime/vm/object.cc ('k') | runtime/vm/object_store.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 #ifndef VM_OBJECT_STORE_H_ 5 #ifndef VM_OBJECT_STORE_H_
6 #define VM_OBJECT_STORE_H_ 6 #define VM_OBJECT_STORE_H_
7 7
8 #include "vm/object.h" 8 #include "vm/object.h"
9 9
10 namespace dart { 10 namespace dart {
(...skipping 28 matching lines...) Expand all
39 kSmiClass, 39 kSmiClass,
40 kMintClass, 40 kMintClass,
41 kBigintClass, 41 kBigintClass,
42 kDoubleClass, 42 kDoubleClass,
43 kOneByteStringClass, 43 kOneByteStringClass,
44 kTwoByteStringClass, 44 kTwoByteStringClass,
45 kFourByteStringClass, 45 kFourByteStringClass,
46 kBoolClass, 46 kBoolClass,
47 kArrayClass, 47 kArrayClass,
48 kImmutableArrayClass, 48 kImmutableArrayClass,
49 kByteBufferClass,
49 kUnhandledExceptionClass, 50 kUnhandledExceptionClass,
50 kStacktraceClass, 51 kStacktraceClass,
51 kJSRegExpClass, 52 kJSRegExpClass,
52 kMaxId, 53 kMaxId,
53 kInvalidIndex = -1, 54 kInvalidIndex = -1,
54 }; 55 };
55 56
56 ~ObjectStore(); 57 ~ObjectStore();
57 58
58 RawClass* object_class() const { return object_class_; } 59 RawClass* object_class() const { return object_class_; }
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 void set_array_class(const Class& value) { array_class_ = value.raw(); } 142 void set_array_class(const Class& value) { array_class_ = value.raw(); }
142 static intptr_t array_class_offset() { 143 static intptr_t array_class_offset() {
143 return OFFSET_OF(ObjectStore, array_class_); 144 return OFFSET_OF(ObjectStore, array_class_);
144 } 145 }
145 146
146 RawClass* immutable_array_class() const { return immutable_array_class_; } 147 RawClass* immutable_array_class() const { return immutable_array_class_; }
147 void set_immutable_array_class(const Class& value) { 148 void set_immutable_array_class(const Class& value) {
148 immutable_array_class_ = value.raw(); 149 immutable_array_class_ = value.raw();
149 } 150 }
150 151
152 RawClass* byte_buffer_class() const { return byte_buffer_class_; }
153 void set_byte_buffer_class(const Class& value) {
154 byte_buffer_class_ = value.raw();
155 }
156
151 RawClass* unhandled_exception_class() const { 157 RawClass* unhandled_exception_class() const {
152 return unhandled_exception_class_; 158 return unhandled_exception_class_;
153 } 159 }
154 void set_unhandled_exception_class(const Class& value) { 160 void set_unhandled_exception_class(const Class& value) {
155 unhandled_exception_class_ = value.raw(); 161 unhandled_exception_class_ = value.raw();
156 } 162 }
157 static intptr_t unhandled_exception_class_offset() { 163 static intptr_t unhandled_exception_class_offset() {
158 return OFFSET_OF(ObjectStore, unhandled_exception_class_); 164 return OFFSET_OF(ObjectStore, unhandled_exception_class_);
159 } 165 }
160 166
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
257 RawClass* double_class_; 263 RawClass* double_class_;
258 RawType* string_interface_; 264 RawType* string_interface_;
259 RawClass* one_byte_string_class_; 265 RawClass* one_byte_string_class_;
260 RawClass* two_byte_string_class_; 266 RawClass* two_byte_string_class_;
261 RawClass* four_byte_string_class_; 267 RawClass* four_byte_string_class_;
262 RawType* bool_interface_; 268 RawType* bool_interface_;
263 RawClass* bool_class_; 269 RawClass* bool_class_;
264 RawType* list_interface_; 270 RawType* list_interface_;
265 RawClass* array_class_; 271 RawClass* array_class_;
266 RawClass* immutable_array_class_; 272 RawClass* immutable_array_class_;
273 RawClass* byte_buffer_class_;
267 RawClass* unhandled_exception_class_; 274 RawClass* unhandled_exception_class_;
268 RawClass* stacktrace_class_; 275 RawClass* stacktrace_class_;
269 RawClass* jsregexp_class_; 276 RawClass* jsregexp_class_;
270 RawBool* true_value_; 277 RawBool* true_value_;
271 RawBool* false_value_; 278 RawBool* false_value_;
272 RawArray* empty_array_; 279 RawArray* empty_array_;
273 RawArray* symbol_table_; 280 RawArray* symbol_table_;
274 RawLibrary* core_library_; 281 RawLibrary* core_library_;
275 RawLibrary* core_impl_library_; 282 RawLibrary* core_impl_library_;
276 RawLibrary* root_library_; 283 RawLibrary* root_library_;
277 RawLibrary* registered_libraries_; 284 RawLibrary* registered_libraries_;
278 RawArray* pending_classes_; 285 RawArray* pending_classes_;
279 RawString* sticky_error_; 286 RawString* sticky_error_;
280 RawContext* empty_context_; 287 RawContext* empty_context_;
281 RawObject** to() { return reinterpret_cast<RawObject**>(&empty_context_); } 288 RawObject** to() { return reinterpret_cast<RawObject**>(&empty_context_); }
282 289
283 friend class SnapshotReader; 290 friend class SnapshotReader;
284 291
285 DISALLOW_COPY_AND_ASSIGN(ObjectStore); 292 DISALLOW_COPY_AND_ASSIGN(ObjectStore);
286 }; 293 };
287 294
288 } // namespace dart 295 } // namespace dart
289 296
290 #endif // VM_OBJECT_STORE_H_ 297 #endif // VM_OBJECT_STORE_H_
OLDNEW
« 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