| 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 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 113 intptr_t token_index, | 113 intptr_t token_index, |
| 114 intptr_t try_index, | 114 intptr_t try_index, |
| 115 Value* value, | 115 Value* value, |
| 116 const AbstractType& type, | 116 const AbstractType& type, |
| 117 bool negate_result); | 117 bool negate_result); |
| 118 | 118 |
| 119 void CopyParameters(); | 119 void CopyParameters(); |
| 120 | 120 |
| 121 intptr_t StackSize() const; | 121 intptr_t StackSize() const; |
| 122 | 122 |
| 123 bool TryIntrinsify(); |
| 124 void IntrinsifyGetter(); |
| 125 void IntrinsifySetter(); |
| 126 static bool CanOptimize(); |
| 127 |
| 123 Assembler* assembler_; | 128 Assembler* assembler_; |
| 124 const ParsedFunction& parsed_function_; | 129 const ParsedFunction& parsed_function_; |
| 125 | 130 |
| 126 // Compiler specific per-block state. Indexed by postorder block number | 131 // Compiler specific per-block state. Indexed by postorder block number |
| 127 // for convenience. This is not the block's index in the block order, | 132 // for convenience. This is not the block's index in the block order, |
| 128 // which is reverse postorder. | 133 // which is reverse postorder. |
| 129 GrowableArray<BlockInfo*> block_info_; | 134 GrowableArray<BlockInfo*> block_info_; |
| 130 BlockEntryInstr* current_block_; | 135 BlockEntryInstr* current_block_; |
| 131 DescriptorList* pc_descriptors_list_; | 136 DescriptorList* pc_descriptors_list_; |
| 132 ExceptionHandlerList* exception_handlers_list_; | 137 ExceptionHandlerList* exception_handlers_list_; |
| 133 | 138 |
| 134 DISALLOW_COPY_AND_ASSIGN(FlowGraphCompiler); | 139 DISALLOW_COPY_AND_ASSIGN(FlowGraphCompiler); |
| 135 }; | 140 }; |
| 136 | 141 |
| 137 } // namespace dart | 142 } // namespace dart |
| 138 | 143 |
| 139 #endif // VM_FLOW_GRAPH_COMPILER_X64_H_ | 144 #endif // VM_FLOW_GRAPH_COMPILER_X64_H_ |
| OLD | NEW |