| 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 5423 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5434 | 5434 |
| 5435 // Check if this type represents the '_Smi' type. | 5435 // Check if this type represents the '_Smi' type. |
| 5436 bool IsSmiType() const; | 5436 bool IsSmiType() const; |
| 5437 | 5437 |
| 5438 // Check if this type represents the 'String' type. | 5438 // Check if this type represents the 'String' type. |
| 5439 bool IsStringType() const; | 5439 bool IsStringType() const; |
| 5440 | 5440 |
| 5441 // Check if this type represents the Dart 'Function' type. | 5441 // Check if this type represents the Dart 'Function' type. |
| 5442 bool IsDartFunctionType() const; | 5442 bool IsDartFunctionType() const; |
| 5443 | 5443 |
| 5444 // Check if this type represents the Dart '_Closure' type. |
| 5445 bool IsDartClosureType() const; |
| 5446 |
| 5444 // Check the subtype relationship. | 5447 // Check the subtype relationship. |
| 5445 bool IsSubtypeOf(const AbstractType& other, | 5448 bool IsSubtypeOf(const AbstractType& other, |
| 5446 Error* bound_error, | 5449 Error* bound_error, |
| 5447 TrailPtr bound_trail, | 5450 TrailPtr bound_trail, |
| 5448 Heap::Space space) const { | 5451 Heap::Space space) const { |
| 5449 return TypeTest(kIsSubtypeOf, other, bound_error, bound_trail, space); | 5452 return TypeTest(kIsSubtypeOf, other, bound_error, bound_trail, space); |
| 5450 } | 5453 } |
| 5451 | 5454 |
| 5452 // Check the 'more specific' relationship. | 5455 // Check the 'more specific' relationship. |
| 5453 bool IsMoreSpecificThan(const AbstractType& other, | 5456 bool IsMoreSpecificThan(const AbstractType& other, |
| (...skipping 3036 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8490 | 8493 |
| 8491 | 8494 |
| 8492 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, | 8495 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, |
| 8493 intptr_t index) { | 8496 intptr_t index) { |
| 8494 return array.At((index * kEntryLength) + kTargetFunctionIndex); | 8497 return array.At((index * kEntryLength) + kTargetFunctionIndex); |
| 8495 } | 8498 } |
| 8496 | 8499 |
| 8497 } // namespace dart | 8500 } // namespace dart |
| 8498 | 8501 |
| 8499 #endif // VM_OBJECT_H_ | 8502 #endif // VM_OBJECT_H_ |
| OLD | NEW |