| 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_H_ | 5 #ifndef VM_FLOW_GRAPH_COMPILER_H_ |
| 6 #define VM_FLOW_GRAPH_COMPILER_H_ | 6 #define VM_FLOW_GRAPH_COMPILER_H_ |
| 7 | 7 |
| 8 #include "vm/allocation.h" | 8 #include "vm/allocation.h" |
| 9 #include "vm/assembler.h" | 9 #include "vm/assembler.h" |
| 10 #include "vm/assembler_macros.h" | 10 #include "vm/assembler_macros.h" |
| (...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 118 | 118 |
| 119 // Execute a move by emitting a swap of two operands. The move from | 119 // Execute a move by emitting a swap of two operands. The move from |
| 120 // source to destination is removed from the move graph. | 120 // source to destination is removed from the move graph. |
| 121 void EmitSwap(int index); | 121 void EmitSwap(int index); |
| 122 | 122 |
| 123 // Verify the move list before performing moves. | 123 // Verify the move list before performing moves. |
| 124 void Verify(); | 124 void Verify(); |
| 125 | 125 |
| 126 // Helpers for non-trivial source-destination combinations that cannot | 126 // Helpers for non-trivial source-destination combinations that cannot |
| 127 // be handled by a single instruction. | 127 // be handled by a single instruction. |
| 128 void MoveMemory(const Address& dst, const Address& src); | 128 void MoveMemoryToMemory(const Address& dst, const Address& src); |
| 129 void StoreObject(const Address& dst, const Object& obj); | 129 void StoreObject(const Address& dst, const Object& obj); |
| 130 void Exchange(Register reg, const Address& mem); | 130 void Exchange(Register reg, const Address& mem); |
| 131 void Exchange(const Address& mem1, const Address& mem2); | 131 void Exchange(const Address& mem1, const Address& mem2); |
| 132 | 132 |
| 133 FlowGraphCompiler* compiler_; | 133 FlowGraphCompiler* compiler_; |
| 134 | 134 |
| 135 // List of moves not yet resolved. | 135 // List of moves not yet resolved. |
| 136 GrowableArray<MoveOperands*> moves_; | 136 GrowableArray<MoveOperands*> moves_; |
| 137 }; | 137 }; |
| 138 | 138 |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 179 #include "vm/flow_graph_compiler_ia32.h" | 179 #include "vm/flow_graph_compiler_ia32.h" |
| 180 #elif defined(TARGET_ARCH_X64) | 180 #elif defined(TARGET_ARCH_X64) |
| 181 #include "vm/flow_graph_compiler_x64.h" | 181 #include "vm/flow_graph_compiler_x64.h" |
| 182 #elif defined(TARGET_ARCH_ARM) | 182 #elif defined(TARGET_ARCH_ARM) |
| 183 #include "vm/flow_graph_compiler_arm.h" | 183 #include "vm/flow_graph_compiler_arm.h" |
| 184 #else | 184 #else |
| 185 #error Unknown architecture. | 185 #error Unknown architecture. |
| 186 #endif | 186 #endif |
| 187 | 187 |
| 188 #endif // VM_FLOW_GRAPH_COMPILER_H_ | 188 #endif // VM_FLOW_GRAPH_COMPILER_H_ |
| OLD | NEW |