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

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

Issue 10857016: Refactored FlowGraphBuilder into a separate FlowGraph representation. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Revision based on Kevin's review. Created 8 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 | « runtime/vm/flow_graph_compiler_ia32.h ('k') | runtime/vm/flow_graph_compiler_x64.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 (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
11 11
12 namespace dart { 12 namespace dart {
13 13
14 class Code; 14 class Code;
15 class DeoptimizationStub; 15 class DeoptimizationStub;
16 class FlowGraph;
16 template <typename T> class GrowableArray; 17 template <typename T> class GrowableArray;
17 class ParsedFunction; 18 class ParsedFunction;
18 19
19 class FlowGraphCompiler : public ValueObject { 20 class FlowGraphCompiler : public ValueObject {
20 private: 21 private:
21 struct BlockInfo : public ZoneAllocated { 22 struct BlockInfo : public ZoneAllocated {
22 public: 23 public:
23 BlockInfo() : label() { } 24 BlockInfo() : label() { }
24 Label label; 25 Label label;
25 }; 26 };
26 27
27 public: 28 public:
28 FlowGraphCompiler(Assembler* assembler, 29 FlowGraphCompiler(Assembler* assembler,
29 const ParsedFunction& parsed_function, 30 const FlowGraph& flow_graph,
30 const GrowableArray<BlockEntryInstr*>& block_order,
31 bool is_optimizing, 31 bool is_optimizing,
32 bool is_ssa, 32 bool is_ssa,
33 bool is_leaf); 33 bool is_leaf);
34 34
35 ~FlowGraphCompiler(); 35 ~FlowGraphCompiler();
36 36
37 // Accessors. 37 // Accessors.
38 Assembler* assembler() const { return assembler_; } 38 Assembler* assembler() const { return assembler_; }
39 const ParsedFunction& parsed_function() const { return parsed_function_; } 39 const ParsedFunction& parsed_function() const { return parsed_function_; }
40 const GrowableArray<BlockEntryInstr*>& block_order() const { 40 const GrowableArray<BlockEntryInstr*>& block_order() const {
(...skipping 286 matching lines...) Expand 10 before | Expand all | Expand 10 after
327 // that should be used when deoptimizing we store it in this variable. 327 // that should be used when deoptimizing we store it in this variable.
328 // In future AddDeoptStub should be moved out of the instruction template. 328 // In future AddDeoptStub should be moved out of the instruction template.
329 Environment* pending_deoptimization_env_; 329 Environment* pending_deoptimization_env_;
330 330
331 DISALLOW_COPY_AND_ASSIGN(FlowGraphCompiler); 331 DISALLOW_COPY_AND_ASSIGN(FlowGraphCompiler);
332 }; 332 };
333 333
334 } // namespace dart 334 } // namespace dart
335 335
336 #endif // VM_FLOW_GRAPH_COMPILER_X64_H_ 336 #endif // VM_FLOW_GRAPH_COMPILER_X64_H_
OLDNEW
« no previous file with comments | « runtime/vm/flow_graph_compiler_ia32.h ('k') | runtime/vm/flow_graph_compiler_x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698