| 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 2778 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2789 RawArray* ic_data() const { | 2789 RawArray* ic_data() const { |
| 2790 return raw_ptr()->ic_data_; | 2790 return raw_ptr()->ic_data_; |
| 2791 } | 2791 } |
| 2792 | 2792 |
| 2793 void set_function(const Function& value) const; | 2793 void set_function(const Function& value) const; |
| 2794 void set_target_name(const String& value) const; | 2794 void set_target_name(const String& value) const; |
| 2795 void set_deopt_id(intptr_t value) const; | 2795 void set_deopt_id(intptr_t value) const; |
| 2796 void set_num_args_tested(intptr_t value) const; | 2796 void set_num_args_tested(intptr_t value) const; |
| 2797 void set_ic_data(const Array& value) const; | 2797 void set_ic_data(const Array& value) const; |
| 2798 | 2798 |
| 2799 #if defined(DEBUG) |
| 2799 // Used in asserts to verify that a check is not added twice. | 2800 // Used in asserts to verify that a check is not added twice. |
| 2800 bool HasCheck(const GrowableArray<intptr_t>& cids) const; | 2801 bool HasCheck(const GrowableArray<intptr_t>& cids) const; |
| 2802 #endif // DEBUG |
| 2801 | 2803 |
| 2802 intptr_t TestEntryLength() const; | 2804 intptr_t TestEntryLength() const; |
| 2803 void WriteSentinel() const; | 2805 void WriteSentinel() const; |
| 2804 | 2806 |
| 2805 HEAP_OBJECT_IMPLEMENTATION(ICData, Object); | 2807 HEAP_OBJECT_IMPLEMENTATION(ICData, Object); |
| 2806 friend class Class; | 2808 friend class Class; |
| 2807 }; | 2809 }; |
| 2808 | 2810 |
| 2809 | 2811 |
| 2810 class SubtypeTestCache : public Object { | 2812 class SubtypeTestCache : public Object { |
| (...skipping 2924 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5735 if (this->CharAt(i) != str.CharAt(begin_index + i)) { | 5737 if (this->CharAt(i) != str.CharAt(begin_index + i)) { |
| 5736 return false; | 5738 return false; |
| 5737 } | 5739 } |
| 5738 } | 5740 } |
| 5739 return true; | 5741 return true; |
| 5740 } | 5742 } |
| 5741 | 5743 |
| 5742 } // namespace dart | 5744 } // namespace dart |
| 5743 | 5745 |
| 5744 #endif // VM_OBJECT_H_ | 5746 #endif // VM_OBJECT_H_ |
| OLD | NEW |