| 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 2172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2183 } | 2183 } |
| 2184 | 2184 |
| 2185 // Return the closure function implicitly created for this function. | 2185 // Return the closure function implicitly created for this function. |
| 2186 // If none exists yet, create one and remember it. | 2186 // If none exists yet, create one and remember it. |
| 2187 RawFunction* ImplicitClosureFunction() const; | 2187 RawFunction* ImplicitClosureFunction() const; |
| 2188 | 2188 |
| 2189 // Return the closure implicitly created for this function. | 2189 // Return the closure implicitly created for this function. |
| 2190 // If none exists yet, create one and remember it. | 2190 // If none exists yet, create one and remember it. |
| 2191 RawInstance* ImplicitStaticClosure() const; | 2191 RawInstance* ImplicitStaticClosure() const; |
| 2192 | 2192 |
| 2193 RawInstance* ImplicitInstanceClosure(const Instance& receiver) const; |
| 2194 |
| 2193 // Redirection information for a redirecting factory. | 2195 // Redirection information for a redirecting factory. |
| 2194 bool IsRedirectingFactory() const; | 2196 bool IsRedirectingFactory() const; |
| 2195 RawType* RedirectionType() const; | 2197 RawType* RedirectionType() const; |
| 2196 void SetRedirectionType(const Type& type) const; | 2198 void SetRedirectionType(const Type& type) const; |
| 2197 RawString* RedirectionIdentifier() const; | 2199 RawString* RedirectionIdentifier() const; |
| 2198 void SetRedirectionIdentifier(const String& identifier) const; | 2200 void SetRedirectionIdentifier(const String& identifier) const; |
| 2199 RawFunction* RedirectionTarget() const; | 2201 RawFunction* RedirectionTarget() const; |
| 2200 void SetRedirectionTarget(const Function& target) const; | 2202 void SetRedirectionTarget(const Function& target) const; |
| 2201 | 2203 |
| 2202 RawFunction::Kind kind() const { | 2204 RawFunction::Kind kind() const { |
| (...skipping 5780 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7983 | 7985 |
| 7984 | 7986 |
| 7985 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, | 7987 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, |
| 7986 intptr_t index) { | 7988 intptr_t index) { |
| 7987 return array.At((index * kEntryLength) + kTargetFunctionIndex); | 7989 return array.At((index * kEntryLength) + kTargetFunctionIndex); |
| 7988 } | 7990 } |
| 7989 | 7991 |
| 7990 } // namespace dart | 7992 } // namespace dart |
| 7991 | 7993 |
| 7992 #endif // VM_OBJECT_H_ | 7994 #endif // VM_OBJECT_H_ |
| OLD | NEW |