| 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 2031 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2042 kVisibleBit = 7, | 2042 kVisibleBit = 7, |
| 2043 kOptimizableBit = 8, | 2043 kOptimizableBit = 8, |
| 2044 kInlinableBit = 9, | 2044 kInlinableBit = 9, |
| 2045 kIntrinsicBit = 10, | 2045 kIntrinsicBit = 10, |
| 2046 kRecognizedBit = 11, | 2046 kRecognizedBit = 11, |
| 2047 kNativeBit = 12, | 2047 kNativeBit = 12, |
| 2048 kRedirectingBit = 13, | 2048 kRedirectingBit = 13, |
| 2049 kExternalBit = 14, | 2049 kExternalBit = 14, |
| 2050 kAllowsHoistingCheckClassBit = 15, | 2050 kAllowsHoistingCheckClassBit = 15, |
| 2051 kModifierPos = 16, | 2051 kModifierPos = 16, |
| 2052 kAsyncClosureBit = 18, | 2052 kAsyncClosureBit = 17, |
| 2053 }; | 2053 }; |
| 2054 class KindBits : | 2054 class KindBits : |
| 2055 public BitField<RawFunction::Kind, kKindTagPos, kKindTagSize> {}; // NOLINT | 2055 public BitField<RawFunction::Kind, kKindTagPos, kKindTagSize> {}; // NOLINT |
| 2056 class StaticBit : public BitField<bool, kStaticBit, 1> {}; | 2056 class StaticBit : public BitField<bool, kStaticBit, 1> {}; |
| 2057 class ConstBit : public BitField<bool, kConstBit, 1> {}; | 2057 class ConstBit : public BitField<bool, kConstBit, 1> {}; |
| 2058 class AbstractBit : public BitField<bool, kAbstractBit, 1> {}; | 2058 class AbstractBit : public BitField<bool, kAbstractBit, 1> {}; |
| 2059 class VisibleBit : public BitField<bool, kVisibleBit, 1> {}; | 2059 class VisibleBit : public BitField<bool, kVisibleBit, 1> {}; |
| 2060 class OptimizableBit : public BitField<bool, kOptimizableBit, 1> {}; | 2060 class OptimizableBit : public BitField<bool, kOptimizableBit, 1> {}; |
| 2061 class InlinableBit : public BitField<bool, kInlinableBit, 1> {}; | 2061 class InlinableBit : public BitField<bool, kInlinableBit, 1> {}; |
| 2062 class IntrinsicBit : public BitField<bool, kIntrinsicBit, 1> {}; | 2062 class IntrinsicBit : public BitField<bool, kIntrinsicBit, 1> {}; |
| 2063 class RecognizedBit : public BitField<bool, kRecognizedBit, 1> {}; | 2063 class RecognizedBit : public BitField<bool, kRecognizedBit, 1> {}; |
| 2064 class NativeBit : public BitField<bool, kNativeBit, 1> {}; | 2064 class NativeBit : public BitField<bool, kNativeBit, 1> {}; |
| 2065 class ExternalBit : public BitField<bool, kExternalBit, 1> {}; | 2065 class ExternalBit : public BitField<bool, kExternalBit, 1> {}; |
| 2066 class RedirectingBit : public BitField<bool, kRedirectingBit, 1> {}; | 2066 class RedirectingBit : public BitField<bool, kRedirectingBit, 1> {}; |
| 2067 class AllowsHoistingCheckClassBit : | 2067 class AllowsHoistingCheckClassBit : |
| 2068 public BitField<bool, kAllowsHoistingCheckClassBit, 1> {}; // NOLINT | 2068 public BitField<bool, kAllowsHoistingCheckClassBit, 1> {}; // NOLINT |
| 2069 class ModifierBits : | 2069 class ModifierBits : |
| 2070 public BitField<RawFunction::AsyncModifier, kModifierPos, 2> {}; // NOLIN
T | 2070 public BitField<RawFunction::AsyncModifier, kModifierPos, 1> {}; // NOLIN
T |
| 2071 class AsyncClosureBit : public BitField<bool, kAsyncClosureBit, 1> {}; | 2071 class AsyncClosureBit : public BitField<bool, kAsyncClosureBit, 1> {}; |
| 2072 | 2072 |
| 2073 void set_name(const String& value) const; | 2073 void set_name(const String& value) const; |
| 2074 void set_kind(RawFunction::Kind value) const; | 2074 void set_kind(RawFunction::Kind value) const; |
| 2075 void set_is_static(bool value) const; | 2075 void set_is_static(bool value) const; |
| 2076 void set_is_const(bool value) const; | 2076 void set_is_const(bool value) const; |
| 2077 void set_is_external(bool value) const; | 2077 void set_is_external(bool value) const; |
| 2078 void set_parent_function(const Function& value) const; | 2078 void set_parent_function(const Function& value) const; |
| 2079 void set_owner(const Object& value) const; | 2079 void set_owner(const Object& value) const; |
| 2080 RawFunction* implicit_closure_function() const; | 2080 RawFunction* implicit_closure_function() const; |
| (...skipping 5220 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7301 | 7301 |
| 7302 | 7302 |
| 7303 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, | 7303 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, |
| 7304 intptr_t index) { | 7304 intptr_t index) { |
| 7305 return array.At((index * kEntryLength) + kTargetFunctionIndex); | 7305 return array.At((index * kEntryLength) + kTargetFunctionIndex); |
| 7306 } | 7306 } |
| 7307 | 7307 |
| 7308 } // namespace dart | 7308 } // namespace dart |
| 7309 | 7309 |
| 7310 #endif // VM_OBJECT_H_ | 7310 #endif // VM_OBJECT_H_ |
| OLD | NEW |