| 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 1601 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1612 do { | 1612 do { |
| 1613 if (cls.IsSignatureClass()) { | 1613 if (cls.IsSignatureClass()) { |
| 1614 const Function& signature_fun = | 1614 const Function& signature_fun = |
| 1615 Function::Handle(isolate, cls.signature_function()); | 1615 Function::Handle(isolate, cls.signature_function()); |
| 1616 if (!signature_fun.is_static() && | 1616 if (!signature_fun.is_static() && |
| 1617 !signature_fun.HasInstantiatedSignature()) { | 1617 !signature_fun.HasInstantiatedSignature()) { |
| 1618 cls = signature_fun.Owner(); | 1618 cls = signature_fun.Owner(); |
| 1619 } | 1619 } |
| 1620 } | 1620 } |
| 1621 num_type_args += cls.NumTypeParameters(); | 1621 num_type_args += cls.NumTypeParameters(); |
| 1622 // Object is its own super class during bootstrap. | 1622 // Super type of Object class is null. |
| 1623 if (cls.super_type() == AbstractType::null() || | 1623 if (cls.super_type() == AbstractType::null() || |
| 1624 cls.super_type() == isolate->object_store()->object_type()) { | 1624 cls.super_type() == isolate->object_store()->object_type()) { |
| 1625 break; | 1625 break; |
| 1626 } | 1626 } |
| 1627 cls = cls.SuperClass(); | 1627 cls = cls.SuperClass(); |
| 1628 } while (true); | 1628 } while (true); |
| 1629 return num_type_args; | 1629 return num_type_args; |
| 1630 } | 1630 } |
| 1631 | 1631 |
| 1632 | 1632 |
| (...skipping 11764 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 13397 space); | 13397 space); |
| 13398 return reinterpret_cast<RawWeakProperty*>(raw); | 13398 return reinterpret_cast<RawWeakProperty*>(raw); |
| 13399 } | 13399 } |
| 13400 | 13400 |
| 13401 | 13401 |
| 13402 const char* WeakProperty::ToCString() const { | 13402 const char* WeakProperty::ToCString() const { |
| 13403 return "_WeakProperty"; | 13403 return "_WeakProperty"; |
| 13404 } | 13404 } |
| 13405 | 13405 |
| 13406 } // namespace dart | 13406 } // namespace dart |
| OLD | NEW |