| 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 2976 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2987 }; | 2987 }; |
| 2988 | 2988 |
| 2989 public: | 2989 public: |
| 2990 enum Kind { | 2990 enum Kind { |
| 2991 kDeopt, // Deoptimization continuation point. | 2991 kDeopt, // Deoptimization continuation point. |
| 2992 kIcCall, // IC call. | 2992 kIcCall, // IC call. |
| 2993 kOptStaticCall, // Call directly to known target, e.g. static call. | 2993 kOptStaticCall, // Call directly to known target, e.g. static call. |
| 2994 kUnoptStaticCall, // Call to a known target via a stub. | 2994 kUnoptStaticCall, // Call to a known target via a stub. |
| 2995 kClosureCall, // Closure call. | 2995 kClosureCall, // Closure call. |
| 2996 kRuntimeCall, // Runtime call. | 2996 kRuntimeCall, // Runtime call. |
| 2997 kReturn, // Return from function. | |
| 2998 kOsrEntry, // OSR entry point in unoptimized code. | 2997 kOsrEntry, // OSR entry point in unoptimized code. |
| 2999 kOther | 2998 kOther |
| 3000 }; | 2999 }; |
| 3001 | 3000 |
| 3002 intptr_t Length() const; | 3001 intptr_t Length() const; |
| 3003 | 3002 |
| 3004 uword PC(intptr_t index) const; | 3003 uword PC(intptr_t index) const; |
| 3005 PcDescriptors::Kind DescriptorKind(intptr_t index) const; | 3004 PcDescriptors::Kind DescriptorKind(intptr_t index) const; |
| 3006 const char* KindAsStr(intptr_t index) const; | 3005 const char* KindAsStr(intptr_t index) const; |
| 3007 intptr_t DeoptId(intptr_t index) const; | 3006 intptr_t DeoptId(intptr_t index) const; |
| (...skipping 4120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7128 | 7127 |
| 7129 | 7128 |
| 7130 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, | 7129 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, |
| 7131 intptr_t index) { | 7130 intptr_t index) { |
| 7132 return array.At((index * kEntryLength) + kTargetFunctionIndex); | 7131 return array.At((index * kEntryLength) + kTargetFunctionIndex); |
| 7133 } | 7132 } |
| 7134 | 7133 |
| 7135 } // namespace dart | 7134 } // namespace dart |
| 7136 | 7135 |
| 7137 #endif // VM_OBJECT_H_ | 7136 #endif // VM_OBJECT_H_ |
| OLD | NEW |