| 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 2897 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2908 void GetOneClassCheckAt(intptr_t index, | 2908 void GetOneClassCheckAt(intptr_t index, |
| 2909 intptr_t* class_id, | 2909 intptr_t* class_id, |
| 2910 Function* target) const; | 2910 Function* target) const; |
| 2911 intptr_t GetReceiverClassIdAt(intptr_t index) const; | 2911 intptr_t GetReceiverClassIdAt(intptr_t index) const; |
| 2912 intptr_t GetClassIdAt(intptr_t index, intptr_t arg_nr) const; | 2912 intptr_t GetClassIdAt(intptr_t index, intptr_t arg_nr) const; |
| 2913 | 2913 |
| 2914 RawFunction* GetTargetAt(intptr_t index) const; | 2914 RawFunction* GetTargetAt(intptr_t index) const; |
| 2915 RawFunction* GetTargetForReceiverClassId(intptr_t class_id) const; | 2915 RawFunction* GetTargetForReceiverClassId(intptr_t class_id) const; |
| 2916 | 2916 |
| 2917 intptr_t GetCountAt(intptr_t index) const; | 2917 intptr_t GetCountAt(intptr_t index) const; |
| 2918 intptr_t AggregateCount() const; |
| 2918 | 2919 |
| 2919 // Returns this->raw() if num_args_tested == 1 and arg_nr == 1, otherwise | 2920 // Returns this->raw() if num_args_tested == 1 and arg_nr == 1, otherwise |
| 2920 // returns a new ICData object containing only unique arg_nr checks. | 2921 // returns a new ICData object containing only unique arg_nr checks. |
| 2921 RawICData* AsUnaryClassChecksForArgNr(intptr_t arg_nr) const; | 2922 RawICData* AsUnaryClassChecksForArgNr(intptr_t arg_nr) const; |
| 2922 RawICData* AsUnaryClassChecks() const { | 2923 RawICData* AsUnaryClassChecks() const { |
| 2923 return AsUnaryClassChecksForArgNr(0); | 2924 return AsUnaryClassChecksForArgNr(0); |
| 2924 } | 2925 } |
| 2925 | 2926 |
| 2926 bool AllTargetsHaveSameOwner(intptr_t owner_cid) const; | 2927 bool AllTargetsHaveSameOwner(intptr_t owner_cid) const; |
| 2927 bool AllReceiversAreNumbers() const; | 2928 bool AllReceiversAreNumbers() const; |
| (...skipping 3269 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6197 | 6198 |
| 6198 | 6199 |
| 6199 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, | 6200 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, |
| 6200 intptr_t index) { | 6201 intptr_t index) { |
| 6201 return array.At((index * kEntryLength) + kTargetFunctionIndex); | 6202 return array.At((index * kEntryLength) + kTargetFunctionIndex); |
| 6202 } | 6203 } |
| 6203 | 6204 |
| 6204 } // namespace dart | 6205 } // namespace dart |
| 6205 | 6206 |
| 6206 #endif // VM_OBJECT_H_ | 6207 #endif // VM_OBJECT_H_ |
| OLD | NEW |