| 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_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 15 matching lines...) Expand all Loading... |
| 26 FlowGraphCompiler(Assembler* assembler, | 26 FlowGraphCompiler(Assembler* assembler, |
| 27 const ParsedFunction& parsed_function, | 27 const ParsedFunction& parsed_function, |
| 28 const GrowableArray<BlockEntryInstr*>& block_order); | 28 const GrowableArray<BlockEntryInstr*>& block_order); |
| 29 | 29 |
| 30 virtual ~FlowGraphCompiler(); | 30 virtual ~FlowGraphCompiler(); |
| 31 | 31 |
| 32 void CompileGraph(); | 32 void CompileGraph(); |
| 33 | 33 |
| 34 // Infrastructure copied from class CodeGenerator or stubbed out. | 34 // Infrastructure copied from class CodeGenerator or stubbed out. |
| 35 void FinalizePcDescriptors(const Code& code); | 35 void FinalizePcDescriptors(const Code& code); |
| 36 void FinalizeStackmaps(const Code& code); |
| 36 void FinalizeVarDescriptors(const Code& code); | 37 void FinalizeVarDescriptors(const Code& code); |
| 37 void FinalizeExceptionHandlers(const Code& code); | 38 void FinalizeExceptionHandlers(const Code& code); |
| 38 | 39 |
| 39 private: | 40 private: |
| 40 struct BlockInfo : public ZoneAllocated { | 41 struct BlockInfo : public ZoneAllocated { |
| 41 public: | 42 public: |
| 42 BlockInfo() : label() { } | 43 BlockInfo() : label() { } |
| 43 | 44 |
| 44 Label label; | 45 Label label; |
| 45 }; | 46 }; |
| (...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 135 BlockEntryInstr* current_block_; | 136 BlockEntryInstr* current_block_; |
| 136 DescriptorList* pc_descriptors_list_; | 137 DescriptorList* pc_descriptors_list_; |
| 137 ExceptionHandlerList* exception_handlers_list_; | 138 ExceptionHandlerList* exception_handlers_list_; |
| 138 | 139 |
| 139 DISALLOW_COPY_AND_ASSIGN(FlowGraphCompiler); | 140 DISALLOW_COPY_AND_ASSIGN(FlowGraphCompiler); |
| 140 }; | 141 }; |
| 141 | 142 |
| 142 } // namespace dart | 143 } // namespace dart |
| 143 | 144 |
| 144 #endif // VM_FLOW_GRAPH_COMPILER_X64_H_ | 145 #endif // VM_FLOW_GRAPH_COMPILER_X64_H_ |
| OLD | NEW |