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
parent 3b9da14a
......@@ -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");
}
}
......
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment