| 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 2874 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2885 void GetOneClassCheckAt(intptr_t index, | 2885 void GetOneClassCheckAt(intptr_t index, |
| 2886 intptr_t* class_id, | 2886 intptr_t* class_id, |
| 2887 Function* target) const; | 2887 Function* target) const; |
| 2888 intptr_t GetReceiverClassIdAt(intptr_t index) const; | 2888 intptr_t GetReceiverClassIdAt(intptr_t index) const; |
| 2889 intptr_t GetClassIdAt(intptr_t index, intptr_t arg_nr) const; | 2889 intptr_t GetClassIdAt(intptr_t index, intptr_t arg_nr) const; |
| 2890 | 2890 |
| 2891 RawFunction* GetTargetAt(intptr_t index) const; | 2891 RawFunction* GetTargetAt(intptr_t index) const; |
| 2892 RawFunction* GetTargetForReceiverClassId(intptr_t class_id) const; | 2892 RawFunction* GetTargetForReceiverClassId(intptr_t class_id) const; |
| 2893 | 2893 |
| 2894 intptr_t GetCountAt(intptr_t index) const; | 2894 intptr_t GetCountAt(intptr_t index) const; |
| 2895 intptr_t AggregateCount() const; |
| 2895 | 2896 |
| 2896 // Returns this->raw() if num_args_tested == 1 and arg_nr == 1, otherwise | 2897 // Returns this->raw() if num_args_tested == 1 and arg_nr == 1, otherwise |
| 2897 // returns a new ICData object containing only unique arg_nr checks. | 2898 // returns a new ICData object containing only unique arg_nr checks. |
| 2898 RawICData* AsUnaryClassChecksForArgNr(intptr_t arg_nr) const; | 2899 RawICData* AsUnaryClassChecksForArgNr(intptr_t arg_nr) const; |
| 2899 RawICData* AsUnaryClassChecks() const { | 2900 RawICData* AsUnaryClassChecks() const { |
| 2900 return AsUnaryClassChecksForArgNr(0); | 2901 return AsUnaryClassChecksForArgNr(0); |
| 2901 } | 2902 } |
| 2902 | 2903 |
| 2903 bool AllTargetsHaveSameOwner(intptr_t owner_cid) const; | 2904 bool AllTargetsHaveSameOwner(intptr_t owner_cid) const; |
| 2904 bool AllReceiversAreNumbers() const; | 2905 bool AllReceiversAreNumbers() const; |
| (...skipping 3263 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6168 | 6169 |
| 6169 | 6170 |
| 6170 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, | 6171 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, |
| 6171 intptr_t index) { | 6172 intptr_t index) { |
| 6172 return array.At((index * kEntryLength) + kTargetFunctionIndex); | 6173 return array.At((index * kEntryLength) + kTargetFunctionIndex); |
| 6173 } | 6174 } |
| 6174 | 6175 |
| 6175 } // namespace dart | 6176 } // namespace dart |
| 6176 | 6177 |
| 6177 #endif // VM_OBJECT_H_ | 6178 #endif // VM_OBJECT_H_ |
| OLD | NEW |