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

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

Issue 51653006: Track live instance and allocation counts for classes (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 11 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
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_OBJECT_H_ 5 #ifndef VM_OBJECT_H_
6 #define VM_OBJECT_H_ 6 #define VM_OBJECT_H_
7 7
8 #include "include/dart_api.h" 8 #include "include/dart_api.h"
9 #include "platform/assert.h" 9 #include "platform/assert.h"
10 #include "platform/utils.h" 10 #include "platform/utils.h"
(...skipping 1079 matching lines...) Expand 10 before | Expand all | Expand 10 after
1090 class ClassFinalizedBits : public BitField<RawClass::ClassFinalizedState, 1090 class ClassFinalizedBits : public BitField<RawClass::ClassFinalizedState,
1091 kClassFinalizedBits, kClassFinalizedSize> {}; // NOLINT 1091 kClassFinalizedBits, kClassFinalizedSize> {}; // NOLINT
1092 class AbstractBit : public BitField<bool, kAbstractBit, 1> {}; 1092 class AbstractBit : public BitField<bool, kAbstractBit, 1> {};
1093 class PatchBit : public BitField<bool, kPatchBit, 1> {}; 1093 class PatchBit : public BitField<bool, kPatchBit, 1> {};
1094 class SynthesizedClassBit : public BitField<bool, kSynthesizedClassBit, 1> {}; 1094 class SynthesizedClassBit : public BitField<bool, kSynthesizedClassBit, 1> {};
1095 class MarkedForParsingBit : public BitField<bool, kMarkedForParsingBit, 1> {}; 1095 class MarkedForParsingBit : public BitField<bool, kMarkedForParsingBit, 1> {};
1096 class MixinAppAliasBit : public BitField<bool, kMixinAppAliasBit, 1> {}; 1096 class MixinAppAliasBit : public BitField<bool, kMixinAppAliasBit, 1> {};
1097 class MixinTypeAppliedBit : public BitField<bool, kMixinTypeAppliedBit, 1> {}; 1097 class MixinTypeAppliedBit : public BitField<bool, kMixinTypeAppliedBit, 1> {};
1098 1098
1099 void set_name(const String& value) const; 1099 void set_name(const String& value) const;
1100 void set_user_name(const String& value) const;
1101 RawString* GenerateUserVisibleName() const;
1100 void set_signature_function(const Function& value) const; 1102 void set_signature_function(const Function& value) const;
1101 void set_signature_type(const AbstractType& value) const; 1103 void set_signature_type(const AbstractType& value) const;
1102 void set_state_bits(intptr_t bits) const; 1104 void set_state_bits(intptr_t bits) const;
1103 1105
1104 void set_constants(const Array& value) const; 1106 void set_constants(const Array& value) const;
1105 1107
1106 void set_canonical_types(const Object& value) const; 1108 void set_canonical_types(const Object& value) const;
1107 RawObject* canonical_types() const; 1109 RawObject* canonical_types() const;
1108 1110
1109 RawArray* invocation_dispatcher_cache() const; 1111 RawArray* invocation_dispatcher_cache() const;
(...skipping 5513 matching lines...) Expand 10 before | Expand all | Expand 10 after
6623 6625
6624 6626
6625 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, 6627 RawObject* MegamorphicCache::GetTargetFunction(const Array& array,
6626 intptr_t index) { 6628 intptr_t index) {
6627 return array.At((index * kEntryLength) + kTargetFunctionIndex); 6629 return array.At((index * kEntryLength) + kTargetFunctionIndex);
6628 } 6630 }
6629 6631
6630 } // namespace dart 6632 } // namespace dart
6631 6633
6632 #endif // VM_OBJECT_H_ 6634 #endif // VM_OBJECT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698