| 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 454 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 465 int InherentBitsetLub() { return BitsetType::InherentLub(this); } | 465 int InherentBitsetLub() { return BitsetType::InherentLub(this); } |
| 466 | 466 |
| 467 bool SlowIs(TypeImpl* that); | 467 bool SlowIs(TypeImpl* that); |
| 468 | 468 |
| 469 TypeHandle Rebound(int bitset, Region* region); | 469 TypeHandle Rebound(int bitset, Region* region); |
| 470 int BoundBy(TypeImpl* that); | 470 int BoundBy(TypeImpl* that); |
| 471 int IndexInUnion(int bound, UnionHandle unioned, int current_size); | 471 int IndexInUnion(int bound, UnionHandle unioned, int current_size); |
| 472 static int ExtendUnion( | 472 static int ExtendUnion( |
| 473 UnionHandle unioned, int current_size, TypeHandle t, | 473 UnionHandle unioned, int current_size, TypeHandle t, |
| 474 TypeHandle other, bool is_intersect, Region* region); | 474 TypeHandle other, bool is_intersect, Region* region); |
| 475 static int NormalizeUnion(UnionHandle unioned, int current_size, int bitset); | |
| 476 }; | 475 }; |
| 477 | 476 |
| 478 | 477 |
| 479 // ----------------------------------------------------------------------------- | 478 // ----------------------------------------------------------------------------- |
| 480 // Bitset types (internal). | 479 // Bitset types (internal). |
| 481 | 480 |
| 482 template<class Config> | 481 template<class Config> |
| 483 class TypeImpl<Config>::BitsetType : public TypeImpl<Config> { | 482 class TypeImpl<Config>::BitsetType : public TypeImpl<Config> { |
| 484 protected: | 483 protected: |
| 485 friend class TypeImpl<Config>; | 484 friend class TypeImpl<Config>; |
| (...skipping 506 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 992 bool Narrows(BoundsImpl that) { | 991 bool Narrows(BoundsImpl that) { |
| 993 return that.lower->Is(this->lower) && this->upper->Is(that.upper); | 992 return that.lower->Is(this->lower) && this->upper->Is(that.upper); |
| 994 } | 993 } |
| 995 }; | 994 }; |
| 996 | 995 |
| 997 typedef BoundsImpl<ZoneTypeConfig> Bounds; | 996 typedef BoundsImpl<ZoneTypeConfig> Bounds; |
| 998 | 997 |
| 999 } } // namespace v8::internal | 998 } } // namespace v8::internal |
| 1000 | 999 |
| 1001 #endif // V8_TYPES_H_ | 1000 #endif // V8_TYPES_H_ |
| OLD | NEW |