| 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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 43 | 43 |
| 44 Assembler* assembler() const { return assembler_; } | 44 Assembler* assembler() const { return assembler_; } |
| 45 | 45 |
| 46 Label* AddDeoptStub(intptr_t deopt_id, | 46 Label* AddDeoptStub(intptr_t deopt_id, |
| 47 intptr_t deopt_token_index, | 47 intptr_t deopt_token_index, |
| 48 intptr_t try_index_, | 48 intptr_t try_index_, |
| 49 DeoptReasonId reason, | 49 DeoptReasonId reason, |
| 50 Register reg1, | 50 Register reg1, |
| 51 Register reg2); | 51 Register reg2); |
| 52 | 52 |
| 53 |
| 54 void GenerateCallRuntime(intptr_t cid, |
| 55 intptr_t token_index, |
| 56 intptr_t try_index, |
| 57 const RuntimeEntry& entry); |
| 58 |
| 53 private: | 59 private: |
| 54 friend class DeoptimizationStub; | 60 friend class DeoptimizationStub; |
| 55 | 61 |
| 56 // TODO(fschneider): Clean up friend-class declarations once all code | 62 // TODO(fschneider): Clean up friend-class declarations once all code |
| 57 // generator templates have been moved to intermediate_language_x64.cc. | 63 // generator templates have been moved to intermediate_language_x64.cc. |
| 58 #define DECLARE_FRIEND(ShortName, ClassName) friend class ClassName; | 64 #define DECLARE_FRIEND(ShortName, ClassName) friend class ClassName; |
| 59 FOR_EACH_COMPUTATION(DECLARE_FRIEND) | 65 FOR_EACH_COMPUTATION(DECLARE_FRIEND) |
| 60 #undef DECLARE_FRIEND | 66 #undef DECLARE_FRIEND |
| 61 | 67 |
| 62 static const int kLocalsOffsetFromFP = (-1 * kWordSize); | 68 static const int kLocalsOffsetFromFP = (-1 * kWordSize); |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 116 intptr_t try_index, | 122 intptr_t try_index, |
| 117 const Function& function, | 123 const Function& function, |
| 118 intptr_t argument_count, | 124 intptr_t argument_count, |
| 119 const Array& argument_names); | 125 const Array& argument_names); |
| 120 | 126 |
| 121 // Infrastructure copied from class CodeGenerator. | 127 // Infrastructure copied from class CodeGenerator. |
| 122 void GenerateCall(intptr_t token_index, | 128 void GenerateCall(intptr_t token_index, |
| 123 intptr_t try_index, | 129 intptr_t try_index, |
| 124 const ExternalLabel* label, | 130 const ExternalLabel* label, |
| 125 PcDescriptors::Kind kind); | 131 PcDescriptors::Kind kind); |
| 126 void GenerateCallRuntime(intptr_t cid, | |
| 127 intptr_t token_index, | |
| 128 intptr_t try_index, | |
| 129 const RuntimeEntry& entry); | |
| 130 void AddCurrentDescriptor(PcDescriptors::Kind kind, | 132 void AddCurrentDescriptor(PcDescriptors::Kind kind, |
| 131 intptr_t cid, | 133 intptr_t cid, |
| 132 intptr_t token_index, | 134 intptr_t token_index, |
| 133 intptr_t try_index); | 135 intptr_t try_index); |
| 134 | 136 |
| 135 // Type checking helper methods. | 137 // Type checking helper methods. |
| 136 void CheckClasses(const GrowableArray<const Class*>& classes, | 138 void CheckClasses(const GrowableArray<const Class*>& classes, |
| 137 Label* is_instance_lbl, | 139 Label* is_instance_lbl, |
| 138 Label* is_not_instance_lbl); | 140 Label* is_not_instance_lbl); |
| 139 RawSubtypeTestCache* GenerateInlineInstanceof(intptr_t cid, | 141 RawSubtypeTestCache* GenerateInlineInstanceof(intptr_t cid, |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 204 ExceptionHandlerList* exception_handlers_list_; | 206 ExceptionHandlerList* exception_handlers_list_; |
| 205 GrowableArray<DeoptimizationStub*> deopt_stubs_; | 207 GrowableArray<DeoptimizationStub*> deopt_stubs_; |
| 206 const bool is_optimizing_; | 208 const bool is_optimizing_; |
| 207 | 209 |
| 208 DISALLOW_COPY_AND_ASSIGN(FlowGraphCompiler); | 210 DISALLOW_COPY_AND_ASSIGN(FlowGraphCompiler); |
| 209 }; | 211 }; |
| 210 | 212 |
| 211 } // namespace dart | 213 } // namespace dart |
| 212 | 214 |
| 213 #endif // VM_FLOW_GRAPH_COMPILER_X64_H_ | 215 #endif // VM_FLOW_GRAPH_COMPILER_X64_H_ |
| OLD | NEW |