| 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 | 10 |
| (...skipping 413 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 424 template<class OtherTypeImpl> | 424 template<class OtherTypeImpl> |
| 425 static TypeHandle Convert( | 425 static TypeHandle Convert( |
| 426 typename OtherTypeImpl::TypeHandle type, Region* region); | 426 typename OtherTypeImpl::TypeHandle type, Region* region); |
| 427 | 427 |
| 428 // Printing. | 428 // Printing. |
| 429 | 429 |
| 430 enum PrintDimension { BOTH_DIMS, SEMANTIC_DIM, REPRESENTATION_DIM }; | 430 enum PrintDimension { BOTH_DIMS, SEMANTIC_DIM, REPRESENTATION_DIM }; |
| 431 | 431 |
| 432 void PrintTo(OStream& os, PrintDimension dim = BOTH_DIMS); // NOLINT | 432 void PrintTo(OStream& os, PrintDimension dim = BOTH_DIMS); // NOLINT |
| 433 | 433 |
| 434 #ifdef DEBUG |
| 435 void Print(); |
| 436 #endif |
| 437 |
| 434 protected: | 438 protected: |
| 435 // Friends. | 439 // Friends. |
| 436 | 440 |
| 437 template<class> friend class Iterator; | 441 template<class> friend class Iterator; |
| 438 template<class> friend class TypeImpl; | 442 template<class> friend class TypeImpl; |
| 439 | 443 |
| 440 // Handle conversion. | 444 // Handle conversion. |
| 441 | 445 |
| 442 template<class T> | 446 template<class T> |
| 443 static typename Config::template Handle<T>::type handle(T* type) { | 447 static typename Config::template Handle<T>::type handle(T* type) { |
| (...skipping 546 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 990 bool Narrows(BoundsImpl that) { | 994 bool Narrows(BoundsImpl that) { |
| 991 return that.lower->Is(this->lower) && this->upper->Is(that.upper); | 995 return that.lower->Is(this->lower) && this->upper->Is(that.upper); |
| 992 } | 996 } |
| 993 }; | 997 }; |
| 994 | 998 |
| 995 typedef BoundsImpl<ZoneTypeConfig> Bounds; | 999 typedef BoundsImpl<ZoneTypeConfig> Bounds; |
| 996 | 1000 |
| 997 } } // namespace v8::internal | 1001 } } // namespace v8::internal |
| 998 | 1002 |
| 999 #endif // V8_TYPES_H_ | 1003 #endif // V8_TYPES_H_ |
| OLD | NEW |