Revision: 22908
Author: [email protected]
Date: Wed Aug 6 09:26:49 2014 UTC
Log: Add convenience method to print types for debugging.
[email protected], [email protected]
Review URL: https://codereview.chromium.org/435403002
http://code.google.com/p/v8/source/detail?r=22908
Modified:
/branches/bleeding_edge/src/types.cc
/branches/bleeding_edge/src/types.h
=======================================
--- /branches/bleeding_edge/src/types.cc Wed Aug 6 08:28:01 2014 UTC
+++ /branches/bleeding_edge/src/types.cc Wed Aug 6 09:26:49 2014 UTC
@@ -903,6 +903,16 @@
BitsetType::Print(os, REPRESENTATION(this->BitsetLub()));
}
}
+
+
+#ifdef DEBUG
+template <class Config>
+void TypeImpl<Config>::Print() {
+ OFStream os(stdout);
+ PrintTo(os);
+ os << endl;
+}
+#endif
//
-----------------------------------------------------------------------------
=======================================
--- /branches/bleeding_edge/src/types.h Wed Aug 6 08:49:56 2014 UTC
+++ /branches/bleeding_edge/src/types.h Wed Aug 6 09:26:49 2014 UTC
@@ -431,6 +431,10 @@
void PrintTo(OStream& os, PrintDimension dim = BOTH_DIMS); // NOLINT
+#ifdef DEBUG
+ void Print();
+#endif
+
protected:
// Friends.
--
--
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.