| 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_IA32_H_ | 5 #ifndef VM_FLOW_GRAPH_COMPILER_IA32_H_ |
| 6 #define VM_FLOW_GRAPH_COMPILER_IA32_H_ | 6 #define VM_FLOW_GRAPH_COMPILER_IA32_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_ia32.h. | 9 #error Include flow_graph_compiler.h instead of flow_graph_compiler_ia32.h. |
| 10 #endif | 10 #endif |
| (...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 256 void GenerateInlinedGetter(intptr_t offset); | 256 void GenerateInlinedGetter(intptr_t offset); |
| 257 void GenerateInlinedSetter(intptr_t offset); | 257 void GenerateInlinedSetter(intptr_t offset); |
| 258 | 258 |
| 259 // Map a block number in a forward iteration into the block number in the | 259 // Map a block number in a forward iteration into the block number in the |
| 260 // corresponding reverse iteration. Used to obtain an index into | 260 // corresponding reverse iteration. Used to obtain an index into |
| 261 // block_order for reverse iterations. | 261 // block_order for reverse iterations. |
| 262 intptr_t reverse_index(intptr_t index) const { | 262 intptr_t reverse_index(intptr_t index) const { |
| 263 return block_order_.length() - index - 1; | 263 return block_order_.length() - index - 1; |
| 264 } | 264 } |
| 265 | 265 |
| 266 // Returns true if the generated code does not call other Dart code. | 266 // Returns true if the generated code does not call other Dart code or |
| 267 // Only deoptimization is allowed to occur. Closures are not leaf. | 267 // runtime. Only deoptimization is allowed to occur. Closures are not leaf. |
| 268 bool IsLeaf() const; | 268 bool IsLeaf() const; |
| 269 | 269 |
| 270 class Assembler* assembler_; | 270 class Assembler* assembler_; |
| 271 const ParsedFunction& parsed_function_; | 271 const ParsedFunction& parsed_function_; |
| 272 const GrowableArray<BlockEntryInstr*>& block_order_; | 272 const GrowableArray<BlockEntryInstr*>& block_order_; |
| 273 | 273 |
| 274 // Compiler specific per-block state. Indexed by postorder block number | 274 // Compiler specific per-block state. Indexed by postorder block number |
| 275 // for convenience. This is not the block's index in the block order, | 275 // for convenience. This is not the block's index in the block order, |
| 276 // which is reverse postorder. | 276 // which is reverse postorder. |
| 277 BlockEntryInstr* current_block_; | 277 BlockEntryInstr* current_block_; |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 319 const DeoptReasonId reason_; | 319 const DeoptReasonId reason_; |
| 320 GrowableArray<Register> registers_; | 320 GrowableArray<Register> registers_; |
| 321 Label entry_label_; | 321 Label entry_label_; |
| 322 | 322 |
| 323 DISALLOW_COPY_AND_ASSIGN(DeoptimizationStub); | 323 DISALLOW_COPY_AND_ASSIGN(DeoptimizationStub); |
| 324 }; | 324 }; |
| 325 | 325 |
| 326 } // namespace dart | 326 } // namespace dart |
| 327 | 327 |
| 328 #endif // VM_FLOW_GRAPH_COMPILER_IA32_H_ | 328 #endif // VM_FLOW_GRAPH_COMPILER_IA32_H_ |
| OLD | NEW |