OLD | NEW |
1 // Copyright 2010 the V8 project authors. All rights reserved. | 1 // Copyright 2010 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 29 matching lines...) Expand all Loading... |
40 // Number String | 40 // Number String |
41 // / | | | 41 // / | | |
42 // Double Integer32 | | 42 // Double Integer32 | |
43 // | | / | 43 // | | / |
44 // | Smi / | 44 // | Smi / |
45 // | / / | 45 // | / / |
46 // Uninitialized. | 46 // Uninitialized. |
47 | 47 |
48 class TypeInfo { | 48 class TypeInfo { |
49 public: | 49 public: |
50 TypeInfo() { } | 50 TypeInfo() : type_(kUnknownType) { } |
51 | 51 |
52 static inline TypeInfo Unknown(); | 52 static inline TypeInfo Unknown(); |
53 // We know it's a primitive type. | 53 // We know it's a primitive type. |
54 static inline TypeInfo Primitive(); | 54 static inline TypeInfo Primitive(); |
55 // We know it's a number of some sort. | 55 // We know it's a number of some sort. |
56 static inline TypeInfo Number(); | 56 static inline TypeInfo Number(); |
57 // We know it's signed or unsigned 32 bit integer. | 57 // We know it's signed or unsigned 32 bit integer. |
58 static inline TypeInfo Integer32(); | 58 static inline TypeInfo Integer32(); |
59 // We know it's a Smi. | 59 // We know it's a Smi. |
60 static inline TypeInfo Smi(); | 60 static inline TypeInfo Smi(); |
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
235 } | 235 } |
236 | 236 |
237 | 237 |
238 TypeInfo TypeInfo::Uninitialized() { | 238 TypeInfo TypeInfo::Uninitialized() { |
239 return TypeInfo(kUninitializedType); | 239 return TypeInfo(kUninitializedType); |
240 } | 240 } |
241 | 241 |
242 } } // namespace v8::internal | 242 } } // namespace v8::internal |
243 | 243 |
244 #endif // V8_TYPE_INFO_H_ | 244 #endif // V8_TYPE_INFO_H_ |
OLD | NEW |