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

Side by Side Diff: vm/raw_object.h

Issue 11360114: - Add functionality to morph a string into an external string (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
Patch Set: Created 8 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
« vm/object.cc ('K') | « vm/object.cc ('k') | no next file » | 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 1186 matching lines...) Expand 10 before | Expand all | Expand 10 after
1197 } 1197 }
1198 RawObject** to(intptr_t length) { 1198 RawObject** to(intptr_t length) {
1199 return reinterpret_cast<RawObject**>(&ptr()->data()[length - 1]); 1199 return reinterpret_cast<RawObject**>(&ptr()->data()[length - 1]);
1200 } 1200 }
1201 1201
1202 friend class RawCode; 1202 friend class RawCode;
1203 friend class RawImmutableArray; 1203 friend class RawImmutableArray;
1204 friend class SnapshotReader; 1204 friend class SnapshotReader;
1205 friend class GrowableObjectArray; 1205 friend class GrowableObjectArray;
1206 friend class Object; 1206 friend class Object;
1207 friend class String;
1207 }; 1208 };
1208 1209
1209 1210
1210 class RawImmutableArray : public RawArray { 1211 class RawImmutableArray : public RawArray {
1211 RAW_HEAP_OBJECT_IMPLEMENTATION(ImmutableArray); 1212 RAW_HEAP_OBJECT_IMPLEMENTATION(ImmutableArray);
1212 1213
1213 friend class SnapshotReader; 1214 friend class SnapshotReader;
1214 }; 1215 };
1215 1216
1216 1217
(...skipping 393 matching lines...) Expand 10 before | Expand all | Expand 10 after
1610 kExternalUint64ArrayCid == kExternalInt8ArrayCid + 7 && 1611 kExternalUint64ArrayCid == kExternalInt8ArrayCid + 7 &&
1611 kExternalFloat32ArrayCid == kExternalInt8ArrayCid + 8 && 1612 kExternalFloat32ArrayCid == kExternalInt8ArrayCid + 8 &&
1612 kExternalFloat64ArrayCid == kExternalInt8ArrayCid + 9 && 1613 kExternalFloat64ArrayCid == kExternalInt8ArrayCid + 9 &&
1613 kStacktraceCid == kExternalInt8ArrayCid + 10); 1614 kStacktraceCid == kExternalInt8ArrayCid + 10);
1614 return (index >= kExternalInt8ArrayCid && index <= kExternalFloat64ArrayCid); 1615 return (index >= kExternalInt8ArrayCid && 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.cc ('K') | « vm/object.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698