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

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: 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') | src/lithium-inl.h » ('J')
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) {
2764 create_graph_ += delta;
2765 }
2766
2767 void IncrementOptimizeGraph(base::TimeDelta delta) {
2768 optimize_graph_ += delta;
2769 }
2770
2771 void IncrementGenerateCode(base::TimeDelta delta) {
2772 generate_code_ += delta;
2773 }
2774
2763 void IncrementSubtotals(base::TimeDelta create_graph, 2775 void IncrementSubtotals(base::TimeDelta create_graph,
2764 base::TimeDelta optimize_graph, 2776 base::TimeDelta optimize_graph,
2765 base::TimeDelta generate_code) { 2777 base::TimeDelta generate_code) {
2766 create_graph_ += create_graph; 2778 IncrementCreateGraph(create_graph);
2767 optimize_graph_ += optimize_graph; 2779 IncrementOptimizeGraph(optimize_graph);
2768 generate_code_ += generate_code; 2780 IncrementGenerateCode(generate_code);
2769 } 2781 }
2770 2782
2771 private: 2783 private:
2772 List<base::TimeDelta> times_; 2784 List<base::TimeDelta> times_;
2773 List<const char*> names_; 2785 List<const char*> names_;
2774 List<unsigned> sizes_; 2786 List<unsigned> sizes_;
2775 base::TimeDelta create_graph_; 2787 base::TimeDelta create_graph_;
2776 base::TimeDelta optimize_graph_; 2788 base::TimeDelta optimize_graph_;
2777 base::TimeDelta generate_code_; 2789 base::TimeDelta generate_code_;
2778 unsigned total_size_; 2790 unsigned total_size_;
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
2895 } 2907 }
2896 2908
2897 private: 2909 private:
2898 HGraphBuilder* builder_; 2910 HGraphBuilder* builder_;
2899 }; 2911 };
2900 2912
2901 2913
2902 } } // namespace v8::internal 2914 } } // namespace v8::internal
2903 2915
2904 #endif // V8_HYDROGEN_H_ 2916 #endif // V8_HYDROGEN_H_
OLDNEW
« no previous file with comments | « src/globals.h ('k') | src/hydrogen.cc » ('j') | src/lithium-inl.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698