Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(466)

Side by Side Diff: src/types.h

Issue 435403002: Add convenience method to print types for debugging. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | src/types.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « no previous file | src/types.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698