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 RUNTIME_VM_OBJECT_H_ | 5 #ifndef RUNTIME_VM_OBJECT_H_ |
6 #define RUNTIME_VM_OBJECT_H_ | 6 #define RUNTIME_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 5794 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5805 return !IsFunctionType() && HasResolvedTypeClass() && | 5805 return !IsFunctionType() && HasResolvedTypeClass() && |
5806 Class::Handle(type_class()).IsObjectClass(); | 5806 Class::Handle(type_class()).IsObjectClass(); |
5807 } | 5807 } |
5808 | 5808 |
5809 // Check if this type represents the 'bool' type. | 5809 // Check if this type represents the 'bool' type. |
5810 bool IsBoolType() const; | 5810 bool IsBoolType() const; |
5811 | 5811 |
5812 // Check if this type represents the 'int' type. | 5812 // Check if this type represents the 'int' type. |
5813 bool IsIntType() const; | 5813 bool IsIntType() const; |
5814 | 5814 |
5815 // Check if this type represents the '_int64' type. | |
5816 bool IsInt64Type() const; | |
5817 | |
5818 // Check if this type represents the 'double' type. | 5815 // Check if this type represents the 'double' type. |
5819 bool IsDoubleType() const; | 5816 bool IsDoubleType() const; |
5820 | 5817 |
5821 // Check if this type represents the 'Float32x4' type. | 5818 // Check if this type represents the 'Float32x4' type. |
5822 bool IsFloat32x4Type() const; | 5819 bool IsFloat32x4Type() const; |
5823 | 5820 |
5824 // Check if this type represents the 'Float64x2' type. | 5821 // Check if this type represents the 'Float64x2' type. |
5825 bool IsFloat64x2Type() const; | 5822 bool IsFloat64x2Type() const; |
5826 | 5823 |
5827 // Check if this type represents the 'Int32x4' type. | 5824 // Check if this type represents the 'Int32x4' type. |
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5962 | 5959 |
5963 // The 'Object' type. | 5960 // The 'Object' type. |
5964 static RawType* ObjectType(); | 5961 static RawType* ObjectType(); |
5965 | 5962 |
5966 // The 'bool' type. | 5963 // The 'bool' type. |
5967 static RawType* BoolType(); | 5964 static RawType* BoolType(); |
5968 | 5965 |
5969 // The 'int' type. | 5966 // The 'int' type. |
5970 static RawType* IntType(); | 5967 static RawType* IntType(); |
5971 | 5968 |
5972 // The '_int64' type. | |
5973 static RawType* Int64Type(); | |
5974 | |
5975 // The 'Smi' type. | 5969 // The 'Smi' type. |
5976 static RawType* SmiType(); | 5970 static RawType* SmiType(); |
5977 | 5971 |
5978 // The 'Mint' type. | 5972 // The 'Mint' type. |
5979 static RawType* MintType(); | 5973 static RawType* MintType(); |
5980 | 5974 |
5981 // The 'double' type. | 5975 // The 'double' type. |
5982 static RawType* Double(); | 5976 static RawType* Double(); |
5983 | 5977 |
5984 // The 'Float32x4' type. | 5978 // The 'Float32x4' type. |
(...skipping 2977 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8962 | 8956 |
8963 inline void TypeArguments::SetHash(intptr_t value) const { | 8957 inline void TypeArguments::SetHash(intptr_t value) const { |
8964 // This is only safe because we create a new Smi, which does not cause | 8958 // This is only safe because we create a new Smi, which does not cause |
8965 // heap allocation. | 8959 // heap allocation. |
8966 StoreSmi(&raw_ptr()->hash_, Smi::New(value)); | 8960 StoreSmi(&raw_ptr()->hash_, Smi::New(value)); |
8967 } | 8961 } |
8968 | 8962 |
8969 } // namespace dart | 8963 } // namespace dart |
8970 | 8964 |
8971 #endif // RUNTIME_VM_OBJECT_H_ | 8965 #endif // RUNTIME_VM_OBJECT_H_ |
OLD | NEW |