| 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 17779 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 17790 ASSERT(!IsFinalized()); | 17790 ASSERT(!IsFinalized()); |
| 17791 set_type_state(RawTypeParameter::kFinalizedUninstantiated); | 17791 set_type_state(RawTypeParameter::kFinalizedUninstantiated); |
| 17792 } | 17792 } |
| 17793 | 17793 |
| 17794 | 17794 |
| 17795 bool TypeParameter::IsInstantiated(Genericity genericity, | 17795 bool TypeParameter::IsInstantiated(Genericity genericity, |
| 17796 TrailPtr trail) const { | 17796 TrailPtr trail) const { |
| 17797 switch (genericity) { | 17797 switch (genericity) { |
| 17798 case kAny: | 17798 case kAny: |
| 17799 return false; | 17799 return false; |
| 17800 case kClass: | 17800 case kCurrentClass: |
| 17801 return IsFunctionTypeParameter(); | 17801 return IsFunctionTypeParameter(); |
| 17802 case kFunctions: | 17802 case kFunctions: |
| 17803 return IsClassTypeParameter(); | 17803 return IsClassTypeParameter(); |
| 17804 case kCurrentFunction: | 17804 case kCurrentFunction: |
| 17805 return IsClassTypeParameter() || (parent_level() > 0); | 17805 return IsClassTypeParameter() || (parent_level() > 0); |
| 17806 case kParentFunctions: | 17806 case kParentFunctions: |
| 17807 return IsClassTypeParameter() || (parent_level() == 0); | 17807 return IsClassTypeParameter() || (parent_level() == 0); |
| 17808 default: | 17808 default: |
| 17809 UNREACHABLE(); | 17809 UNREACHABLE(); |
| 17810 } | 17810 } |
| (...skipping 5320 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 23131 return UserTag::null(); | 23131 return UserTag::null(); |
| 23132 } | 23132 } |
| 23133 | 23133 |
| 23134 | 23134 |
| 23135 const char* UserTag::ToCString() const { | 23135 const char* UserTag::ToCString() const { |
| 23136 const String& tag_label = String::Handle(label()); | 23136 const String& tag_label = String::Handle(label()); |
| 23137 return tag_label.ToCString(); | 23137 return tag_label.ToCString(); |
| 23138 } | 23138 } |
| 23139 | 23139 |
| 23140 } // namespace dart | 23140 } // namespace dart |
| OLD | NEW |