| 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 2829 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2840 int index, intptr_t* class_id, Function* target) const; | 2840 int index, intptr_t* class_id, Function* target) const; |
| 2841 | 2841 |
| 2842 intptr_t GetReceiverClassIdAt(intptr_t index) const; | 2842 intptr_t GetReceiverClassIdAt(intptr_t index) const; |
| 2843 RawFunction* GetTargetAt(intptr_t index) const; | 2843 RawFunction* GetTargetAt(intptr_t index) const; |
| 2844 RawFunction* GetTargetForReceiverClassId(intptr_t class_id) const; | 2844 RawFunction* GetTargetForReceiverClassId(intptr_t class_id) const; |
| 2845 | 2845 |
| 2846 // Returns this->raw() if num_args_tested == 1, otherwise returns a new | 2846 // Returns this->raw() if num_args_tested == 1, otherwise returns a new |
| 2847 // ICData object containing only unique arg0 checks. | 2847 // ICData object containing only unique arg0 checks. |
| 2848 RawICData* AsUnaryClassChecks() const; | 2848 RawICData* AsUnaryClassChecks() const; |
| 2849 | 2849 |
| 2850 bool AllTargetsHaveSameOwner(intptr_t owner_cid) const; |
| 2851 bool AllReceiversAreNumbers() const; |
| 2852 |
| 2850 static RawICData* New(const Function& caller_function, | 2853 static RawICData* New(const Function& caller_function, |
| 2851 const String& target_name, | 2854 const String& target_name, |
| 2852 intptr_t deopt_id, | 2855 intptr_t deopt_id, |
| 2853 intptr_t num_args_tested); | 2856 intptr_t num_args_tested); |
| 2854 | 2857 |
| 2855 private: | 2858 private: |
| 2856 RawArray* ic_data() const { | 2859 RawArray* ic_data() const { |
| 2857 return raw_ptr()->ic_data_; | 2860 return raw_ptr()->ic_data_; |
| 2858 } | 2861 } |
| 2859 | 2862 |
| (...skipping 2592 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5452 if (this->CharAt(i) != str.CharAt(begin_index + i)) { | 5455 if (this->CharAt(i) != str.CharAt(begin_index + i)) { |
| 5453 return false; | 5456 return false; |
| 5454 } | 5457 } |
| 5455 } | 5458 } |
| 5456 return true; | 5459 return true; |
| 5457 } | 5460 } |
| 5458 | 5461 |
| 5459 } // namespace dart | 5462 } // namespace dart |
| 5460 | 5463 |
| 5461 #endif // VM_OBJECT_H_ | 5464 #endif // VM_OBJECT_H_ |
| OLD | NEW |