| 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 3876 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3887 UNREACHABLE(); | 3887 UNREACHABLE(); |
| 3888 return "?"; | 3888 return "?"; |
| 3889 } | 3889 } |
| 3890 } | 3890 } |
| 3891 | 3891 |
| 3892 // It is only meaningful to interptret range feedback stored in the ICData | 3892 // It is only meaningful to interptret range feedback stored in the ICData |
| 3893 // when all checks are Mint or Smi. | 3893 // when all checks are Mint or Smi. |
| 3894 bool HasRangeFeedback() const; | 3894 bool HasRangeFeedback() const; |
| 3895 RangeFeedback DecodeRangeFeedbackAt(intptr_t idx) const; | 3895 RangeFeedback DecodeRangeFeedbackAt(intptr_t idx) const; |
| 3896 | 3896 |
| 3897 void PrintToJSONArray(JSONArray* jsarray, | 3897 void PrintToJSONArray(JSONArray* jsarray, intptr_t token_pos) const; |
| 3898 intptr_t line, | |
| 3899 intptr_t column) const; | |
| 3900 | 3898 |
| 3901 private: | 3899 private: |
| 3902 RawArray* ic_data() const { | 3900 RawArray* ic_data() const { |
| 3903 return raw_ptr()->ic_data_; | 3901 return raw_ptr()->ic_data_; |
| 3904 } | 3902 } |
| 3905 | 3903 |
| 3906 void set_owner(const Function& value) const; | 3904 void set_owner(const Function& value) const; |
| 3907 void set_target_name(const String& value) const; | 3905 void set_target_name(const String& value) const; |
| 3908 void set_arguments_descriptor(const Array& value) const; | 3906 void set_arguments_descriptor(const Array& value) const; |
| 3909 void set_deopt_id(intptr_t value) const; | 3907 void set_deopt_id(intptr_t value) const; |
| (...skipping 3935 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7845 | 7843 |
| 7846 | 7844 |
| 7847 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, | 7845 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, |
| 7848 intptr_t index) { | 7846 intptr_t index) { |
| 7849 return array.At((index * kEntryLength) + kTargetFunctionIndex); | 7847 return array.At((index * kEntryLength) + kTargetFunctionIndex); |
| 7850 } | 7848 } |
| 7851 | 7849 |
| 7852 } // namespace dart | 7850 } // namespace dart |
| 7853 | 7851 |
| 7854 #endif // VM_OBJECT_H_ | 7852 #endif // VM_OBJECT_H_ |
| OLD | NEW |