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

Side by Side Diff: runtime/vm/flow_graph_compiler_x64.h

Issue 10389023: Fixed compilation time measurement, restructure some code. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 7 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 (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 #ifndef VM_FLOW_GRAPH_COMPILER_X64_H_ 5 #ifndef VM_FLOW_GRAPH_COMPILER_X64_H_
6 #define VM_FLOW_GRAPH_COMPILER_X64_H_ 6 #define VM_FLOW_GRAPH_COMPILER_X64_H_
7 7
8 #ifndef VM_FLOW_GRAPH_COMPILER_H_ 8 #ifndef VM_FLOW_GRAPH_COMPILER_H_
9 #error Include flow_graph_compiler.h instead of flow_graph_compiler_x64.h. 9 #error Include flow_graph_compiler.h instead of flow_graph_compiler_x64.h.
10 #endif 10 #endif
(...skipping 21 matching lines...) Expand all
32 32
33 void CompileGraph(); 33 void CompileGraph();
34 34
35 // Infrastructure copied from class CodeGenerator or stubbed out. 35 // Infrastructure copied from class CodeGenerator or stubbed out.
36 void FinalizePcDescriptors(const Code& code); 36 void FinalizePcDescriptors(const Code& code);
37 void FinalizeStackmaps(const Code& code); 37 void FinalizeStackmaps(const Code& code);
38 void FinalizeVarDescriptors(const Code& code); 38 void FinalizeVarDescriptors(const Code& code);
39 void FinalizeExceptionHandlers(const Code& code); 39 void FinalizeExceptionHandlers(const Code& code);
40 40
41 private: 41 private:
42 void InitCompiler();
43
42 struct BlockInfo : public ZoneAllocated { 44 struct BlockInfo : public ZoneAllocated {
43 public: 45 public:
44 BlockInfo() : label() { } 46 BlockInfo() : label() { }
45 47
46 Label label; 48 Label label;
47 }; 49 };
48 50
49 BlockEntryInstr* current_block() const { return current_block_; } 51 BlockEntryInstr* current_block() const { return current_block_; }
50 52
51 bool is_optimizing() const { return is_optimizing_; } 53 bool is_optimizing() const { return is_optimizing_; }
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 DescriptorList* pc_descriptors_list_; 140 DescriptorList* pc_descriptors_list_;
139 ExceptionHandlerList* exception_handlers_list_; 141 ExceptionHandlerList* exception_handlers_list_;
140 const bool is_optimizing_; 142 const bool is_optimizing_;
141 143
142 DISALLOW_COPY_AND_ASSIGN(FlowGraphCompiler); 144 DISALLOW_COPY_AND_ASSIGN(FlowGraphCompiler);
143 }; 145 };
144 146
145 } // namespace dart 147 } // namespace dart
146 148
147 #endif // VM_FLOW_GRAPH_COMPILER_X64_H_ 149 #endif // VM_FLOW_GRAPH_COMPILER_X64_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698