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 460 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
471 static inline TypeImpl* cast(typename Config::Base* object); | 471 static inline TypeImpl* cast(typename Config::Base* object); |
472 | 472 |
473 template<class OtherTypeImpl> | 473 template<class OtherTypeImpl> |
474 static TypeHandle Convert( | 474 static TypeHandle Convert( |
475 typename OtherTypeImpl::TypeHandle type, Region* region); | 475 typename OtherTypeImpl::TypeHandle type, Region* region); |
476 | 476 |
477 // Printing. | 477 // Printing. |
478 | 478 |
479 enum PrintDimension { BOTH_DIMS, SEMANTIC_DIM, REPRESENTATION_DIM }; | 479 enum PrintDimension { BOTH_DIMS, SEMANTIC_DIM, REPRESENTATION_DIM }; |
480 | 480 |
481 void PrintTo(OStream& os, PrintDimension dim = BOTH_DIMS); // NOLINT | 481 void PrintTo(std::ostream& os, PrintDimension dim = BOTH_DIMS); // NOLINT |
482 | 482 |
483 #ifdef DEBUG | 483 #ifdef DEBUG |
484 void Print(); | 484 void Print(); |
485 #endif | 485 #endif |
486 | 486 |
487 protected: | 487 protected: |
488 // Friends. | 488 // Friends. |
489 | 489 |
490 template<class> friend class Iterator; | 490 template<class> friend class Iterator; |
491 template<class> friend class TypeImpl; | 491 template<class> friend class TypeImpl; |
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
599 static bitset Glb(TypeImpl* type); // greatest lower bound that's a bitset | 599 static bitset Glb(TypeImpl* type); // greatest lower bound that's a bitset |
600 static bitset Lub(TypeImpl* type); // least upper bound that's a bitset | 600 static bitset Lub(TypeImpl* type); // least upper bound that's a bitset |
601 static bitset Lub(i::Object* value); | 601 static bitset Lub(i::Object* value); |
602 static bitset Lub(double value); | 602 static bitset Lub(double value); |
603 static bitset Lub(int32_t value); | 603 static bitset Lub(int32_t value); |
604 static bitset Lub(uint32_t value); | 604 static bitset Lub(uint32_t value); |
605 static bitset Lub(i::Map* map); | 605 static bitset Lub(i::Map* map); |
606 static bitset Lub(Limits lim); | 606 static bitset Lub(Limits lim); |
607 | 607 |
608 static const char* Name(bitset); | 608 static const char* Name(bitset); |
609 static void Print(OStream& os, bitset); // NOLINT | 609 static void Print(std::ostream& os, bitset); // NOLINT |
610 #ifdef DEBUG | 610 #ifdef DEBUG |
611 static void Print(bitset); | 611 static void Print(bitset); |
612 #endif | 612 #endif |
613 | 613 |
614 private: | 614 private: |
615 struct BitsetMin{ | 615 struct BitsetMin{ |
616 bitset bits; | 616 bitset bits; |
617 double min; | 617 double min; |
618 }; | 618 }; |
619 static const BitsetMin BitsetMins31[]; | 619 static const BitsetMin BitsetMins31[]; |
(...skipping 422 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1042 bool Narrows(BoundsImpl that) { | 1042 bool Narrows(BoundsImpl that) { |
1043 return that.lower->Is(this->lower) && this->upper->Is(that.upper); | 1043 return that.lower->Is(this->lower) && this->upper->Is(that.upper); |
1044 } | 1044 } |
1045 }; | 1045 }; |
1046 | 1046 |
1047 typedef BoundsImpl<ZoneTypeConfig> Bounds; | 1047 typedef BoundsImpl<ZoneTypeConfig> Bounds; |
1048 | 1048 |
1049 } } // namespace v8::internal | 1049 } } // namespace v8::internal |
1050 | 1050 |
1051 #endif // V8_TYPES_H_ | 1051 #endif // V8_TYPES_H_ |
OLD | NEW |