Index: src/compilation-statistics.h |
diff --git a/src/compilation-statistics.h b/src/compilation-statistics.h |
index 6219180197d582b9b076d5a9466427e502b56404..ceffc2ebc19fcebc297d96e7aba4a63468abcdb9 100644 |
--- a/src/compilation-statistics.h |
+++ b/src/compilation-statistics.h |
@@ -15,6 +15,12 @@ namespace v8 { |
namespace internal { |
class CompilationInfo; |
+class CompilationStatistics; |
+ |
+struct AsPrintableStatistics { |
+ const CompilationStatistics& s; |
+ const bool machine_output; |
+}; |
class CompilationStatistics final : public Malloced { |
public: |
@@ -65,7 +71,7 @@ class CompilationStatistics final : public Malloced { |
}; |
friend std::ostream& operator<<(std::ostream& os, |
- const CompilationStatistics& s); |
+ const AsPrintableStatistics& s); |
typedef OrderedStats PhaseKindStats; |
typedef std::map<std::string, PhaseKindStats> PhaseKindMap; |
@@ -78,7 +84,7 @@ class CompilationStatistics final : public Malloced { |
DISALLOW_COPY_AND_ASSIGN(CompilationStatistics); |
}; |
-std::ostream& operator<<(std::ostream& os, const CompilationStatistics& s); |
+std::ostream& operator<<(std::ostream& os, const AsPrintableStatistics& s); |
} // namespace internal |
} // namespace v8 |