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

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

Issue 9722011: Make required changes to {ia32,arm} stubbed graph code generator. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 9 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 | « no previous file | runtime/vm/flow_graph_compiler_ia32.h » ('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_ARM_H_ 5 #ifndef VM_FLOW_GRAPH_COMPILER_ARM_H_
6 #define VM_FLOW_GRAPH_COMPILER_ARM_H_ 6 #define VM_FLOW_GRAPH_COMPILER_ARM_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_arm.h. 9 #error Include flow_graph_compiler.h instead of flow_graph_compiler_arm.h.
10 #endif 10 #endif
11 11
12 #include "vm/intermediate_language.h" 12 #include "vm/intermediate_language.h"
13 13
14 namespace dart { 14 namespace dart {
15 15
16 class Assembler; 16 class Assembler;
17 class Code; 17 class Code;
18 template <typename T> class GrowableArray; 18 template <typename T> class GrowableArray;
19 class ParsedFunction; 19 class ParsedFunction;
20 20
21 // Stubbed out implementation of graph compiler, bails out immediately if 21 // Stubbed out implementation of graph compiler, bails out immediately if
22 // CompileGraph is called. The rest of the public API is UNIMPLEMENTED. 22 // CompileGraph is called. The rest of the public API is UNIMPLEMENTED.
23 class FlowGraphCompiler : public FlowGraphVisitor { 23 class FlowGraphCompiler : public FlowGraphVisitor {
24 public: 24 public:
25 FlowGraphCompiler(Assembler* assembler, 25 FlowGraphCompiler(Assembler* assembler,
26 const ParsedFunction& parsed_function, 26 const ParsedFunction& parsed_function,
27 const GrowableArray<BlockEntryInstr*>* blocks) 27 const GrowableArray<BlockEntryInstr*>& blocks)
28 : parsed_function_(parsed_function) { 28 : FlowGraphVisitor(blocks), parsed_function_(parsed_function) {
29 } 29 }
30 30
31 virtual ~FlowGraphCompiler() { } 31 virtual ~FlowGraphCompiler() { }
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 FinalizeVarDescriptors(const Code& code); 37 void FinalizeVarDescriptors(const Code& code);
38 void FinalizeExceptionHandlers(const Code& code); 38 void FinalizeExceptionHandlers(const Code& code);
39 39
40 private: 40 private:
41 // Bail out of the flow graph compiler. Does not return to the caller. 41 // Bail out of the flow graph compiler. Does not return to the caller.
42 void Bailout(const char* reason); 42 void Bailout(const char* reason);
43 43
44 const ParsedFunction& parsed_function_; 44 const ParsedFunction& parsed_function_;
45 45
46 DISALLOW_COPY_AND_ASSIGN(FlowGraphCompiler); 46 DISALLOW_COPY_AND_ASSIGN(FlowGraphCompiler);
47 }; 47 };
48 48
49 } // namespace dart 49 } // namespace dart
50 50
51 #endif // VM_FLOW_GRAPH_COMPILER_ARM_H_ 51 #endif // VM_FLOW_GRAPH_COMPILER_ARM_H_
OLDNEW
« no previous file with comments | « no previous file | runtime/vm/flow_graph_compiler_ia32.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698