| 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 3008 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3019 intptr_t GetReceiverClassIdAt(intptr_t index) const; | 3019 intptr_t GetReceiverClassIdAt(intptr_t index) const; |
| 3020 RawFunction* GetTargetAt(intptr_t index) const; | 3020 RawFunction* GetTargetAt(intptr_t index) const; |
| 3021 RawFunction* GetTargetForReceiverClassId(intptr_t class_id) const; | 3021 RawFunction* GetTargetForReceiverClassId(intptr_t class_id) const; |
| 3022 | 3022 |
| 3023 // Returns this->raw() if num_args_tested == 1, otherwise returns a new | 3023 // Returns this->raw() if num_args_tested == 1, otherwise returns a new |
| 3024 // ICData object containing only unique arg0 checks. | 3024 // ICData object containing only unique arg0 checks. |
| 3025 RawICData* AsUnaryClassChecks() const; | 3025 RawICData* AsUnaryClassChecks() const; |
| 3026 | 3026 |
| 3027 bool AllTargetsHaveSameOwner(intptr_t owner_cid) const; | 3027 bool AllTargetsHaveSameOwner(intptr_t owner_cid) const; |
| 3028 bool AllReceiversAreNumbers() const; | 3028 bool AllReceiversAreNumbers() const; |
| 3029 bool HasOneTarget() const; |
| 3029 | 3030 |
| 3030 static RawICData* New(const Function& caller_function, | 3031 static RawICData* New(const Function& caller_function, |
| 3031 const String& target_name, | 3032 const String& target_name, |
| 3032 intptr_t deopt_id, | 3033 intptr_t deopt_id, |
| 3033 intptr_t num_args_tested); | 3034 intptr_t num_args_tested); |
| 3034 | 3035 |
| 3035 private: | 3036 private: |
| 3036 RawArray* ic_data() const { | 3037 RawArray* ic_data() const { |
| 3037 return raw_ptr()->ic_data_; | 3038 return raw_ptr()->ic_data_; |
| 3038 } | 3039 } |
| (...skipping 2653 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5692 if (this->CharAt(i) != str.CharAt(begin_index + i)) { | 5693 if (this->CharAt(i) != str.CharAt(begin_index + i)) { |
| 5693 return false; | 5694 return false; |
| 5694 } | 5695 } |
| 5695 } | 5696 } |
| 5696 return true; | 5697 return true; |
| 5697 } | 5698 } |
| 5698 | 5699 |
| 5699 } // namespace dart | 5700 } // namespace dart |
| 5700 | 5701 |
| 5701 #endif // VM_OBJECT_H_ | 5702 #endif // VM_OBJECT_H_ |
| OLD | NEW |