From 096812837156657cd41f9521de33577f6686a54c Mon Sep 17 00:00:00 2001 From: "bmeurer@chromium.org" Date: Fri, 4 Apr 2014 07:21:59 +0000 Subject: [PATCH] TypePrint() does not depend on Object::Print(). 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 | 2 -- src/types.h | 4 ---- 2 files changed, 6 deletions(-) diff --git a/src/types.cc b/src/types.cc index 804ea5e..9cab090 100644 --- a/src/types.cc +++ b/src/types.cc @@ -568,7 +568,6 @@ Representation Representation::FromType(Type* type) { } -#ifdef OBJECT_PRINT template void TypeImpl::TypePrint(PrintDimension dim) { TypePrint(stdout, dim); @@ -666,7 +665,6 @@ void TypeImpl::TypePrint(FILE* out, PrintDimension dim) { PrintF(out, ")"); } } -#endif template class TypeImpl; diff --git a/src/types.h b/src/types.h index 42a50b9..0d172bd 100644 --- a/src/types.h +++ b/src/types.h @@ -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 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 }; -- 2.7.4