| OLD | NEW |
| 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_IA32_H_ | 5 #ifndef VM_FLOW_GRAPH_COMPILER_IA32_H_ |
| 6 #define VM_FLOW_GRAPH_COMPILER_IA32_H_ | 6 #define VM_FLOW_GRAPH_COMPILER_IA32_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_ia32.h. | 9 #error Include flow_graph_compiler.h instead of flow_graph_compiler_ia32.h. |
| 10 #endif | 10 #endif |
| (...skipping 16 matching lines...) Expand all Loading... |
| 27 const GrowableArray<BlockEntryInstr*>& blocks) | 27 const GrowableArray<BlockEntryInstr*>& blocks) |
| 28 : FlowGraphVisitor(blocks), 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 FinalizeStackmaps(const Code& code); |
| 37 void FinalizeVarDescriptors(const Code& code); | 38 void FinalizeVarDescriptors(const Code& code); |
| 38 void FinalizeExceptionHandlers(const Code& code); | 39 void FinalizeExceptionHandlers(const Code& code); |
| 39 | 40 |
| 40 private: | 41 private: |
| 41 // Bail out of the flow graph compiler. Does not return to the caller. | 42 // Bail out of the flow graph compiler. Does not return to the caller. |
| 42 void Bailout(const char* reason); | 43 void Bailout(const char* reason); |
| 43 | 44 |
| 44 const ParsedFunction& parsed_function_; | 45 const ParsedFunction& parsed_function_; |
| 45 | 46 |
| 46 DISALLOW_COPY_AND_ASSIGN(FlowGraphCompiler); | 47 DISALLOW_COPY_AND_ASSIGN(FlowGraphCompiler); |
| 47 }; | 48 }; |
| 48 | 49 |
| 49 } // namespace dart | 50 } // namespace dart |
| 50 | 51 |
| 51 #endif // VM_FLOW_GRAPH_COMPILER_IA32_H_ | 52 #endif // VM_FLOW_GRAPH_COMPILER_IA32_H_ |
| OLD | NEW |