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/factory.h" | 9 #include "src/factory.h" |
10 #include "src/handles.h" | 10 #include "src/handles.h" |
(...skipping 597 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
608 static Limits ToLimits(bitset bits, Region* region); | 608 static Limits ToLimits(bitset bits, Region* region); |
609 | 609 |
610 bool SimplyEquals(TypeImpl* that); | 610 bool SimplyEquals(TypeImpl* that); |
611 template<class TypeHandle> | 611 template<class TypeHandle> |
612 bool SimplyEquals(TypeHandle that) { return this->SimplyEquals(*that); } | 612 bool SimplyEquals(TypeHandle that) { return this->SimplyEquals(*that); } |
613 | 613 |
614 static int AddToUnion( | 614 static int AddToUnion( |
615 TypeHandle type, UnionHandle result, int size, Region* region); | 615 TypeHandle type, UnionHandle result, int size, Region* region); |
616 static int IntersectAux(TypeHandle type, TypeHandle other, UnionHandle result, | 616 static int IntersectAux(TypeHandle type, TypeHandle other, UnionHandle result, |
617 int size, Limits* limits, Region* region); | 617 int size, Limits* limits, Region* region); |
618 static TypeHandle NormalizeUnion(UnionHandle unioned, int size); | 618 static TypeHandle NormalizeUnion(UnionHandle unioned, int size, |
| 619 Region* region); |
619 static TypeHandle NormalizeRangeAndBitset(RangeHandle range, bitset* bits, | 620 static TypeHandle NormalizeRangeAndBitset(RangeHandle range, bitset* bits, |
620 Region* region); | 621 Region* region); |
621 }; | 622 }; |
622 | 623 |
623 | 624 |
624 // ----------------------------------------------------------------------------- | 625 // ----------------------------------------------------------------------------- |
625 // Bitset types (internal). | 626 // Bitset types (internal). |
626 | 627 |
627 template<class Config> | 628 template<class Config> |
628 class TypeImpl<Config>::BitsetType : public TypeImpl<Config> { | 629 class TypeImpl<Config>::BitsetType : public TypeImpl<Config> { |
(...skipping 521 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1150 bool Narrows(BoundsImpl that) { | 1151 bool Narrows(BoundsImpl that) { |
1151 return that.lower->Is(this->lower) && this->upper->Is(that.upper); | 1152 return that.lower->Is(this->lower) && this->upper->Is(that.upper); |
1152 } | 1153 } |
1153 }; | 1154 }; |
1154 | 1155 |
1155 typedef BoundsImpl<ZoneTypeConfig> Bounds; | 1156 typedef BoundsImpl<ZoneTypeConfig> Bounds; |
1156 | 1157 |
1157 } } // namespace v8::internal | 1158 } } // namespace v8::internal |
1158 | 1159 |
1159 #endif // V8_TYPES_H_ | 1160 #endif // V8_TYPES_H_ |
OLD | NEW |