Reviewers: Sven Panne,

Message:
PTAL.

Description:
Fix build (solve OBJECT_PRINT dependency)

Please review this at https://codereview.chromium.org/373003004/

SVN Base: https://v8.googlecode.com/svn/branches/bleeding_edge

Affected files (+7, -3 lines):
  M src/ic.cc
  M src/objects.h


Index: src/ic.cc
diff --git a/src/ic.cc b/src/ic.cc
index 1805c40865acb70f86ee60c4eb69ae58c987862a..167dc10206cda0b78d582b89f15300eccc120f3f 100644
--- a/src/ic.cc
+++ b/src/ic.cc
@@ -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");
   }
 }
Index: src/objects.h
diff --git a/src/objects.h b/src/objects.h
index d49e365e59e51823655a71dee8046452551c8040..edc489cdb339fe01cb5b67d7086d03916d87279d 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


--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
--- You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to