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 1256 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1267 void set_is_fields_marked_nullable() const; | 1267 void set_is_fields_marked_nullable() const; |
1268 | 1268 |
1269 bool is_cycle_free() const { | 1269 bool is_cycle_free() const { |
1270 return CycleFreeBit::decode(raw_ptr()->state_bits_); | 1270 return CycleFreeBit::decode(raw_ptr()->state_bits_); |
1271 } | 1271 } |
1272 void set_is_cycle_free() const; | 1272 void set_is_cycle_free() const; |
1273 | 1273 |
1274 bool is_allocated() const { | 1274 bool is_allocated() const { |
1275 return IsAllocatedBit::decode(raw_ptr()->state_bits_); | 1275 return IsAllocatedBit::decode(raw_ptr()->state_bits_); |
1276 } | 1276 } |
1277 void set_is_allocated() const; | 1277 void set_is_allocated(bool value) const; |
1278 | 1278 |
1279 uint16_t num_native_fields() const { | 1279 uint16_t num_native_fields() const { |
1280 return raw_ptr()->num_native_fields_; | 1280 return raw_ptr()->num_native_fields_; |
1281 } | 1281 } |
1282 void set_num_native_fields(uint16_t value) const { | 1282 void set_num_native_fields(uint16_t value) const { |
1283 StoreNonPointer(&raw_ptr()->num_native_fields_, value); | 1283 StoreNonPointer(&raw_ptr()->num_native_fields_, value); |
1284 } | 1284 } |
1285 | 1285 |
1286 RawCode* allocation_stub() const { | 1286 RawCode* allocation_stub() const { |
1287 return raw_ptr()->allocation_stub_; | 1287 return raw_ptr()->allocation_stub_; |
(...skipping 6922 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8210 | 8210 |
8211 | 8211 |
8212 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, | 8212 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, |
8213 intptr_t index) { | 8213 intptr_t index) { |
8214 return array.At((index * kEntryLength) + kTargetFunctionIndex); | 8214 return array.At((index * kEntryLength) + kTargetFunctionIndex); |
8215 } | 8215 } |
8216 | 8216 |
8217 } // namespace dart | 8217 } // namespace dart |
8218 | 8218 |
8219 #endif // VM_OBJECT_H_ | 8219 #endif // VM_OBJECT_H_ |
OLD | NEW |