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

Side by Side 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, 4 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
« no previous file with comments | « src/globals.h ('k') | src/hydrogen.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 2735 matching lines...) Expand 10 before | Expand all | Expand 10 after
2746 class HStatistics V8_FINAL: public Malloced { 2746 class HStatistics V8_FINAL: public Malloced {
2747 public: 2747 public:
2748 HStatistics() 2748 HStatistics()
2749 : times_(5), 2749 : times_(5),
2750 names_(5), 2750 names_(5),
2751 sizes_(5), 2751 sizes_(5),
2752 total_size_(0), 2752 total_size_(0),
2753 source_size_(0) { } 2753 source_size_(0) { }
2754 2754
2755 void Initialize(CompilationInfo* info); 2755 void Initialize(CompilationInfo* info);
2756 void Print(); 2756 void Print(const char* stats_name);
2757 void SaveTiming(const char* name, base::TimeDelta time, unsigned size); 2757 void SaveTiming(const char* name, base::TimeDelta time, unsigned size);
2758 2758
2759 void IncrementFullCodeGen(base::TimeDelta full_code_gen) { 2759 void IncrementFullCodeGen(base::TimeDelta full_code_gen) {
2760 full_code_gen_ += full_code_gen; 2760 full_code_gen_ += full_code_gen;
2761 } 2761 }
2762 2762
2763 void IncrementCreateGraph(base::TimeDelta delta) { create_graph_ += delta; }
2764
2765 void IncrementOptimizeGraph(base::TimeDelta delta) {
2766 optimize_graph_ += delta;
2767 }
2768
2769 void IncrementGenerateCode(base::TimeDelta delta) { generate_code_ += delta; }
2770
2763 void IncrementSubtotals(base::TimeDelta create_graph, 2771 void IncrementSubtotals(base::TimeDelta create_graph,
2764 base::TimeDelta optimize_graph, 2772 base::TimeDelta optimize_graph,
2765 base::TimeDelta generate_code) { 2773 base::TimeDelta generate_code) {
2766 create_graph_ += create_graph; 2774 IncrementCreateGraph(create_graph);
2767 optimize_graph_ += optimize_graph; 2775 IncrementOptimizeGraph(optimize_graph);
2768 generate_code_ += generate_code; 2776 IncrementGenerateCode(generate_code);
2769 } 2777 }
2770 2778
2771 private: 2779 private:
2772 List<base::TimeDelta> times_; 2780 List<base::TimeDelta> times_;
2773 List<const char*> names_; 2781 List<const char*> names_;
2774 List<unsigned> sizes_; 2782 List<unsigned> sizes_;
2775 base::TimeDelta create_graph_; 2783 base::TimeDelta create_graph_;
2776 base::TimeDelta optimize_graph_; 2784 base::TimeDelta optimize_graph_;
2777 base::TimeDelta generate_code_; 2785 base::TimeDelta generate_code_;
2778 unsigned total_size_; 2786 unsigned total_size_;
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
2895 } 2903 }
2896 2904
2897 private: 2905 private:
2898 HGraphBuilder* builder_; 2906 HGraphBuilder* builder_;
2899 }; 2907 };
2900 2908
2901 2909
2902 } } // namespace v8::internal 2910 } } // namespace v8::internal
2903 2911
2904 #endif // V8_HYDROGEN_H_ 2912 #endif // V8_HYDROGEN_H_
OLDNEW
« 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