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
This commit is contained in:
jkummerow@chromium.org 2014-07-08 08:43:20 +00:00
parent 3b9da14adf
commit d7ecf0e428
2 changed files with 7 additions and 3 deletions

View File

@ -94,8 +94,12 @@ void IC::TraceIC(const char* type, Handle<Object> name) {
TransitionMarkFromState(state()),
TransitionMarkFromState(new_state),
modifier);
#ifdef OBJECT_PRINT
OFStream os(stdout);
name->Print(os);
#else
name->ShortPrint(stdout);
#endif
PrintF("]\n");
}
}

View File

@ -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