| 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 3566 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3577 V(GuardField) \ | 3577 V(GuardField) \ |
| 3578 V(TestCids) \ | 3578 V(TestCids) \ |
| 3579 V(NumReasons) \ | 3579 V(NumReasons) \ |
| 3580 | 3580 |
| 3581 enum DeoptReasonId { | 3581 enum DeoptReasonId { |
| 3582 #define DEFINE_ENUM_LIST(name) kDeopt##name, | 3582 #define DEFINE_ENUM_LIST(name) kDeopt##name, |
| 3583 DEOPT_REASONS(DEFINE_ENUM_LIST) | 3583 DEOPT_REASONS(DEFINE_ENUM_LIST) |
| 3584 #undef DEFINE_ENUM_LIST | 3584 #undef DEFINE_ENUM_LIST |
| 3585 }; | 3585 }; |
| 3586 | 3586 |
| 3587 enum { | 3587 static const intptr_t kLastRecordedDeoptReason = kDeoptUnknown - 1; |
| 3588 kLastRecordedDeoptReason = kDeoptUnknown - 1 | |
| 3589 }; | |
| 3590 | 3588 |
| 3591 enum DeoptFlags { | 3589 enum DeoptFlags { |
| 3592 // Deoptimization is caused by an optimistically hoisted instruction. | 3590 // Deoptimization is caused by an optimistically hoisted instruction. |
| 3593 kHoisted = 1 << 0, | 3591 kHoisted = 1 << 0, |
| 3594 | 3592 |
| 3595 // Deoptimization is caused by an optimistically generalized bounds check. | 3593 // Deoptimization is caused by an optimistically generalized bounds check. |
| 3596 kGeneralized = 1 << 1 | 3594 kGeneralized = 1 << 1 |
| 3597 }; | 3595 }; |
| 3598 | 3596 |
| 3599 bool HasDeoptReasons() const { return DeoptReasons() != 0; } | 3597 bool HasDeoptReasons() const { return DeoptReasons() != 0; } |
| (...skipping 4074 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7674 | 7672 |
| 7675 | 7673 |
| 7676 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, | 7674 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, |
| 7677 intptr_t index) { | 7675 intptr_t index) { |
| 7678 return array.At((index * kEntryLength) + kTargetFunctionIndex); | 7676 return array.At((index * kEntryLength) + kTargetFunctionIndex); |
| 7679 } | 7677 } |
| 7680 | 7678 |
| 7681 } // namespace dart | 7679 } // namespace dart |
| 7682 | 7680 |
| 7683 #endif // VM_OBJECT_H_ | 7681 #endif // VM_OBJECT_H_ |
| OLD | NEW |