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 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 FlowGraphCompiler* compiler_; | 126 FlowGraphCompiler* compiler_; |
127 | 127 |
128 // List of moves not yet resolved. | 128 // List of moves not yet resolved. |
129 GrowableArray<MoveOperands> moves_; | 129 GrowableArray<MoveOperands*> moves_; |
130 }; | 130 }; |
131 | 131 |
132 | 132 |
133 class DeoptimizationStub : public ZoneAllocated { | 133 class DeoptimizationStub : public ZoneAllocated { |
134 public: | 134 public: |
135 DeoptimizationStub(intptr_t deopt_id, | 135 DeoptimizationStub(intptr_t deopt_id, |
136 intptr_t deopt_token_pos, | 136 intptr_t deopt_token_pos, |
137 intptr_t try_index, | 137 intptr_t try_index, |
138 DeoptReasonId reason) | 138 DeoptReasonId reason) |
139 : deopt_id_(deopt_id), | 139 : deopt_id_(deopt_id), |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
172 #include "vm/flow_graph_compiler_ia32.h" | 172 #include "vm/flow_graph_compiler_ia32.h" |
173 #elif defined(TARGET_ARCH_X64) | 173 #elif defined(TARGET_ARCH_X64) |
174 #include "vm/flow_graph_compiler_x64.h" | 174 #include "vm/flow_graph_compiler_x64.h" |
175 #elif defined(TARGET_ARCH_ARM) | 175 #elif defined(TARGET_ARCH_ARM) |
176 #include "vm/flow_graph_compiler_arm.h" | 176 #include "vm/flow_graph_compiler_arm.h" |
177 #else | 177 #else |
178 #error Unknown architecture. | 178 #error Unknown architecture. |
179 #endif | 179 #endif |
180 | 180 |
181 #endif // VM_FLOW_GRAPH_COMPILER_H_ | 181 #endif // VM_FLOW_GRAPH_COMPILER_H_ |
OLD | NEW |