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 4166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4177 } | 4177 } |
4178 | 4178 |
4179 | 4179 |
4180 intptr_t lazy_deopt_pc_offset() const { | 4180 intptr_t lazy_deopt_pc_offset() const { |
4181 return raw_ptr()->lazy_deopt_pc_offset_; | 4181 return raw_ptr()->lazy_deopt_pc_offset_; |
4182 } | 4182 } |
4183 void set_lazy_deopt_pc_offset(intptr_t pc) const { | 4183 void set_lazy_deopt_pc_offset(intptr_t pc) const { |
4184 StoreNonPointer(&raw_ptr()->lazy_deopt_pc_offset_, pc); | 4184 StoreNonPointer(&raw_ptr()->lazy_deopt_pc_offset_, pc); |
4185 } | 4185 } |
4186 | 4186 |
| 4187 bool IsAllocationStubCode() const; |
| 4188 bool IsStubCode() const; |
| 4189 bool IsFunctionCode() const; |
| 4190 |
4187 private: | 4191 private: |
4188 void set_state_bits(intptr_t bits) const; | 4192 void set_state_bits(intptr_t bits) const; |
4189 | 4193 |
4190 friend class RawObject; // For RawObject::SizeFromClass(). | 4194 friend class RawObject; // For RawObject::SizeFromClass(). |
4191 friend class RawCode; | 4195 friend class RawCode; |
4192 enum { | 4196 enum { |
4193 kOptimizedBit = 0, | 4197 kOptimizedBit = 0, |
4194 kAliveBit = 1, | 4198 kAliveBit = 1, |
4195 kPtrOffBit = 2, | 4199 kPtrOffBit = 2, |
4196 kPtrOffSize = 30, | 4200 kPtrOffSize = 30, |
(...skipping 3610 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7807 | 7811 |
7808 | 7812 |
7809 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, | 7813 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, |
7810 intptr_t index) { | 7814 intptr_t index) { |
7811 return array.At((index * kEntryLength) + kTargetFunctionIndex); | 7815 return array.At((index * kEntryLength) + kTargetFunctionIndex); |
7812 } | 7816 } |
7813 | 7817 |
7814 } // namespace dart | 7818 } // namespace dart |
7815 | 7819 |
7816 #endif // VM_OBJECT_H_ | 7820 #endif // VM_OBJECT_H_ |
OLD | NEW |