| 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 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 70 // Each visit function compiles a type of instruction. | 70 // Each visit function compiles a type of instruction. |
| 71 #define DECLARE_VISIT_INSTRUCTION(ShortName) \ | 71 #define DECLARE_VISIT_INSTRUCTION(ShortName) \ |
| 72 virtual void Visit##ShortName(ShortName##Instr* instr); | 72 virtual void Visit##ShortName(ShortName##Instr* instr); |
| 73 | 73 |
| 74 FOR_EACH_COMPUTATION(DECLARE_VISIT_COMPUTATION) | 74 FOR_EACH_COMPUTATION(DECLARE_VISIT_COMPUTATION) |
| 75 FOR_EACH_INSTRUCTION(DECLARE_VISIT_INSTRUCTION) | 75 FOR_EACH_INSTRUCTION(DECLARE_VISIT_INSTRUCTION) |
| 76 | 76 |
| 77 #undef DECLARE_VISIT_COMPUTATION | 77 #undef DECLARE_VISIT_COMPUTATION |
| 78 #undef DECLARE_VISIT_INSTRUCTION | 78 #undef DECLARE_VISIT_INSTRUCTION |
| 79 | 79 |
| 80 void EmitInstructionPrologue(Instruction* instr); |
| 81 void LoadInputs(LocationSummary* summary); |
| 82 |
| 80 // Emit code to load a Value into register 'dst'. | 83 // Emit code to load a Value into register 'dst'. |
| 81 void LoadValue(Register dst, Value* value); | 84 void LoadValue(Register dst, Value* value); |
| 82 | 85 |
| 83 void EmitComment(Instruction* instr); | 86 void EmitComment(Instruction* instr); |
| 84 | 87 |
| 85 // Emit an instance call. | 88 // Emit an instance call. |
| 86 void EmitInstanceCall(intptr_t cid, | 89 void EmitInstanceCall(intptr_t cid, |
| 87 intptr_t token_index, | 90 intptr_t token_index, |
| 88 intptr_t try_index, | 91 intptr_t try_index, |
| 89 const String& function_name, | 92 const String& function_name, |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 148 DescriptorList* pc_descriptors_list_; | 151 DescriptorList* pc_descriptors_list_; |
| 149 ExceptionHandlerList* exception_handlers_list_; | 152 ExceptionHandlerList* exception_handlers_list_; |
| 150 const bool is_optimizing_; | 153 const bool is_optimizing_; |
| 151 | 154 |
| 152 DISALLOW_COPY_AND_ASSIGN(FlowGraphCompiler); | 155 DISALLOW_COPY_AND_ASSIGN(FlowGraphCompiler); |
| 153 }; | 156 }; |
| 154 | 157 |
| 155 } // namespace dart | 158 } // namespace dart |
| 156 | 159 |
| 157 #endif // VM_FLOW_GRAPH_COMPILER_X64_H_ | 160 #endif // VM_FLOW_GRAPH_COMPILER_X64_H_ |
| OLD | NEW |