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

Side by Side Diff: src/hydrogen.h

Issue 669053002: [turbofan] split compilation stats off from HStatistics and track high water marks (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 2 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef V8_HYDROGEN_H_ 5 #ifndef V8_HYDROGEN_H_
6 #define V8_HYDROGEN_H_ 6 #define V8_HYDROGEN_H_
7 7
8 #include "src/v8.h" 8 #include "src/v8.h"
9 9
10 #include "src/accessors.h" 10 #include "src/accessors.h"
(...skipping 2742 matching lines...) Expand 10 before | Expand all | Expand 10 after
2753 class HStatistics FINAL: public Malloced { 2753 class HStatistics FINAL: public Malloced {
2754 public: 2754 public:
2755 HStatistics() 2755 HStatistics()
2756 : times_(5), 2756 : times_(5),
2757 names_(5), 2757 names_(5),
2758 sizes_(5), 2758 sizes_(5),
2759 total_size_(0), 2759 total_size_(0),
2760 source_size_(0) { } 2760 source_size_(0) { }
2761 2761
2762 void Initialize(CompilationInfo* info); 2762 void Initialize(CompilationInfo* info);
2763 void Print(const char* stats_name); 2763 void Print();
2764 void SaveTiming(const char* name, base::TimeDelta time, unsigned size); 2764 void SaveTiming(const char* name, base::TimeDelta time, unsigned size);
2765 2765
2766 void IncrementFullCodeGen(base::TimeDelta full_code_gen) { 2766 void IncrementFullCodeGen(base::TimeDelta full_code_gen) {
2767 full_code_gen_ += full_code_gen; 2767 full_code_gen_ += full_code_gen;
2768 } 2768 }
2769 2769
2770 void IncrementCreateGraph(base::TimeDelta delta) { create_graph_ += delta; } 2770 void IncrementCreateGraph(base::TimeDelta delta) { create_graph_ += delta; }
2771 2771
2772 void IncrementOptimizeGraph(base::TimeDelta delta) { 2772 void IncrementOptimizeGraph(base::TimeDelta delta) {
2773 optimize_graph_ += delta; 2773 optimize_graph_ += delta;
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
2910 } 2910 }
2911 2911
2912 private: 2912 private:
2913 HGraphBuilder* builder_; 2913 HGraphBuilder* builder_;
2914 }; 2914 };
2915 2915
2916 2916
2917 } } // namespace v8::internal 2917 } } // namespace v8::internal
2918 2918
2919 #endif // V8_HYDROGEN_H_ 2919 #endif // V8_HYDROGEN_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698