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

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

Issue 266913010: Refactor 'dart:profiler' UserTag API (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 7 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 | « runtime/vm/profiler.h ('k') | runtime/vm/symbols.h » ('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 1612 matching lines...) Expand 10 before | Expand all | Expand 10 after
1623 RawString* label_; 1623 RawString* label_;
1624 1624
1625 RawObject** to() { 1625 RawObject** to() {
1626 return reinterpret_cast<RawObject**>(&ptr()->label_); 1626 return reinterpret_cast<RawObject**>(&ptr()->label_);
1627 } 1627 }
1628 1628
1629 // Isolate unique tag. 1629 // Isolate unique tag.
1630 uword tag_; 1630 uword tag_;
1631 1631
1632 friend class SnapshotReader; 1632 friend class SnapshotReader;
1633 friend class Object;
1633 1634
1634 public: 1635 public:
1635 uword tag() const { return tag_; } 1636 uword tag() const { return tag_; }
1636 }; 1637 };
1637 1638
1638 // Class Id predicates. 1639 // Class Id predicates.
1639 1640
1640 inline bool RawObject::IsErrorClassId(intptr_t index) { 1641 inline bool RawObject::IsErrorClassId(intptr_t index) {
1641 // Make sure this function is updated when new Error types are added. 1642 // Make sure this function is updated when new Error types are added.
1642 ASSERT(kApiErrorCid == kErrorCid + 1 && 1643 ASSERT(kApiErrorCid == kErrorCid + 1 &&
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after
1834 // Make sure this is updated when new TypedData types are added. 1835 // Make sure this is updated when new TypedData types are added.
1835 ASSERT(kTypedDataInt8ArrayViewCid == kTypedDataInt8ArrayCid + 14); 1836 ASSERT(kTypedDataInt8ArrayViewCid == kTypedDataInt8ArrayCid + 14);
1836 ASSERT(kExternalTypedDataInt8ArrayCid == kTypedDataInt8ArrayViewCid + 15); 1837 ASSERT(kExternalTypedDataInt8ArrayCid == kTypedDataInt8ArrayViewCid + 15);
1837 ASSERT(kNullCid == kExternalTypedDataInt8ArrayCid + 14); 1838 ASSERT(kNullCid == kExternalTypedDataInt8ArrayCid + 14);
1838 return (kNullCid - kTypedDataInt8ArrayCid); 1839 return (kNullCid - kTypedDataInt8ArrayCid);
1839 } 1840 }
1840 1841
1841 } // namespace dart 1842 } // namespace dart
1842 1843
1843 #endif // VM_RAW_OBJECT_H_ 1844 #endif // VM_RAW_OBJECT_H_
OLDNEW
« no previous file with comments | « runtime/vm/profiler.h ('k') | runtime/vm/symbols.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698