From d7ecf0e428d69f01b55cc1f2b7fbdb453a00d62e Mon Sep 17 00:00:00 2001 From: "jkummerow@chromium.org" Date: Tue, 8 Jul 2014 08:43:20 +0000 Subject: [PATCH] Fix build (solve OBJECT_PRINT dependency) R=svenpanne@chromium.org Review URL: https://codereview.chromium.org/373003004 git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@22269 ce2b1a6d-e550-0410-aec6-3dcde31c8c00 --- src/ic.cc | 4 ++++ src/objects.h | 6 +++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/src/ic.cc b/src/ic.cc index 1805c40..167dc10 100644 --- a/src/ic.cc +++ b/src/ic.cc @@ -94,8 +94,12 @@ void IC::TraceIC(const char* type, Handle name) { TransitionMarkFromState(state()), TransitionMarkFromState(new_state), modifier); +#ifdef OBJECT_PRINT OFStream os(stdout); name->Print(os); +#else + name->ShortPrint(stdout); +#endif PrintF("]\n"); } } diff --git a/src/objects.h b/src/objects.h index d49e365..edc489c 100644 --- a/src/objects.h +++ b/src/objects.h @@ -1557,15 +1557,15 @@ class Object { // Prints this object without details to a message accumulator. void ShortPrint(StringStream* accumulator); - // For our gdb macros, we should perhaps change these in the future. - void Print(); - DECLARE_CAST(Object) // Layout description. static const int kHeaderSize = 0; // Object does not take up any space. #ifdef OBJECT_PRINT + // For our gdb macros, we should perhaps change these in the future. + void Print(); + // Prints this object with details. void Print(OStream& os); // NOLINT #endif -- 2.7.4