| 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 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 110 PcDescriptors::Kind kind); | 110 PcDescriptors::Kind kind); |
| 111 void GenerateCallRuntime(intptr_t cid, | 111 void GenerateCallRuntime(intptr_t cid, |
| 112 intptr_t token_index, | 112 intptr_t token_index, |
| 113 intptr_t try_index, | 113 intptr_t try_index, |
| 114 const RuntimeEntry& entry); | 114 const RuntimeEntry& entry); |
| 115 void AddCurrentDescriptor(PcDescriptors::Kind kind, | 115 void AddCurrentDescriptor(PcDescriptors::Kind kind, |
| 116 intptr_t cid, | 116 intptr_t cid, |
| 117 intptr_t token_index, | 117 intptr_t token_index, |
| 118 intptr_t try_index); | 118 intptr_t try_index); |
| 119 | 119 |
| 120 // Type checking helper methods. |
| 121 void CheckClasses(const GrowableArray<const Class*>& classes, |
| 122 Label* is_instance_lbl, |
| 123 Label* is_not_instance_lbl); |
| 120 RawSubtypeTestCache* GenerateInlineInstanceof(intptr_t cid, | 124 RawSubtypeTestCache* GenerateInlineInstanceof(intptr_t cid, |
| 121 intptr_t token_index, | 125 intptr_t token_index, |
| 122 const AbstractType& type, | 126 const AbstractType& type, |
| 123 Label* is_instance, | 127 Label* is_instance, |
| 124 Label* is_not_instance); | 128 Label* is_not_instance); |
| 125 | 129 |
| 130 RawSubtypeTestCache* GenerateInstantiatedTypeWithArgumentsTest( |
| 131 intptr_t cid, |
| 132 intptr_t token_index, |
| 133 const AbstractType& dst_type, |
| 134 Label* is_instance_lbl, |
| 135 Label* is_not_instance_lbl); |
| 136 |
| 137 void GenerateInstantiatedTypeNoArgumentsTest(intptr_t cid, |
| 138 intptr_t token_index, |
| 139 const AbstractType& dst_type, |
| 140 Label* is_instance_lbl, |
| 141 Label* is_not_instance_lbl); |
| 142 |
| 143 RawSubtypeTestCache* GenerateUninstantiatedTypeTest( |
| 144 const AbstractType& dst_type, |
| 145 intptr_t cid, |
| 146 intptr_t token_index, |
| 147 Label* is_instance_lbl, |
| 148 Label* is_not_instance_label); |
| 149 |
| 150 RawSubtypeTestCache* GenerateSubtype1TestCacheLookup( |
| 151 intptr_t cid, |
| 152 intptr_t token_index, |
| 153 const Class& type_class, |
| 154 Label* is_instance_lbl, |
| 155 Label* is_not_instance_lbl); |
| 156 |
| 126 void GenerateAssertAssignable(intptr_t cid, | 157 void GenerateAssertAssignable(intptr_t cid, |
| 127 intptr_t token_index, | 158 intptr_t token_index, |
| 128 intptr_t try_index, | 159 intptr_t try_index, |
| 129 const AbstractType& dst_type, | 160 const AbstractType& dst_type, |
| 130 const String& dst_name); | 161 const String& dst_name); |
| 131 | 162 |
| 132 void GenerateInstanceOf(intptr_t cid, | 163 void GenerateInstanceOf(intptr_t cid, |
| 133 intptr_t token_index, | 164 intptr_t token_index, |
| 134 intptr_t try_index, | 165 intptr_t try_index, |
| 135 const AbstractType& type, | 166 const AbstractType& type, |
| (...skipping 19 matching lines...) Expand all Loading... |
| 155 DescriptorList* pc_descriptors_list_; | 186 DescriptorList* pc_descriptors_list_; |
| 156 ExceptionHandlerList* exception_handlers_list_; | 187 ExceptionHandlerList* exception_handlers_list_; |
| 157 const bool is_optimizing_; | 188 const bool is_optimizing_; |
| 158 | 189 |
| 159 DISALLOW_COPY_AND_ASSIGN(FlowGraphCompiler); | 190 DISALLOW_COPY_AND_ASSIGN(FlowGraphCompiler); |
| 160 }; | 191 }; |
| 161 | 192 |
| 162 } // namespace dart | 193 } // namespace dart |
| 163 | 194 |
| 164 #endif // VM_FLOW_GRAPH_COMPILER_X64_H_ | 195 #endif // VM_FLOW_GRAPH_COMPILER_X64_H_ |
| OLD | NEW |