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/conversions.h" | 8 #include "src/conversions.h" |
9 #include "src/handles.h" | 9 #include "src/handles.h" |
10 #include "src/objects.h" | 10 #include "src/objects.h" |
(...skipping 344 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
355 #define DEFINE_TYPE_CONSTRUCTOR(type, value) \ | 355 #define DEFINE_TYPE_CONSTRUCTOR(type, value) \ |
356 static TypeImpl* type() { \ | 356 static TypeImpl* type() { \ |
357 return BitsetType::New(BitsetType::k##type); \ | 357 return BitsetType::New(BitsetType::k##type); \ |
358 } \ | 358 } \ |
359 static TypeHandle type(Region* region) { \ | 359 static TypeHandle type(Region* region) { \ |
360 return BitsetType::New(BitsetType::k##type, region); \ | 360 return BitsetType::New(BitsetType::k##type, region); \ |
361 } | 361 } |
362 PROPER_BITSET_TYPE_LIST(DEFINE_TYPE_CONSTRUCTOR) | 362 PROPER_BITSET_TYPE_LIST(DEFINE_TYPE_CONSTRUCTOR) |
363 #undef DEFINE_TYPE_CONSTRUCTOR | 363 #undef DEFINE_TYPE_CONSTRUCTOR |
364 | 364 |
365 static TypeImpl* Signed64() { return Internal(); } | |
Benedikt Meurer
2015/10/30 09:42:08
Please don't add these helpers here. That's just c
ahaas
2015/11/02 10:35:37
Done. I removed Type::Signed64 again and instead u
| |
366 | |
367 static TypeHandle Signed64(Region* region) { return Internal(region); } | |
368 | |
365 static TypeImpl* SignedSmall() { | 369 static TypeImpl* SignedSmall() { |
366 return BitsetType::New(BitsetType::SignedSmall()); | 370 return BitsetType::New(BitsetType::SignedSmall()); |
367 } | 371 } |
368 static TypeHandle SignedSmall(Region* region) { | 372 static TypeHandle SignedSmall(Region* region) { |
369 return BitsetType::New(BitsetType::SignedSmall(), region); | 373 return BitsetType::New(BitsetType::SignedSmall(), region); |
370 } | 374 } |
371 static TypeImpl* UnsignedSmall() { | 375 static TypeImpl* UnsignedSmall() { |
372 return BitsetType::New(BitsetType::UnsignedSmall()); | 376 return BitsetType::New(BitsetType::UnsignedSmall()); |
373 } | 377 } |
374 static TypeHandle UnsignedSmall(Region* region) { | 378 static TypeHandle UnsignedSmall(Region* region) { |
(...skipping 808 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1183 return that.lower->Is(this->lower) && this->upper->Is(that.upper); | 1187 return that.lower->Is(this->lower) && this->upper->Is(that.upper); |
1184 } | 1188 } |
1185 }; | 1189 }; |
1186 | 1190 |
1187 typedef BoundsImpl<ZoneTypeConfig> Bounds; | 1191 typedef BoundsImpl<ZoneTypeConfig> Bounds; |
1188 | 1192 |
1189 } // namespace internal | 1193 } // namespace internal |
1190 } // namespace v8 | 1194 } // namespace v8 |
1191 | 1195 |
1192 #endif // V8_TYPES_H_ | 1196 #endif // V8_TYPES_H_ |
OLD | NEW |