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

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
« no previous file with comments | « vm/parser.cc ('k') | vm/snapshot.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) 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 1131 matching lines...) Expand 10 before | Expand all | Expand 10 after
1142 return reinterpret_cast<RawObject**>(address_of_length + kWordSize); 1142 return reinterpret_cast<RawObject**>(address_of_length + kWordSize);
1143 } 1143 }
1144 RawObject** to(intptr_t length) { 1144 RawObject** to(intptr_t length) {
1145 return reinterpret_cast<RawObject**>(&ptr()->data()[length - 1]); 1145 return reinterpret_cast<RawObject**>(&ptr()->data()[length - 1]);
1146 } 1146 }
1147 1147
1148 friend class RawCode; 1148 friend class RawCode;
1149 friend class RawImmutableArray; 1149 friend class RawImmutableArray;
1150 friend class SnapshotReader; 1150 friend class SnapshotReader;
1151 friend class GrowableObjectArray; 1151 friend class GrowableObjectArray;
1152 friend class Object;
1152 }; 1153 };
1153 1154
1154 1155
1155 class RawImmutableArray : public RawArray { 1156 class RawImmutableArray : public RawArray {
1156 RAW_HEAP_OBJECT_IMPLEMENTATION(ImmutableArray); 1157 RAW_HEAP_OBJECT_IMPLEMENTATION(ImmutableArray);
1157 1158
1158 friend class SnapshotReader; 1159 friend class SnapshotReader;
1159 }; 1160 };
1160 1161
1161 1162
(...skipping 371 matching lines...) Expand 10 before | Expand all | Expand 10 after
1533 kExternalUint64ArrayCid == kByteArrayCid + 18 && 1534 kExternalUint64ArrayCid == kByteArrayCid + 18 &&
1534 kExternalFloat32ArrayCid == kByteArrayCid + 19 && 1535 kExternalFloat32ArrayCid == kByteArrayCid + 19 &&
1535 kExternalFloat64ArrayCid == kByteArrayCid + 20 && 1536 kExternalFloat64ArrayCid == kByteArrayCid + 20 &&
1536 kStacktraceCid == kByteArrayCid + 21); 1537 kStacktraceCid == kByteArrayCid + 21);
1537 return (index >= kByteArrayCid && index <= kExternalFloat64ArrayCid); 1538 return (index >= kByteArrayCid && index <= kExternalFloat64ArrayCid);
1538 } 1539 }
1539 1540
1540 } // namespace dart 1541 } // namespace dart
1541 1542
1542 #endif // VM_RAW_OBJECT_H_ 1543 #endif // VM_RAW_OBJECT_H_
OLDNEW
« no previous file with comments | « vm/parser.cc ('k') | vm/snapshot.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698