| 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 3738 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3749 // - usmi 0000 [used only on 32bit platforms] | 3749 // - usmi 0000 [used only on 32bit platforms] |
| 3750 // - smi 0001 | 3750 // - smi 0001 |
| 3751 // - uint31 0010 | 3751 // - uint31 0010 |
| 3752 // - int32 0011 | 3752 // - int32 0011 |
| 3753 // - uint32 0100 | 3753 // - uint32 0100 |
| 3754 // - int33 x1x1 | 3754 // - int33 x1x1 |
| 3755 // - int64 1xxx | 3755 // - int64 1xxx |
| 3756 // | 3756 // |
| 3757 // DecodeRangeFeedbackAt() helper maps these states into the RangeFeedback | 3757 // DecodeRangeFeedbackAt() helper maps these states into the RangeFeedback |
| 3758 // enumeration. | 3758 // enumeration. |
| 3759 enum { | 3759 enum RangeFeedbackBits { |
| 3760 kSignedRangeBit = 1 << 0, | 3760 kSignedRangeBit = 1 << 0, |
| 3761 kInt32RangeBit = 1 << 1, | 3761 kInt32RangeBit = 1 << 1, |
| 3762 kUint32RangeBit = 1 << 2, | 3762 kUint32RangeBit = 1 << 2, |
| 3763 kInt64RangeBit = 1 << 3, | 3763 kInt64RangeBit = 1 << 3, |
| 3764 kBitsPerRangeFeedback = 4, | 3764 kBitsPerRangeFeedback = 4, |
| 3765 kRangeFeedbackMask = (1 << kBitsPerRangeFeedback) - 1 | 3765 kRangeFeedbackMask = (1 << kBitsPerRangeFeedback) - 1 |
| 3766 }; | 3766 }; |
| 3767 | 3767 |
| 3768 static bool IsValidRangeFeedbackIndex(intptr_t index) { | 3768 static bool IsValidRangeFeedbackIndex(intptr_t index) { |
| 3769 return (0 <= index) && (index < 3); | 3769 return (0 <= index) && (index < 3); |
| (...skipping 3898 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7668 | 7668 |
| 7669 | 7669 |
| 7670 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, | 7670 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, |
| 7671 intptr_t index) { | 7671 intptr_t index) { |
| 7672 return array.At((index * kEntryLength) + kTargetFunctionIndex); | 7672 return array.At((index * kEntryLength) + kTargetFunctionIndex); |
| 7673 } | 7673 } |
| 7674 | 7674 |
| 7675 } // namespace dart | 7675 } // namespace dart |
| 7676 | 7676 |
| 7677 #endif // VM_OBJECT_H_ | 7677 #endif // VM_OBJECT_H_ |
| OLD | NEW |