| 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/cpu.h" | 10 #include "vm/cpu.h" |
| (...skipping 1695 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1706 ASSERT(value.IsNull() || | 1706 ASSERT(value.IsNull() || |
| 1707 value.IsType() || | 1707 value.IsType() || |
| 1708 value.IsBoundedType() || | 1708 value.IsBoundedType() || |
| 1709 value.IsMixinAppType()); | 1709 value.IsMixinAppType()); |
| 1710 StorePointer(&raw_ptr()->super_type_, value.raw()); | 1710 StorePointer(&raw_ptr()->super_type_, value.raw()); |
| 1711 } | 1711 } |
| 1712 | 1712 |
| 1713 | 1713 |
| 1714 // Return a TypeParameter if the type_name is a type parameter of this class. | 1714 // Return a TypeParameter if the type_name is a type parameter of this class. |
| 1715 // Return null otherwise. | 1715 // Return null otherwise. |
| 1716 RawTypeParameter* Class::LookupTypeParameter(const String& type_name, | 1716 RawTypeParameter* Class::LookupTypeParameter(const String& type_name) const { |
| 1717 intptr_t token_pos) const { | |
| 1718 ASSERT(!type_name.IsNull()); | 1717 ASSERT(!type_name.IsNull()); |
| 1719 Isolate* isolate = Isolate::Current(); | 1718 Isolate* isolate = Isolate::Current(); |
| 1720 ReusableHandleScope reused_handles(isolate); | 1719 ReusableHandleScope reused_handles(isolate); |
| 1721 TypeArguments& type_params = reused_handles.TypeArgumentsHandle(); | 1720 TypeArguments& type_params = reused_handles.TypeArgumentsHandle(); |
| 1722 type_params ^= type_parameters(); | 1721 type_params ^= type_parameters(); |
| 1723 TypeParameter& type_param = reused_handles.TypeParameterHandle(); | 1722 TypeParameter& type_param = reused_handles.TypeParameterHandle(); |
| 1724 String& type_param_name = reused_handles.StringHandle(); | 1723 String& type_param_name = reused_handles.StringHandle(); |
| 1725 if (!type_params.IsNull()) { | 1724 if (!type_params.IsNull()) { |
| 1726 intptr_t num_type_params = type_params.Length(); | 1725 intptr_t num_type_params = type_params.Length(); |
| 1727 for (intptr_t i = 0; i < num_type_params; i++) { | 1726 for (intptr_t i = 0; i < num_type_params; i++) { |
| (...skipping 11955 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 13683 return reinterpret_cast<RawMirrorReference*>(raw); | 13682 return reinterpret_cast<RawMirrorReference*>(raw); |
| 13684 } | 13683 } |
| 13685 | 13684 |
| 13686 | 13685 |
| 13687 const char* MirrorReference::ToCString() const { | 13686 const char* MirrorReference::ToCString() const { |
| 13688 return "_MirrorReference"; | 13687 return "_MirrorReference"; |
| 13689 } | 13688 } |
| 13690 | 13689 |
| 13691 | 13690 |
| 13692 } // namespace dart | 13691 } // namespace dart |
| OLD | NEW |