| OLD | NEW |
| 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 974 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 985 bool is_mixin_app_alias() const { | 985 bool is_mixin_app_alias() const { |
| 986 return MixinAppAliasBit::decode(raw_ptr()->state_bits_); | 986 return MixinAppAliasBit::decode(raw_ptr()->state_bits_); |
| 987 } | 987 } |
| 988 void set_is_mixin_app_alias() const; | 988 void set_is_mixin_app_alias() const; |
| 989 | 989 |
| 990 bool is_mixin_type_applied() const { | 990 bool is_mixin_type_applied() const { |
| 991 return MixinTypeAppliedBit::decode(raw_ptr()->state_bits_); | 991 return MixinTypeAppliedBit::decode(raw_ptr()->state_bits_); |
| 992 } | 992 } |
| 993 void set_is_mixin_type_applied() const; | 993 void set_is_mixin_type_applied() const; |
| 994 | 994 |
| 995 bool is_fields_marked_nullable() const { |
| 996 return FieldsMarkedNullableBit::decode(raw_ptr()->state_bits_); |
| 997 } |
| 998 void set_is_fields_marked_nullable() const; |
| 999 |
| 995 uint16_t num_native_fields() const { | 1000 uint16_t num_native_fields() const { |
| 996 return raw_ptr()->num_native_fields_; | 1001 return raw_ptr()->num_native_fields_; |
| 997 } | 1002 } |
| 998 void set_num_native_fields(uint16_t value) const { | 1003 void set_num_native_fields(uint16_t value) const { |
| 999 raw_ptr()->num_native_fields_ = value; | 1004 raw_ptr()->num_native_fields_ = value; |
| 1000 } | 1005 } |
| 1001 | 1006 |
| 1002 RawCode* allocation_stub() const { | 1007 RawCode* allocation_stub() const { |
| 1003 return raw_ptr()->allocation_stub_; | 1008 return raw_ptr()->allocation_stub_; |
| 1004 } | 1009 } |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1082 kImplementedBit = 1, | 1087 kImplementedBit = 1, |
| 1083 kTypeFinalizedBit = 2, | 1088 kTypeFinalizedBit = 2, |
| 1084 kClassFinalizedBits = 3, | 1089 kClassFinalizedBits = 3, |
| 1085 kClassFinalizedSize = 2, | 1090 kClassFinalizedSize = 2, |
| 1086 kAbstractBit = 5, | 1091 kAbstractBit = 5, |
| 1087 kPatchBit = 6, | 1092 kPatchBit = 6, |
| 1088 kSynthesizedClassBit = 7, | 1093 kSynthesizedClassBit = 7, |
| 1089 kMarkedForParsingBit = 8, | 1094 kMarkedForParsingBit = 8, |
| 1090 kMixinAppAliasBit = 9, | 1095 kMixinAppAliasBit = 9, |
| 1091 kMixinTypeAppliedBit = 10, | 1096 kMixinTypeAppliedBit = 10, |
| 1097 kFieldsMarkedNullableBit = 11, |
| 1092 }; | 1098 }; |
| 1093 class ConstBit : public BitField<bool, kConstBit, 1> {}; | 1099 class ConstBit : public BitField<bool, kConstBit, 1> {}; |
| 1094 class ImplementedBit : public BitField<bool, kImplementedBit, 1> {}; | 1100 class ImplementedBit : public BitField<bool, kImplementedBit, 1> {}; |
| 1095 class TypeFinalizedBit : public BitField<bool, kTypeFinalizedBit, 1> {}; | 1101 class TypeFinalizedBit : public BitField<bool, kTypeFinalizedBit, 1> {}; |
| 1096 class ClassFinalizedBits : public BitField<RawClass::ClassFinalizedState, | 1102 class ClassFinalizedBits : public BitField<RawClass::ClassFinalizedState, |
| 1097 kClassFinalizedBits, kClassFinalizedSize> {}; // NOLINT | 1103 kClassFinalizedBits, kClassFinalizedSize> {}; // NOLINT |
| 1098 class AbstractBit : public BitField<bool, kAbstractBit, 1> {}; | 1104 class AbstractBit : public BitField<bool, kAbstractBit, 1> {}; |
| 1099 class PatchBit : public BitField<bool, kPatchBit, 1> {}; | 1105 class PatchBit : public BitField<bool, kPatchBit, 1> {}; |
| 1100 class SynthesizedClassBit : public BitField<bool, kSynthesizedClassBit, 1> {}; | 1106 class SynthesizedClassBit : public BitField<bool, kSynthesizedClassBit, 1> {}; |
| 1101 class MarkedForParsingBit : public BitField<bool, kMarkedForParsingBit, 1> {}; | 1107 class MarkedForParsingBit : public BitField<bool, kMarkedForParsingBit, 1> {}; |
| 1102 class MixinAppAliasBit : public BitField<bool, kMixinAppAliasBit, 1> {}; | 1108 class MixinAppAliasBit : public BitField<bool, kMixinAppAliasBit, 1> {}; |
| 1103 class MixinTypeAppliedBit : public BitField<bool, kMixinTypeAppliedBit, 1> {}; | 1109 class MixinTypeAppliedBit : public BitField<bool, kMixinTypeAppliedBit, 1> {}; |
| 1110 class FieldsMarkedNullableBit : public BitField<bool, |
| 1111 kFieldsMarkedNullableBit, 1> {}; // NOLINT |
| 1104 | 1112 |
| 1105 void set_name(const String& value) const; | 1113 void set_name(const String& value) const; |
| 1106 void set_user_name(const String& value) const; | 1114 void set_user_name(const String& value) const; |
| 1107 RawString* GenerateUserVisibleName() const; | 1115 RawString* GenerateUserVisibleName() const; |
| 1108 void set_signature_function(const Function& value) const; | 1116 void set_signature_function(const Function& value) const; |
| 1109 void set_signature_type(const AbstractType& value) const; | 1117 void set_signature_type(const AbstractType& value) const; |
| 1110 void set_state_bits(intptr_t bits) const; | 1118 void set_state_bits(intptr_t bits) const; |
| 1111 | 1119 |
| 1112 void set_constants(const Array& value) const; | 1120 void set_constants(const Array& value) const; |
| 1113 | 1121 |
| (...skipping 5543 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6657 | 6665 |
| 6658 | 6666 |
| 6659 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, | 6667 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, |
| 6660 intptr_t index) { | 6668 intptr_t index) { |
| 6661 return array.At((index * kEntryLength) + kTargetFunctionIndex); | 6669 return array.At((index * kEntryLength) + kTargetFunctionIndex); |
| 6662 } | 6670 } |
| 6663 | 6671 |
| 6664 } // namespace dart | 6672 } // namespace dart |
| 6665 | 6673 |
| 6666 #endif // VM_OBJECT_H_ | 6674 #endif // VM_OBJECT_H_ |
| OLD | NEW |