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

Side by Side Diff: vm/raw_object.h

Issue 10827249: - Register canonical names for internal VM classes and get rid of the method GetSingletonClassName (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
Patch Set: Created 8 years, 4 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) 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 1208 matching lines...) Expand 10 before | Expand all | Expand 10 after
1219 return reinterpret_cast<RawObject**>(address_of_length + kWordSize); 1219 return reinterpret_cast<RawObject**>(address_of_length + kWordSize);
1220 } 1220 }
1221 RawObject** to(intptr_t length) { 1221 RawObject** to(intptr_t length) {
1222 return reinterpret_cast<RawObject**>(&ptr()->data()[length - 1]); 1222 return reinterpret_cast<RawObject**>(&ptr()->data()[length - 1]);
1223 } 1223 }
1224 1224
1225 friend class RawCode; 1225 friend class RawCode;
1226 friend class RawImmutableArray; 1226 friend class RawImmutableArray;
1227 friend class SnapshotReader; 1227 friend class SnapshotReader;
1228 friend class GrowableObjectArray; 1228 friend class GrowableObjectArray;
1229 friend class Object;
1229 }; 1230 };
1230 1231
1231 1232
1232 class RawImmutableArray : public RawArray { 1233 class RawImmutableArray : public RawArray {
1233 RAW_HEAP_OBJECT_IMPLEMENTATION(ImmutableArray); 1234 RAW_HEAP_OBJECT_IMPLEMENTATION(ImmutableArray);
1234 1235
1235 friend class SnapshotReader; 1236 friend class SnapshotReader;
1236 }; 1237 };
1237 1238
1238 1239
(...skipping 371 matching lines...) Expand 10 before | Expand all | Expand 10 after
1610 kExternalUint64ArrayCid == kByteArrayCid + 18 && 1611 kExternalUint64ArrayCid == kByteArrayCid + 18 &&
1611 kExternalFloat32ArrayCid == kByteArrayCid + 19 && 1612 kExternalFloat32ArrayCid == kByteArrayCid + 19 &&
1612 kExternalFloat64ArrayCid == kByteArrayCid + 20 && 1613 kExternalFloat64ArrayCid == kByteArrayCid + 20 &&
1613 kStacktraceCid == kByteArrayCid + 21); 1614 kStacktraceCid == kByteArrayCid + 21);
1614 return (index >= kByteArrayCid && index <= kExternalFloat64ArrayCid); 1615 return (index >= kByteArrayCid && index <= kExternalFloat64ArrayCid);
1615 } 1616 }
1616 1617
1617 } // namespace dart 1618 } // namespace dart
1618 1619
1619 #endif // VM_RAW_OBJECT_H_ 1620 #endif // VM_RAW_OBJECT_H_
OLDNEW
« vm/object.h ('K') | « vm/object_test.cc ('k') | vm/snapshot.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698