| 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 2581 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2592 | 2592 |
| 2593 // Slow function, use in asserts to track changes in important library | 2593 // Slow function, use in asserts to track changes in important library |
| 2594 // functions. | 2594 // functions. |
| 2595 int32_t SourceFingerprint() const; | 2595 int32_t SourceFingerprint() const; |
| 2596 | 2596 |
| 2597 // Return false and report an error if the fingerprint does not match. | 2597 // Return false and report an error if the fingerprint does not match. |
| 2598 bool CheckSourceFingerprint(const char* prefix, int32_t fp) const; | 2598 bool CheckSourceFingerprint(const char* prefix, int32_t fp) const; |
| 2599 | 2599 |
| 2600 // Works with map [deopt-id] -> ICData. | 2600 // Works with map [deopt-id] -> ICData. |
| 2601 void SaveICDataMap( | 2601 void SaveICDataMap( |
| 2602 const ZoneGrowableArray<const ICData*>& deopt_id_to_ic_data) const; | 2602 const ZoneGrowableArray<const ICData*>& deopt_id_to_ic_data, |
| 2603 const Array& edge_counters_array) const; |
| 2603 void RestoreICDataMap( | 2604 void RestoreICDataMap( |
| 2604 ZoneGrowableArray<const ICData*>* deopt_id_to_ic_data) const; | 2605 ZoneGrowableArray<const ICData*>* deopt_id_to_ic_data) const; |
| 2605 | 2606 |
| 2606 RawArray* ic_data_array() const; | 2607 RawArray* ic_data_array() const; |
| 2607 void ClearICDataArray() const; | 2608 void ClearICDataArray() const; |
| 2608 | 2609 |
| 2609 // Sets deopt reason in all ICData-s with given deopt_id. | 2610 // Sets deopt reason in all ICData-s with given deopt_id. |
| 2610 void SetDeoptReasonForAll(intptr_t deopt_id, ICData::DeoptReasonId reason); | 2611 void SetDeoptReasonForAll(intptr_t deopt_id, ICData::DeoptReasonId reason); |
| 2611 | 2612 |
| 2612 static const int kCtorPhaseInit = 1 << 0; | 2613 static const int kCtorPhaseInit = 1 << 0; |
| (...skipping 5515 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8128 | 8129 |
| 8129 | 8130 |
| 8130 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, | 8131 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, |
| 8131 intptr_t index) { | 8132 intptr_t index) { |
| 8132 return array.At((index * kEntryLength) + kTargetFunctionIndex); | 8133 return array.At((index * kEntryLength) + kTargetFunctionIndex); |
| 8133 } | 8134 } |
| 8134 | 8135 |
| 8135 } // namespace dart | 8136 } // namespace dart |
| 8136 | 8137 |
| 8137 #endif // VM_OBJECT_H_ | 8138 #endif // VM_OBJECT_H_ |
| OLD | NEW |