| 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 1764 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1775 bool AreValidArguments(intptr_t num_arguments, | 1775 bool AreValidArguments(intptr_t num_arguments, |
| 1776 const Array& argument_names, | 1776 const Array& argument_names, |
| 1777 String* error_message) const; | 1777 String* error_message) const; |
| 1778 bool AreValidArguments(const ArgumentsDescriptor& args_desc, | 1778 bool AreValidArguments(const ArgumentsDescriptor& args_desc, |
| 1779 String* error_message) const; | 1779 String* error_message) const; |
| 1780 | 1780 |
| 1781 // Fully qualified name uniquely identifying the function under gdb and during | 1781 // Fully qualified name uniquely identifying the function under gdb and during |
| 1782 // ast printing. The special ':' character, if present, is replaced by '_'. | 1782 // ast printing. The special ':' character, if present, is replaced by '_'. |
| 1783 const char* ToFullyQualifiedCString() const; | 1783 const char* ToFullyQualifiedCString() const; |
| 1784 | 1784 |
| 1785 const char* ToQualifiedCString() const; |
| 1786 |
| 1785 // Returns true if this function has parameters that are compatible with the | 1787 // Returns true if this function has parameters that are compatible with the |
| 1786 // parameters of the other function in order for this function to override the | 1788 // parameters of the other function in order for this function to override the |
| 1787 // other function. | 1789 // other function. |
| 1788 bool HasCompatibleParametersWith(const Function& other, | 1790 bool HasCompatibleParametersWith(const Function& other, |
| 1789 Error* bound_error) const; | 1791 Error* bound_error) const; |
| 1790 | 1792 |
| 1791 // Returns true if the type of this function is a subtype of the type of | 1793 // Returns true if the type of this function is a subtype of the type of |
| 1792 // the other function. | 1794 // the other function. |
| 1793 bool IsSubtypeOf(const TypeArguments& type_arguments, | 1795 bool IsSubtypeOf(const TypeArguments& type_arguments, |
| 1794 const Function& other, | 1796 const Function& other, |
| (...skipping 4947 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6742 | 6744 |
| 6743 | 6745 |
| 6744 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, | 6746 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, |
| 6745 intptr_t index) { | 6747 intptr_t index) { |
| 6746 return array.At((index * kEntryLength) + kTargetFunctionIndex); | 6748 return array.At((index * kEntryLength) + kTargetFunctionIndex); |
| 6747 } | 6749 } |
| 6748 | 6750 |
| 6749 } // namespace dart | 6751 } // namespace dart |
| 6750 | 6752 |
| 6751 #endif // VM_OBJECT_H_ | 6753 #endif // VM_OBJECT_H_ |
| OLD | NEW |