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

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

Issue 71693003: Rename mixin typedef to mixin application alias in VM. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 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 | « runtime/vm/code_generator.cc ('k') | runtime/vm/object.cc » ('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_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 942 matching lines...) Expand 10 before | Expand all | Expand 10 after
953 953
954 bool is_marked_for_parsing() const { 954 bool is_marked_for_parsing() const {
955 return MarkedForParsingBit::decode(raw_ptr()->state_bits_); 955 return MarkedForParsingBit::decode(raw_ptr()->state_bits_);
956 } 956 }
957 void set_is_marked_for_parsing() const; 957 void set_is_marked_for_parsing() const;
958 void reset_is_marked_for_parsing() const; 958 void reset_is_marked_for_parsing() const;
959 959
960 bool is_const() const { return ConstBit::decode(raw_ptr()->state_bits_); } 960 bool is_const() const { return ConstBit::decode(raw_ptr()->state_bits_); }
961 void set_is_const() const; 961 void set_is_const() const;
962 962
963 bool is_mixin_typedef() const { 963 bool is_mixin_app_alias() const {
964 return MixinTypedefBit::decode(raw_ptr()->state_bits_); 964 return MixinAppAliasBit::decode(raw_ptr()->state_bits_);
965 } 965 }
966 void set_is_mixin_typedef() const; 966 void set_is_mixin_app_alias() const;
967 967
968 bool is_mixin_type_applied() const { 968 bool is_mixin_type_applied() const {
969 return MixinTypeAppliedBit::decode(raw_ptr()->state_bits_); 969 return MixinTypeAppliedBit::decode(raw_ptr()->state_bits_);
970 } 970 }
971 void set_is_mixin_type_applied() const; 971 void set_is_mixin_type_applied() const;
972 972
973 uint16_t num_native_fields() const { 973 uint16_t num_native_fields() const {
974 return raw_ptr()->num_native_fields_; 974 return raw_ptr()->num_native_fields_;
975 } 975 }
976 void set_num_native_fields(uint16_t value) const { 976 void set_num_native_fields(uint16_t value) const {
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
1055 enum { 1055 enum {
1056 kConstBit = 0, 1056 kConstBit = 0,
1057 kImplementedBit = 1, 1057 kImplementedBit = 1,
1058 kTypeFinalizedBit = 2, 1058 kTypeFinalizedBit = 2,
1059 kClassFinalizedBits = 3, 1059 kClassFinalizedBits = 3,
1060 kClassFinalizedSize = 2, 1060 kClassFinalizedSize = 2,
1061 kAbstractBit = 5, 1061 kAbstractBit = 5,
1062 kPatchBit = 6, 1062 kPatchBit = 6,
1063 kSynthesizedClassBit = 7, 1063 kSynthesizedClassBit = 7,
1064 kMarkedForParsingBit = 8, 1064 kMarkedForParsingBit = 8,
1065 kMixinTypedefBit = 9, 1065 kMixinAppAliasBit = 9,
1066 kMixinTypeAppliedBit = 10, 1066 kMixinTypeAppliedBit = 10,
1067 }; 1067 };
1068 class ConstBit : public BitField<bool, kConstBit, 1> {}; 1068 class ConstBit : public BitField<bool, kConstBit, 1> {};
1069 class ImplementedBit : public BitField<bool, kImplementedBit, 1> {}; 1069 class ImplementedBit : public BitField<bool, kImplementedBit, 1> {};
1070 class TypeFinalizedBit : public BitField<bool, kTypeFinalizedBit, 1> {}; 1070 class TypeFinalizedBit : public BitField<bool, kTypeFinalizedBit, 1> {};
1071 class ClassFinalizedBits : public BitField<RawClass::ClassFinalizedState, 1071 class ClassFinalizedBits : public BitField<RawClass::ClassFinalizedState,
1072 kClassFinalizedBits, kClassFinalizedSize> {}; // NOLINT 1072 kClassFinalizedBits, kClassFinalizedSize> {}; // NOLINT
1073 class AbstractBit : public BitField<bool, kAbstractBit, 1> {}; 1073 class AbstractBit : public BitField<bool, kAbstractBit, 1> {};
1074 class PatchBit : public BitField<bool, kPatchBit, 1> {}; 1074 class PatchBit : public BitField<bool, kPatchBit, 1> {};
1075 class SynthesizedClassBit : public BitField<bool, kSynthesizedClassBit, 1> {}; 1075 class SynthesizedClassBit : public BitField<bool, kSynthesizedClassBit, 1> {};
1076 class MarkedForParsingBit : public BitField<bool, kMarkedForParsingBit, 1> {}; 1076 class MarkedForParsingBit : public BitField<bool, kMarkedForParsingBit, 1> {};
1077 class MixinTypedefBit : public BitField<bool, kMixinTypedefBit, 1> {}; 1077 class MixinAppAliasBit : public BitField<bool, kMixinAppAliasBit, 1> {};
1078 class MixinTypeAppliedBit : public BitField<bool, kMixinTypeAppliedBit, 1> {}; 1078 class MixinTypeAppliedBit : public BitField<bool, kMixinTypeAppliedBit, 1> {};
1079 1079
1080 void set_name(const String& value) const; 1080 void set_name(const String& value) const;
1081 void set_signature_function(const Function& value) const; 1081 void set_signature_function(const Function& value) const;
1082 void set_signature_type(const AbstractType& value) const; 1082 void set_signature_type(const AbstractType& value) const;
1083 void set_state_bits(intptr_t bits) const; 1083 void set_state_bits(intptr_t bits) const;
1084 1084
1085 void set_constants(const Array& value) const; 1085 void set_constants(const Array& value) const;
1086 1086
1087 void set_canonical_types(const Array& value) const; 1087 void set_canonical_types(const Array& value) const;
(...skipping 5302 matching lines...) Expand 10 before | Expand all | Expand 10 after
6390 6390
6391 6391
6392 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, 6392 RawObject* MegamorphicCache::GetTargetFunction(const Array& array,
6393 intptr_t index) { 6393 intptr_t index) {
6394 return array.At((index * kEntryLength) + kTargetFunctionIndex); 6394 return array.At((index * kEntryLength) + kTargetFunctionIndex);
6395 } 6395 }
6396 6396
6397 } // namespace dart 6397 } // namespace dart
6398 6398
6399 #endif // VM_OBJECT_H_ 6399 #endif // VM_OBJECT_H_
OLDNEW
« no previous file with comments | « runtime/vm/code_generator.cc ('k') | runtime/vm/object.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698