Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(75)

Side by Side Diff: runtime/vm/object.h

Issue 10933039: Make int an abstract class. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Now with correct base. Created 8 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 857 matching lines...) Expand 10 before | Expand all | Expand 10 after
868 } 868 }
869 869
870 bool IsObjectType() const { 870 bool IsObjectType() const {
871 return HasResolvedTypeClass() && 871 return HasResolvedTypeClass() &&
872 Class::Handle(type_class()).IsObjectClass(); 872 Class::Handle(type_class()).IsObjectClass();
873 } 873 }
874 874
875 // Check if this type represents the 'bool' type. 875 // Check if this type represents the 'bool' type.
876 bool IsBoolType() const; 876 bool IsBoolType() const;
877 877
878 // Check if this type represents the 'int' interface. 878 // Check if this type represents the 'int' type.
879 bool IsIntInterface() const; 879 bool IsIntType() const;
880 880
881 // Check if this type represents the 'double' type. 881 // Check if this type represents the 'double' type.
882 bool IsDoubleType() const; 882 bool IsDoubleType() const;
883 883
884 // Check if this type represents the 'num' type. 884 // Check if this type represents the 'num' type.
885 bool IsNumberType() const; 885 bool IsNumberType() const;
886 886
887 // Check if this type represents the 'String' interface. 887 // Check if this type represents the 'String' interface.
888 bool IsStringInterface() const; 888 bool IsStringInterface() const;
889 889
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
986 986
987 // The 'void' type. 987 // The 'void' type.
988 static RawType* VoidType(); 988 static RawType* VoidType();
989 989
990 // The 'Object' type. 990 // The 'Object' type.
991 static RawType* ObjectType(); 991 static RawType* ObjectType();
992 992
993 // The 'bool' type. 993 // The 'bool' type.
994 static RawType* BoolType(); 994 static RawType* BoolType();
995 995
996 // The 'int' interface type. 996 // The 'int' type.
997 static RawType* IntInterface(); 997 static RawType* IntType();
998 998
999 // The 'Smi' type. 999 // The 'Smi' type.
1000 static RawType* SmiType(); 1000 static RawType* SmiType();
1001 1001
1002 // The 'Mint' type. 1002 // The 'Mint' type.
1003 static RawType* MintType(); 1003 static RawType* MintType();
1004 1004
1005 // The 'double' type. 1005 // The 'double' type.
1006 static RawType* Double(); 1006 static RawType* Double();
1007 1007
(...skipping 4567 matching lines...) Expand 10 before | Expand all | Expand 10 after
5575 if (this->CharAt(i) != str.CharAt(begin_index + i)) { 5575 if (this->CharAt(i) != str.CharAt(begin_index + i)) {
5576 return false; 5576 return false;
5577 } 5577 }
5578 } 5578 }
5579 return true; 5579 return true;
5580 } 5580 }
5581 5581
5582 } // namespace dart 5582 } // namespace dart
5583 5583
5584 #endif // VM_OBJECT_H_ 5584 #endif // VM_OBJECT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698