Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1664)

Unified Diff: src/hydrogen.h

Issue 426233002: Land the Fan (disabled) (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Review feedback, rebase and "git cl format" Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/globals.h ('k') | src/hydrogen.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/hydrogen.h
diff --git a/src/hydrogen.h b/src/hydrogen.h
index d8d0da77fc2411973b577e24fe9c341706eb732d..cb5294dce803f392f8fd82b20eeda8a13fcd8299 100644
--- a/src/hydrogen.h
+++ b/src/hydrogen.h
@@ -2753,19 +2753,27 @@ class HStatistics V8_FINAL: public Malloced {
source_size_(0) { }
void Initialize(CompilationInfo* info);
- void Print();
+ void Print(const char* stats_name);
void SaveTiming(const char* name, base::TimeDelta time, unsigned size);
void IncrementFullCodeGen(base::TimeDelta full_code_gen) {
full_code_gen_ += full_code_gen;
}
+ void IncrementCreateGraph(base::TimeDelta delta) { create_graph_ += delta; }
+
+ void IncrementOptimizeGraph(base::TimeDelta delta) {
+ optimize_graph_ += delta;
+ }
+
+ void IncrementGenerateCode(base::TimeDelta delta) { generate_code_ += delta; }
+
void IncrementSubtotals(base::TimeDelta create_graph,
base::TimeDelta optimize_graph,
base::TimeDelta generate_code) {
- create_graph_ += create_graph;
- optimize_graph_ += optimize_graph;
- generate_code_ += generate_code;
+ IncrementCreateGraph(create_graph);
+ IncrementOptimizeGraph(optimize_graph);
+ IncrementGenerateCode(generate_code);
}
private:
« no previous file with comments | « src/globals.h ('k') | src/hydrogen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698