| 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 2021 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2032 }; | 2032 }; |
| 2033 | 2033 |
| 2034 | 2034 |
| 2035 class Function : public Object { | 2035 class Function : public Object { |
| 2036 public: | 2036 public: |
| 2037 RawString* name() const { return raw_ptr()->name_; } | 2037 RawString* name() const { return raw_ptr()->name_; } |
| 2038 RawString* PrettyName() const; | 2038 RawString* PrettyName() const; |
| 2039 RawString* UserVisibleName() const; | 2039 RawString* UserVisibleName() const; |
| 2040 RawString* QualifiedPrettyName() const; | 2040 RawString* QualifiedPrettyName() const; |
| 2041 RawString* QualifiedUserVisibleName() const; | 2041 RawString* QualifiedUserVisibleName() const; |
| 2042 const char* QualifiedUserVisibleNameCString() const; |
| 2042 virtual RawString* DictionaryName() const { return name(); } | 2043 virtual RawString* DictionaryName() const { return name(); } |
| 2043 | 2044 |
| 2044 RawString* GetSource() const; | 2045 RawString* GetSource() const; |
| 2045 | 2046 |
| 2046 // Build a string of the form 'C<T, R>(T, {b: B, c: C}) => R' representing the | 2047 // Build a string of the form 'C<T, R>(T, {b: B, c: C}) => R' representing the |
| 2047 // internal signature of the given function. In this example, T and R are | 2048 // internal signature of the given function. In this example, T and R are |
| 2048 // type parameters of class C, the owner of the function. | 2049 // type parameters of class C, the owner of the function. |
| 2049 RawString* Signature() const { | 2050 RawString* Signature() const { |
| 2050 const bool instantiate = false; | 2051 const bool instantiate = false; |
| 2051 return BuildSignature(instantiate, kInternalName, TypeArguments::Handle()); | 2052 return BuildSignature(instantiate, kInternalName, TypeArguments::Handle()); |
| (...skipping 5915 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7967 | 7968 |
| 7968 | 7969 |
| 7969 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, | 7970 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, |
| 7970 intptr_t index) { | 7971 intptr_t index) { |
| 7971 return array.At((index * kEntryLength) + kTargetFunctionIndex); | 7972 return array.At((index * kEntryLength) + kTargetFunctionIndex); |
| 7972 } | 7973 } |
| 7973 | 7974 |
| 7974 } // namespace dart | 7975 } // namespace dart |
| 7975 | 7976 |
| 7976 #endif // VM_OBJECT_H_ | 7977 #endif // VM_OBJECT_H_ |
| OLD | NEW |