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

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

Issue 11464011: Windows complains: (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years 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/object.h ('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 1253 matching lines...) Expand 10 before | Expand all | Expand 10 after
1264 RAW_HEAP_OBJECT_IMPLEMENTATION(Int8Array); 1264 RAW_HEAP_OBJECT_IMPLEMENTATION(Int8Array);
1265 1265
1266 // Variable length data follows here. 1266 // Variable length data follows here.
1267 int8_t data_[0]; 1267 int8_t data_[0];
1268 }; 1268 };
1269 1269
1270 1270
1271 class RawUint8Array : public RawByteArray { 1271 class RawUint8Array : public RawByteArray {
1272 RAW_HEAP_OBJECT_IMPLEMENTATION(Uint8Array); 1272 RAW_HEAP_OBJECT_IMPLEMENTATION(Uint8Array);
1273 1273
1274 protected:
1275 // Variable length data follows here. 1274 // Variable length data follows here.
1276 uint8_t data_[0]; 1275 uint8_t data_[0];
1277 }; 1276 };
1278 1277
1279 1278
1280 class RawUint8ClampedArray : public RawUint8Array { 1279 class RawUint8ClampedArray : public RawByteArray {
1281 RAW_HEAP_OBJECT_IMPLEMENTATION(Uint8ClampedArray); 1280 RAW_HEAP_OBJECT_IMPLEMENTATION(Uint8ClampedArray);
1281
1282 // Variable length data follows here.
1283 uint8_t data_[0];
1282 }; 1284 };
1283 1285
1284 1286
1285 class RawInt16Array : public RawByteArray { 1287 class RawInt16Array : public RawByteArray {
1286 RAW_HEAP_OBJECT_IMPLEMENTATION(Int16Array); 1288 RAW_HEAP_OBJECT_IMPLEMENTATION(Int16Array);
1287 1289
1288 // Variable length data follows here. 1290 // Variable length data follows here.
1289 int16_t data_[0]; 1291 int16_t data_[0];
1290 }; 1292 };
1291 1293
(...skipping 362 matching lines...) Expand 10 before | Expand all | Expand 10 after
1654 kExternalUint64ArrayCid == kExternalInt8ArrayCid + 8 && 1656 kExternalUint64ArrayCid == kExternalInt8ArrayCid + 8 &&
1655 kExternalFloat32ArrayCid == kExternalInt8ArrayCid + 9 && 1657 kExternalFloat32ArrayCid == kExternalInt8ArrayCid + 9 &&
1656 kExternalFloat64ArrayCid == kExternalInt8ArrayCid + 10 && 1658 kExternalFloat64ArrayCid == kExternalInt8ArrayCid + 10 &&
1657 kStacktraceCid == kExternalInt8ArrayCid + 11); 1659 kStacktraceCid == kExternalInt8ArrayCid + 11);
1658 return (index >= kExternalInt8ArrayCid && index <= kExternalFloat64ArrayCid); 1660 return (index >= kExternalInt8ArrayCid && index <= kExternalFloat64ArrayCid);
1659 } 1661 }
1660 1662
1661 } // namespace dart 1663 } // namespace dart
1662 1664
1663 #endif // VM_RAW_OBJECT_H_ 1665 #endif // VM_RAW_OBJECT_H_
OLDNEW
« no previous file with comments | « runtime/vm/object.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698