Chromium Code Reviews| 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 3082 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 3093 | 3093 |
| 3094 // Check if this type represents the 'int' type. | 3094 // Check if this type represents the 'int' type. |
| 3095 bool IsIntType() const; | 3095 bool IsIntType() const; |
| 3096 | 3096 |
| 3097 // Check if this type represents the 'double' type. | 3097 // Check if this type represents the 'double' type. |
| 3098 bool IsDoubleType() const; | 3098 bool IsDoubleType() const; |
| 3099 | 3099 |
| 3100 // Check if this type represents the 'num' type. | 3100 // Check if this type represents the 'num' type. |
| 3101 bool IsNumberType() const; | 3101 bool IsNumberType() const; |
| 3102 | 3102 |
| 3103 // Check if this type represents the 'String' interface. | 3103 // Check if this type represents the 'String' type. |
| 3104 bool IsStringInterface() const; | 3104 bool IsStringType() const; |
| 3105 | 3105 |
| 3106 // Check if this type represents the 'Function' type. | 3106 // Check if this type represents the 'Function' type. |
| 3107 bool IsFunctionType() const; | 3107 bool IsFunctionType() const; |
| 3108 | 3108 |
| 3109 // Check if this type represents the 'List' interface. | 3109 // Check if this type represents the 'List' type. |
|
hausner
2012/10/11 17:04:44
Changed comment too eagerly?
Lasse Reichstein Nielsen
2012/10/12 08:03:51
or didn't revert enough (I got this branch from th
| |
| 3110 bool IsListInterface() const; | 3110 bool IsListInterface() const; |
| 3111 | 3111 |
| 3112 // Check if this type is an interface type. | 3112 // Check if this type is an interface type. |
| 3113 bool IsInterfaceType() const { | 3113 bool IsInterfaceType() const { |
| 3114 if (!HasResolvedTypeClass()) { | 3114 if (!HasResolvedTypeClass()) { |
| 3115 return false; | 3115 return false; |
| 3116 } | 3116 } |
| 3117 const Class& cls = Class::Handle(type_class()); | 3117 const Class& cls = Class::Handle(type_class()); |
| 3118 return !cls.IsNull() && cls.is_interface(); | 3118 return !cls.IsNull() && cls.is_interface(); |
| 3119 } | 3119 } |
| (...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 3217 | 3217 |
| 3218 // The 'Mint' type. | 3218 // The 'Mint' type. |
| 3219 static RawType* MintType(); | 3219 static RawType* MintType(); |
| 3220 | 3220 |
| 3221 // The 'double' type. | 3221 // The 'double' type. |
| 3222 static RawType* Double(); | 3222 static RawType* Double(); |
| 3223 | 3223 |
| 3224 // The 'num' interface type. | 3224 // The 'num' interface type. |
| 3225 static RawType* Number(); | 3225 static RawType* Number(); |
| 3226 | 3226 |
| 3227 // The 'String' interface type. | 3227 // The 'String' type. |
| 3228 static RawType* StringInterface(); | 3228 static RawType* StringType(); |
| 3229 | 3229 |
| 3230 // The 'Function' interface type. | 3230 // The 'Function' interface type. |
| 3231 static RawType* Function(); | 3231 static RawType* Function(); |
| 3232 | 3232 |
| 3233 // The 'List' interface type. | 3233 // The 'List' interface type. |
| 3234 static RawType* ListInterface(); | 3234 static RawType* ListInterface(); |
| 3235 | 3235 |
| 3236 // The finalized type of the given non-parameterized class. | 3236 // The finalized type of the given non-parameterized class. |
| 3237 static RawType* NewNonParameterizedType(const Class& type_class); | 3237 static RawType* NewNonParameterizedType(const Class& type_class); |
| 3238 | 3238 |
| (...skipping 2487 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 5726 if (this->CharAt(i) != str.CharAt(begin_index + i)) { | 5726 if (this->CharAt(i) != str.CharAt(begin_index + i)) { |
| 5727 return false; | 5727 return false; |
| 5728 } | 5728 } |
| 5729 } | 5729 } |
| 5730 return true; | 5730 return true; |
| 5731 } | 5731 } |
| 5732 | 5732 |
| 5733 } // namespace dart | 5733 } // namespace dart |
| 5734 | 5734 |
| 5735 #endif // VM_OBJECT_H_ | 5735 #endif // VM_OBJECT_H_ |
| OLD | NEW |