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 3167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3178 | 3178 |
3179 // Check if this type represents the 'int' type. | 3179 // Check if this type represents the 'int' type. |
3180 bool IsIntType() const; | 3180 bool IsIntType() const; |
3181 | 3181 |
3182 // Check if this type represents the 'double' type. | 3182 // Check if this type represents the 'double' type. |
3183 bool IsDoubleType() const; | 3183 bool IsDoubleType() const; |
3184 | 3184 |
3185 // Check if this type represents the 'num' type. | 3185 // Check if this type represents the 'num' type. |
3186 bool IsNumberType() const; | 3186 bool IsNumberType() const; |
3187 | 3187 |
3188 // Check if this type represents the 'String' interface. | 3188 // Check if this type represents the 'String' type. |
3189 bool IsStringInterface() const; | 3189 bool IsStringType() const; |
3190 | 3190 |
3191 // Check if this type represents the 'Function' type. | 3191 // Check if this type represents the 'Function' type. |
3192 bool IsFunctionType() const; | 3192 bool IsFunctionType() const; |
3193 | 3193 |
3194 // Check if this type represents the 'List' interface. | 3194 // Check if this type represents the 'List' interface. |
3195 bool IsListInterface() const; | 3195 bool IsListInterface() const; |
3196 | 3196 |
3197 // Check if this type is an interface type. | 3197 // Check if this type is an interface type. |
3198 bool IsInterfaceType() const { | 3198 bool IsInterfaceType() const { |
3199 if (!HasResolvedTypeClass()) { | 3199 if (!HasResolvedTypeClass()) { |
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3302 | 3302 |
3303 // The 'Mint' type. | 3303 // The 'Mint' type. |
3304 static RawType* MintType(); | 3304 static RawType* MintType(); |
3305 | 3305 |
3306 // The 'double' type. | 3306 // The 'double' type. |
3307 static RawType* Double(); | 3307 static RawType* Double(); |
3308 | 3308 |
3309 // The 'num' interface type. | 3309 // The 'num' interface type. |
3310 static RawType* Number(); | 3310 static RawType* Number(); |
3311 | 3311 |
3312 // The 'String' interface type. | 3312 // The 'String' type. |
3313 static RawType* StringInterface(); | 3313 static RawType* StringType(); |
3314 | 3314 |
3315 // The 'Function' interface type. | 3315 // The 'Function' interface type. |
3316 static RawType* Function(); | 3316 static RawType* Function(); |
3317 | 3317 |
3318 // The 'List' interface type. | 3318 // The 'List' interface type. |
3319 static RawType* ListInterface(); | 3319 static RawType* ListInterface(); |
3320 | 3320 |
3321 // The finalized type of the given non-parameterized class. | 3321 // The finalized type of the given non-parameterized class. |
3322 static RawType* NewNonParameterizedType(const Class& type_class); | 3322 static RawType* NewNonParameterizedType(const Class& type_class); |
3323 | 3323 |
(...skipping 2543 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5867 if (this->CharAt(i) != str.CharAt(begin_index + i)) { | 5867 if (this->CharAt(i) != str.CharAt(begin_index + i)) { |
5868 return false; | 5868 return false; |
5869 } | 5869 } |
5870 } | 5870 } |
5871 return true; | 5871 return true; |
5872 } | 5872 } |
5873 | 5873 |
5874 } // namespace dart | 5874 } // namespace dart |
5875 | 5875 |
5876 #endif // VM_OBJECT_H_ | 5876 #endif // VM_OBJECT_H_ |
OLD | NEW |