| 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 5467 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5478 | 5478 |
| 5479 // Check if this type represents the '_Smi' type. | 5479 // Check if this type represents the '_Smi' type. |
| 5480 bool IsSmiType() const; | 5480 bool IsSmiType() const; |
| 5481 | 5481 |
| 5482 // Check if this type represents the 'String' type. | 5482 // Check if this type represents the 'String' type. |
| 5483 bool IsStringType() const; | 5483 bool IsStringType() const; |
| 5484 | 5484 |
| 5485 // Check if this type represents the Dart 'Function' type. | 5485 // Check if this type represents the Dart 'Function' type. |
| 5486 bool IsDartFunctionType() const; | 5486 bool IsDartFunctionType() const; |
| 5487 | 5487 |
| 5488 // Check if this type represents the Dart '_Closure' type. |
| 5489 bool IsDartClosureType() const; |
| 5490 |
| 5488 // Check the subtype relationship. | 5491 // Check the subtype relationship. |
| 5489 bool IsSubtypeOf(const AbstractType& other, | 5492 bool IsSubtypeOf(const AbstractType& other, |
| 5490 Error* bound_error, | 5493 Error* bound_error, |
| 5491 TrailPtr bound_trail, | 5494 TrailPtr bound_trail, |
| 5492 Heap::Space space) const { | 5495 Heap::Space space) const { |
| 5493 return TypeTest(kIsSubtypeOf, other, bound_error, bound_trail, space); | 5496 return TypeTest(kIsSubtypeOf, other, bound_error, bound_trail, space); |
| 5494 } | 5497 } |
| 5495 | 5498 |
| 5496 // Check the 'more specific' relationship. | 5499 // Check the 'more specific' relationship. |
| 5497 bool IsMoreSpecificThan(const AbstractType& other, | 5500 bool IsMoreSpecificThan(const AbstractType& other, |
| (...skipping 2957 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8455 | 8458 |
| 8456 | 8459 |
| 8457 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, | 8460 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, |
| 8458 intptr_t index) { | 8461 intptr_t index) { |
| 8459 return array.At((index * kEntryLength) + kTargetFunctionIndex); | 8462 return array.At((index * kEntryLength) + kTargetFunctionIndex); |
| 8460 } | 8463 } |
| 8461 | 8464 |
| 8462 } // namespace dart | 8465 } // namespace dart |
| 8463 | 8466 |
| 8464 #endif // VM_OBJECT_H_ | 8467 #endif // VM_OBJECT_H_ |
| OLD | NEW |