OLD | NEW |
1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef V8_TYPES_H_ | 5 #ifndef V8_TYPES_H_ |
6 #define V8_TYPES_H_ | 6 #define V8_TYPES_H_ |
7 | 7 |
8 #include "src/factory.h" | 8 #include "src/factory.h" |
9 #include "src/handles.h" | 9 #include "src/handles.h" |
10 #include "src/ostreams.h" | 10 #include "src/ostreams.h" |
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
148 #define REPRESENTATION_BITSET_TYPE_LIST(V) \ | 148 #define REPRESENTATION_BITSET_TYPE_LIST(V) \ |
149 V(None, 0) \ | 149 V(None, 0) \ |
150 V(UntaggedInt1, 1 << 22 | kSemantic) \ | 150 V(UntaggedInt1, 1 << 22 | kSemantic) \ |
151 V(UntaggedInt8, 1 << 23 | kSemantic) \ | 151 V(UntaggedInt8, 1 << 23 | kSemantic) \ |
152 V(UntaggedInt16, 1 << 24 | kSemantic) \ | 152 V(UntaggedInt16, 1 << 24 | kSemantic) \ |
153 V(UntaggedInt32, 1 << 25 | kSemantic) \ | 153 V(UntaggedInt32, 1 << 25 | kSemantic) \ |
154 V(UntaggedFloat32, 1 << 26 | kSemantic) \ | 154 V(UntaggedFloat32, 1 << 26 | kSemantic) \ |
155 V(UntaggedFloat64, 1 << 27 | kSemantic) \ | 155 V(UntaggedFloat64, 1 << 27 | kSemantic) \ |
156 V(UntaggedPtr, 1 << 28 | kSemantic) \ | 156 V(UntaggedPtr, 1 << 28 | kSemantic) \ |
157 V(TaggedInt, 1 << 29 | kSemantic) \ | 157 V(TaggedInt, 1 << 29 | kSemantic) \ |
158 V(TaggedPtr, -1 << 30 | kSemantic) /* MSB has to be sign-extended */ \ | 158 /* MSB has to be sign-extended */ \ |
| 159 V(TaggedPtr, static_cast<int>(~0u << 30) | kSemantic) \ |
159 \ | 160 \ |
160 V(UntaggedInt, kUntaggedInt1 | kUntaggedInt8 | \ | 161 V(UntaggedInt, kUntaggedInt1 | kUntaggedInt8 | \ |
161 kUntaggedInt16 | kUntaggedInt32) \ | 162 kUntaggedInt16 | kUntaggedInt32) \ |
162 V(UntaggedFloat, kUntaggedFloat32 | kUntaggedFloat64) \ | 163 V(UntaggedFloat, kUntaggedFloat32 | kUntaggedFloat64) \ |
163 V(UntaggedNumber, kUntaggedInt | kUntaggedFloat) \ | 164 V(UntaggedNumber, kUntaggedInt | kUntaggedFloat) \ |
164 V(Untagged, kUntaggedNumber | kUntaggedPtr) \ | 165 V(Untagged, kUntaggedNumber | kUntaggedPtr) \ |
165 V(Tagged, kTaggedInt | kTaggedPtr) | 166 V(Tagged, kTaggedInt | kTaggedPtr) |
166 | 167 |
167 #define SEMANTIC_BITSET_TYPE_LIST(V) \ | 168 #define SEMANTIC_BITSET_TYPE_LIST(V) \ |
168 V(Null, 1 << 0 | REPRESENTATION(kTaggedPtr)) \ | 169 V(Null, 1 << 0 | REPRESENTATION(kTaggedPtr)) \ |
(...skipping 822 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
991 bool Narrows(BoundsImpl that) { | 992 bool Narrows(BoundsImpl that) { |
992 return that.lower->Is(this->lower) && this->upper->Is(that.upper); | 993 return that.lower->Is(this->lower) && this->upper->Is(that.upper); |
993 } | 994 } |
994 }; | 995 }; |
995 | 996 |
996 typedef BoundsImpl<ZoneTypeConfig> Bounds; | 997 typedef BoundsImpl<ZoneTypeConfig> Bounds; |
997 | 998 |
998 } } // namespace v8::internal | 999 } } // namespace v8::internal |
999 | 1000 |
1000 #endif // V8_TYPES_H_ | 1001 #endif // V8_TYPES_H_ |
OLD | NEW |