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 5300 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5311 void set_type_class(const Object& value) const; | 5311 void set_type_class(const Object& value) const; |
5312 virtual RawUnresolvedClass* unresolved_class() const; | 5312 virtual RawUnresolvedClass* unresolved_class() const; |
5313 virtual RawTypeArguments* arguments() const; | 5313 virtual RawTypeArguments* arguments() const; |
5314 void set_arguments(const TypeArguments& value) const; | 5314 void set_arguments(const TypeArguments& value) const; |
5315 virtual intptr_t token_pos() const { return raw_ptr()->token_pos_; } | 5315 virtual intptr_t token_pos() const { return raw_ptr()->token_pos_; } |
5316 virtual bool IsInstantiated(TrailPtr trail = NULL) const; | 5316 virtual bool IsInstantiated(TrailPtr trail = NULL) const; |
5317 virtual bool IsEquivalent(const Instance& other, TrailPtr trail = NULL) const; | 5317 virtual bool IsEquivalent(const Instance& other, TrailPtr trail = NULL) const; |
5318 virtual bool IsRecursive() const; | 5318 virtual bool IsRecursive() const; |
5319 virtual RawAbstractType* InstantiateFrom( | 5319 virtual RawAbstractType* InstantiateFrom( |
5320 const TypeArguments& instantiator_type_arguments, | 5320 const TypeArguments& instantiator_type_arguments, |
5321 Error* malformed_error, | 5321 Error* bound_error, |
5322 TrailPtr trail = NULL, | 5322 TrailPtr trail = NULL, |
5323 Heap::Space space = Heap::kNew) const; | 5323 Heap::Space space = Heap::kNew) const; |
5324 virtual RawAbstractType* CloneUnfinalized() const; | 5324 virtual RawAbstractType* CloneUnfinalized() const; |
5325 virtual RawAbstractType* CloneUninstantiated( | 5325 virtual RawAbstractType* CloneUninstantiated( |
5326 const Class& new_owner, | 5326 const Class& new_owner, |
5327 TrailPtr trail = NULL) const; | 5327 TrailPtr trail = NULL) const; |
5328 virtual RawAbstractType* Canonicalize(TrailPtr trail = NULL) const; | 5328 virtual RawAbstractType* Canonicalize(TrailPtr trail = NULL) const; |
5329 | 5329 |
5330 virtual intptr_t Hash() const; | 5330 virtual intptr_t Hash() const; |
5331 | 5331 |
(...skipping 2911 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8243 | 8243 |
8244 | 8244 |
8245 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, | 8245 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, |
8246 intptr_t index) { | 8246 intptr_t index) { |
8247 return array.At((index * kEntryLength) + kTargetFunctionIndex); | 8247 return array.At((index * kEntryLength) + kTargetFunctionIndex); |
8248 } | 8248 } |
8249 | 8249 |
8250 } // namespace dart | 8250 } // namespace dart |
8251 | 8251 |
8252 #endif // VM_OBJECT_H_ | 8252 #endif // VM_OBJECT_H_ |
OLD | NEW |