| 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 "handles.h" | 8 #include "handles.h" |
| 9 | 9 |
| 10 namespace v8 { | 10 namespace v8 { |
| (...skipping 451 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 462 TypeHandle other, bool is_intersect, Region* region); | 462 TypeHandle other, bool is_intersect, Region* region); |
| 463 static int NormalizeUnion(UnionHandle unioned, int current_size, int bitset); | 463 static int NormalizeUnion(UnionHandle unioned, int current_size, int bitset); |
| 464 }; | 464 }; |
| 465 | 465 |
| 466 | 466 |
| 467 // ----------------------------------------------------------------------------- | 467 // ----------------------------------------------------------------------------- |
| 468 // Bitset types (internal). | 468 // Bitset types (internal). |
| 469 | 469 |
| 470 template<class Config> | 470 template<class Config> |
| 471 class TypeImpl<Config>::BitsetType : public TypeImpl<Config> { | 471 class TypeImpl<Config>::BitsetType : public TypeImpl<Config> { |
| 472 private: | 472 protected: |
| 473 friend class TypeImpl<Config>; | 473 friend class TypeImpl<Config>; |
| 474 | 474 |
| 475 enum { | 475 enum { |
| 476 #define DECLARE_TYPE(type, value) k##type = (value), | 476 #define DECLARE_TYPE(type, value) k##type = (value), |
| 477 BITSET_TYPE_LIST(DECLARE_TYPE) | 477 BITSET_TYPE_LIST(DECLARE_TYPE) |
| 478 #undef DECLARE_TYPE | 478 #undef DECLARE_TYPE |
| 479 kUnusedEOL = 0 | 479 kUnusedEOL = 0 |
| 480 }; | 480 }; |
| 481 | 481 |
| 482 int Bitset() { return Config::as_bitset(this); } | 482 int Bitset() { return Config::as_bitset(this); } |
| (...skipping 441 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 924 bool Narrows(BoundsImpl that) { | 924 bool Narrows(BoundsImpl that) { |
| 925 return that.lower->Is(this->lower) && this->upper->Is(that.upper); | 925 return that.lower->Is(this->lower) && this->upper->Is(that.upper); |
| 926 } | 926 } |
| 927 }; | 927 }; |
| 928 | 928 |
| 929 typedef BoundsImpl<ZoneTypeConfig> Bounds; | 929 typedef BoundsImpl<ZoneTypeConfig> Bounds; |
| 930 | 930 |
| 931 } } // namespace v8::internal | 931 } } // namespace v8::internal |
| 932 | 932 |
| 933 #endif // V8_TYPES_H_ | 933 #endif // V8_TYPES_H_ |
| OLD | NEW |