Add convenience method to print types for debugging.

R=titzer@chromium.org, svenpanne@chromium.org

Review URL: https://codereview.chromium.org/435403002

git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@22908 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
This commit is contained in:
mstarzinger@chromium.org 2014-08-06 09:26:49 +00:00
parent e6d8031cbf
commit df7057b3ce
2 changed files with 14 additions and 0 deletions

View File

@ -905,6 +905,16 @@ void TypeImpl<Config>::PrintTo(OStream& os, PrintDimension dim) { // NOLINT
}
#ifdef DEBUG
template <class Config>
void TypeImpl<Config>::Print() {
OFStream os(stdout);
PrintTo(os);
os << endl;
}
#endif
// -----------------------------------------------------------------------------
// Instantiations.

View File

@ -431,6 +431,10 @@ class TypeImpl : public Config::Base {
void PrintTo(OStream& os, PrintDimension dim = BOTH_DIMS); // NOLINT
#ifdef DEBUG
void Print();
#endif
protected:
// Friends.