| 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 #include "vm/object.h" | 5 #include "vm/object.h" |
| 6 | 6 |
| 7 #include "include/dart_api.h" | 7 #include "include/dart_api.h" |
| 8 #include "platform/assert.h" | 8 #include "platform/assert.h" |
| 9 #include "vm/assembler.h" | 9 #include "vm/assembler.h" |
| 10 #include "vm/become.h" | 10 #include "vm/become.h" |
| (...skipping 13864 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 13875 const intptr_t len = NumberOfChecks(); | 13875 const intptr_t len = NumberOfChecks(); |
| 13876 for (intptr_t i = 1; i < len; i++) { | 13876 for (intptr_t i = 1; i < len; i++) { |
| 13877 if (IsUsedAt(i) && (GetTargetAt(i) != first_target.raw())) { | 13877 if (IsUsedAt(i) && (GetTargetAt(i) != first_target.raw())) { |
| 13878 return false; | 13878 return false; |
| 13879 } | 13879 } |
| 13880 } | 13880 } |
| 13881 return true; | 13881 return true; |
| 13882 } | 13882 } |
| 13883 | 13883 |
| 13884 | 13884 |
| 13885 bool ICData::HasOnlyDispatcherOrImplicitAccessorTargets() const { | |
| 13886 const intptr_t len = NumberOfChecks(); | |
| 13887 Function& target = Function::Handle(); | |
| 13888 for (intptr_t i = 0; i < len; i++) { | |
| 13889 target = GetTargetAt(i); | |
| 13890 if (!target.IsDispatcherOrImplicitAccessor()) { | |
| 13891 return false; | |
| 13892 } | |
| 13893 } | |
| 13894 return true; | |
| 13895 } | |
| 13896 | |
| 13897 | |
| 13898 void ICData::GetUsedCidsForTwoArgs(GrowableArray<intptr_t>* first, | 13885 void ICData::GetUsedCidsForTwoArgs(GrowableArray<intptr_t>* first, |
| 13899 GrowableArray<intptr_t>* second) const { | 13886 GrowableArray<intptr_t>* second) const { |
| 13900 ASSERT(NumArgsTested() == 2); | 13887 ASSERT(NumArgsTested() == 2); |
| 13901 first->Clear(); | 13888 first->Clear(); |
| 13902 second->Clear(); | 13889 second->Clear(); |
| 13903 GrowableArray<intptr_t> class_ids; | 13890 GrowableArray<intptr_t> class_ids; |
| 13904 const intptr_t len = NumberOfChecks(); | 13891 const intptr_t len = NumberOfChecks(); |
| 13905 for (intptr_t i = 0; i < len; i++) { | 13892 for (intptr_t i = 0; i < len; i++) { |
| 13906 if (GetCountAt(i) > 0) { | 13893 if (GetCountAt(i) > 0) { |
| 13907 GetClassIdsAt(i, &class_ids); | 13894 GetClassIdsAt(i, &class_ids); |
| (...skipping 9402 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 23310 return UserTag::null(); | 23297 return UserTag::null(); |
| 23311 } | 23298 } |
| 23312 | 23299 |
| 23313 | 23300 |
| 23314 const char* UserTag::ToCString() const { | 23301 const char* UserTag::ToCString() const { |
| 23315 const String& tag_label = String::Handle(label()); | 23302 const String& tag_label = String::Handle(label()); |
| 23316 return tag_label.ToCString(); | 23303 return tag_label.ToCString(); |
| 23317 } | 23304 } |
| 23318 | 23305 |
| 23319 } // namespace dart | 23306 } // namespace dart |
| OLD | NEW |