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

Side by Side Diff: vm/object_store.h

Issue 9965042: - Add a class index to the classes. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
Patch Set: Created 8 years, 8 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 unified diff | Download patch | Annotate | Revision Log
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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 kInternalByteArrayClass, 54 kInternalByteArrayClass,
55 kExternalByteArrayClass, 55 kExternalByteArrayClass,
56 kStacktraceClass, 56 kStacktraceClass,
57 kJSRegExpClass, 57 kJSRegExpClass,
58 kMaxId, 58 kMaxId,
59 kInvalidIndex = -1, 59 kInvalidIndex = -1,
60 }; 60 };
61 61
62 ~ObjectStore(); 62 ~ObjectStore();
63 63
64 RawClass* object_class() const { return object_class_; } 64 RawClass* object_class() const {
65 ASSERT(object_class_ != Object::null());
66 return object_class_;
67 }
65 void set_object_class(const Class& value) { object_class_ = value.raw(); } 68 void set_object_class(const Class& value) { object_class_ = value.raw(); }
66 static intptr_t object_class_offset() { 69 static intptr_t object_class_offset() {
67 return OFFSET_OF(ObjectStore, object_class_); 70 return OFFSET_OF(ObjectStore, object_class_);
68 } 71 }
69 72
70 RawType* object_type() const { return object_type_; } 73 RawType* object_type() const { return object_type_; }
71 void set_object_type(const Type& value) { 74 void set_object_type(const Type& value) {
72 object_type_ = value.raw(); 75 object_type_ = value.raw();
73 } 76 }
74 77
(...skipping 336 matching lines...) Expand 10 before | Expand all | Expand 10 after
411 RawObject** to() { return reinterpret_cast<RawObject**>(&keyword_symbols_); } 414 RawObject** to() { return reinterpret_cast<RawObject**>(&keyword_symbols_); }
412 415
413 friend class SnapshotReader; 416 friend class SnapshotReader;
414 417
415 DISALLOW_COPY_AND_ASSIGN(ObjectStore); 418 DISALLOW_COPY_AND_ASSIGN(ObjectStore);
416 }; 419 };
417 420
418 } // namespace dart 421 } // namespace dart
419 422
420 #endif // VM_OBJECT_STORE_H_ 423 #endif // VM_OBJECT_STORE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698