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:
parent
e6d8031cbf
commit
df7057b3ce
10
src/types.cc
10
src/types.cc
@ -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.
|
||||
|
||||
|
@ -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.
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user