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