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

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

Issue 11411139: - Make RawObject::tags_ private. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
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
« no previous file with comments | « no previous file | 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 332 matching lines...) Expand 10 before | Expand all | Expand 10 after
343 static bool IsNumberClassId(intptr_t index); 343 static bool IsNumberClassId(intptr_t index);
344 static bool IsIntegerClassId(intptr_t index); 344 static bool IsIntegerClassId(intptr_t index);
345 static bool IsStringClassId(intptr_t index); 345 static bool IsStringClassId(intptr_t index);
346 static bool IsOneByteStringClassId(intptr_t index); 346 static bool IsOneByteStringClassId(intptr_t index);
347 static bool IsTwoByteStringClassId(intptr_t index); 347 static bool IsTwoByteStringClassId(intptr_t index);
348 static bool IsExternalStringClassId(intptr_t index); 348 static bool IsExternalStringClassId(intptr_t index);
349 static bool IsBuiltinListClassId(intptr_t index); 349 static bool IsBuiltinListClassId(intptr_t index);
350 static bool IsByteArrayClassId(intptr_t index); 350 static bool IsByteArrayClassId(intptr_t index);
351 static bool IsExternalByteArrayClassId(intptr_t index); 351 static bool IsExternalByteArrayClassId(intptr_t index);
352 352
353 protected: 353 private:
354 uword tags_; // Various object tags (bits). 354 uword tags_; // Various object tags (bits).
355 355
356 private:
357 class FreeBit : public BitField<bool, kFreeBit, 1> {}; 356 class FreeBit : public BitField<bool, kFreeBit, 1> {};
358 357
359 class MarkBit : public BitField<bool, kMarkBit, 1> {}; 358 class MarkBit : public BitField<bool, kMarkBit, 1> {};
360 359
361 class WatchedBit : public BitField<bool, kWatchedBit, 1> {}; 360 class WatchedBit : public BitField<bool, kWatchedBit, 1> {};
362 361
363 class CanonicalObjectTag : public BitField<bool, kCanonicalBit, 1> {}; 362 class CanonicalObjectTag : public BitField<bool, kCanonicalBit, 1> {};
364 363
365 class CreatedFromSnapshotTag : public BitField<bool, kFromSnapshotBit, 1> {}; 364 class CreatedFromSnapshotTag : public BitField<bool, kFromSnapshotBit, 1> {};
366 365
(...skipping 1271 matching lines...) Expand 10 before | Expand all | Expand 10 after
1638 kExternalUint64ArrayCid == kExternalInt8ArrayCid + 7 && 1637 kExternalUint64ArrayCid == kExternalInt8ArrayCid + 7 &&
1639 kExternalFloat32ArrayCid == kExternalInt8ArrayCid + 8 && 1638 kExternalFloat32ArrayCid == kExternalInt8ArrayCid + 8 &&
1640 kExternalFloat64ArrayCid == kExternalInt8ArrayCid + 9 && 1639 kExternalFloat64ArrayCid == kExternalInt8ArrayCid + 9 &&
1641 kStacktraceCid == kExternalInt8ArrayCid + 10); 1640 kStacktraceCid == kExternalInt8ArrayCid + 10);
1642 return (index >= kExternalInt8ArrayCid && index <= kExternalFloat64ArrayCid); 1641 return (index >= kExternalInt8ArrayCid && index <= kExternalFloat64ArrayCid);
1643 } 1642 }
1644 1643
1645 } // namespace dart 1644 } // namespace dart
1646 1645
1647 #endif // VM_RAW_OBJECT_H_ 1646 #endif // VM_RAW_OBJECT_H_
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698