TypePrint() does not depend on Object::Print().
authorbmeurer@chromium.org <bmeurer@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Fri, 4 Apr 2014 07:21:59 +0000 (07:21 +0000)
committerbmeurer@chromium.org <bmeurer@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Fri, 4 Apr 2014 07:21:59 +0000 (07:21 +0000)
R=svenpanne@chromium.org

Review URL: https://codereview.chromium.org/225353004

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@20496 ce2b1a6d-e550-0410-aec6-3dcde31c8c00

src/types.cc
src/types.h

index 804ea5ece64d8a12941040014fb2300d5e59c2bd..9cab090695037aff9768a9a6c2de746ddbf050aa 100644 (file)
@@ -568,7 +568,6 @@ Representation Representation::FromType(Type* type) {
 }
 
 
-#ifdef OBJECT_PRINT
 template<class Config>
 void TypeImpl<Config>::TypePrint(PrintDimension dim) {
   TypePrint(stdout, dim);
@@ -666,7 +665,6 @@ void TypeImpl<Config>::TypePrint(FILE* out, PrintDimension dim) {
     PrintF(out, ")");
   }
 }
-#endif
 
 
 template class TypeImpl<ZoneTypeConfig>;
index 42a50b922bd0f0f56441d853687b4fd390466041..0d172bdf0eb9bc64514bbb1fc7caf2f426dc0285 100644 (file)
@@ -293,11 +293,9 @@ class TypeImpl : public Config::Base {
   static TypeHandle Convert(
       typename OtherTypeImpl::TypeHandle type, Region* region);
 
-#ifdef OBJECT_PRINT
   enum PrintDimension { BOTH_DIMS, SEMANTIC_DIM, REPRESENTATION_DIM };
   void TypePrint(PrintDimension = BOTH_DIMS);
   void TypePrint(FILE* out, PrintDimension = BOTH_DIMS);
-#endif
 
  private:
   template<class> friend class Iterator;
@@ -349,10 +347,8 @@ class TypeImpl : public Config::Base {
   static int ExtendIntersection(
       UnionedHandle unioned, TypeHandle t, TypeHandle other, int current_size);
 
-#ifdef OBJECT_PRINT
   static const char* bitset_name(int bitset);
   static void BitsetTypePrint(FILE* out, int bitset);
-#endif
 };