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

Side by Side Diff: runtime/vm/raw_object.h

Issue 23619026: Simplify VM internal representation of a mixin application clause (MixinAppType (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 3 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
« no previous file with comments | « runtime/vm/parser.cc ('k') | tests/language/language_analyzer.status » ('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) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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_RAW_OBJECT_H_ 5 #ifndef VM_RAW_OBJECT_H_
6 #define VM_RAW_OBJECT_H_ 6 #define VM_RAW_OBJECT_H_
7 7
8 #include "platform/assert.h" 8 #include "platform/assert.h"
9 #include "vm/globals.h" 9 #include "vm/globals.h"
10 #include "vm/token.h" 10 #include "vm/token.h"
(...skipping 1183 matching lines...) Expand 10 before | Expand all | Expand 10 after
1194 } 1194 }
1195 bool is_being_checked_; 1195 bool is_being_checked_;
1196 }; 1196 };
1197 1197
1198 1198
1199 class RawMixinAppType : public RawAbstractType { 1199 class RawMixinAppType : public RawAbstractType {
1200 private: 1200 private:
1201 RAW_HEAP_OBJECT_IMPLEMENTATION(MixinAppType); 1201 RAW_HEAP_OBJECT_IMPLEMENTATION(MixinAppType);
1202 1202
1203 RawObject** from() { 1203 RawObject** from() {
1204 return reinterpret_cast<RawObject**>(&ptr()->super_type_); 1204 return reinterpret_cast<RawObject**>(&ptr()->mixins_);
1205 } 1205 }
1206 RawAbstractType* super_type_; 1206 RawArray* mixins_; // Array of synthesized mixin application classes.
1207 RawArray* mixin_types_;
1208 RawObject** to() { 1207 RawObject** to() {
1209 return reinterpret_cast<RawObject**>(&ptr()->mixin_types_); 1208 return reinterpret_cast<RawObject**>(&ptr()->mixins_);
1210 } 1209 }
1211 }; 1210 };
1212 1211
1213 1212
1214 class RawNumber : public RawInstance { 1213 class RawNumber : public RawInstance {
1215 RAW_OBJECT_IMPLEMENTATION(Number); 1214 RAW_OBJECT_IMPLEMENTATION(Number);
1216 }; 1215 };
1217 1216
1218 1217
1219 class RawInteger : public RawNumber { 1218 class RawInteger : public RawNumber {
(...skipping 492 matching lines...) Expand 10 before | Expand all | Expand 10 after
1712 // Make sure this is updated when new TypedData types are added. 1711 // Make sure this is updated when new TypedData types are added.
1713 ASSERT(kTypedDataInt8ArrayViewCid == kTypedDataInt8ArrayCid + 12); 1712 ASSERT(kTypedDataInt8ArrayViewCid == kTypedDataInt8ArrayCid + 12);
1714 ASSERT(kExternalTypedDataInt8ArrayCid == kTypedDataInt8ArrayViewCid + 13); 1713 ASSERT(kExternalTypedDataInt8ArrayCid == kTypedDataInt8ArrayViewCid + 13);
1715 ASSERT(kNullCid == kExternalTypedDataInt8ArrayCid + 12); 1714 ASSERT(kNullCid == kExternalTypedDataInt8ArrayCid + 12);
1716 return (kNullCid - kTypedDataInt8ArrayCid); 1715 return (kNullCid - kTypedDataInt8ArrayCid);
1717 } 1716 }
1718 1717
1719 } // namespace dart 1718 } // namespace dart
1720 1719
1721 #endif // VM_RAW_OBJECT_H_ 1720 #endif // VM_RAW_OBJECT_H_
OLDNEW
« no previous file with comments | « runtime/vm/parser.cc ('k') | tests/language/language_analyzer.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698