| 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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 57 FOR_EACH_COMPUTATION(DECLARE_VISIT_COMPUTATION) | 57 FOR_EACH_COMPUTATION(DECLARE_VISIT_COMPUTATION) |
| 58 FOR_EACH_INSTRUCTION(DECLARE_VISIT_INSTRUCTION) | 58 FOR_EACH_INSTRUCTION(DECLARE_VISIT_INSTRUCTION) |
| 59 | 59 |
| 60 #undef DECLARE_VISIT_COMPUTATION | 60 #undef DECLARE_VISIT_COMPUTATION |
| 61 #undef DECLARE_VISIT_INSTRUCTION | 61 #undef DECLARE_VISIT_INSTRUCTION |
| 62 | 62 |
| 63 // Emit code to load a Value into register RAX. | 63 // Emit code to load a Value into register RAX. |
| 64 void LoadValue(Value* value); | 64 void LoadValue(Value* value); |
| 65 | 65 |
| 66 // Infrastructure copied from class CodeGenerator. | 66 // Infrastructure copied from class CodeGenerator. |
| 67 void GenerateCall(intptr_t token_index, |
| 68 const ExternalLabel* label, |
| 69 PcDescriptors::Kind kind); |
| 67 void GenerateCallRuntime(intptr_t node_id, | 70 void GenerateCallRuntime(intptr_t node_id, |
| 68 intptr_t token_index, | 71 intptr_t token_index, |
| 69 const RuntimeEntry& entry); | 72 const RuntimeEntry& entry); |
| 70 void AddCurrentDescriptor(PcDescriptors::Kind kind, | 73 void AddCurrentDescriptor(PcDescriptors::Kind kind, |
| 71 intptr_t node_id, | 74 intptr_t node_id, |
| 72 intptr_t token_index); | 75 intptr_t token_index); |
| 73 | 76 |
| 74 Assembler* assembler_; | 77 Assembler* assembler_; |
| 75 const ParsedFunction& parsed_function_; | 78 const ParsedFunction& parsed_function_; |
| 76 const GrowableArray<BlockEntryInstr*>* blocks_; | 79 const GrowableArray<BlockEntryInstr*>* blocks_; |
| 77 | 80 |
| 78 CodeGenerator::DescriptorList* pc_descriptors_list_; | 81 CodeGenerator::DescriptorList* pc_descriptors_list_; |
| 79 int stack_local_count_; | 82 int stack_local_count_; |
| 80 | 83 |
| 81 DISALLOW_COPY_AND_ASSIGN(FlowGraphCompiler); | 84 DISALLOW_COPY_AND_ASSIGN(FlowGraphCompiler); |
| 82 }; | 85 }; |
| 83 | 86 |
| 84 } // namespace dart | 87 } // namespace dart |
| 85 | 88 |
| 86 #endif // VM_FLOW_GRAPH_COMPILER_X64_H_ | 89 #endif // VM_FLOW_GRAPH_COMPILER_X64_H_ |
| OLD | NEW |