| 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/code_descriptors.h" | 10 #include "vm/code_descriptors.h" |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 55 private: | 55 private: |
| 56 ParallelMoveResolver* resolver_; | 56 ParallelMoveResolver* resolver_; |
| 57 Register reg_; | 57 Register reg_; |
| 58 bool spilled_; | 58 bool spilled_; |
| 59 }; | 59 }; |
| 60 | 60 |
| 61 | 61 |
| 62 bool IsScratchLocation(Location loc); | 62 bool IsScratchLocation(Location loc); |
| 63 intptr_t AllocateScratchRegister(Location::Kind kind, | 63 intptr_t AllocateScratchRegister(Location::Kind kind, |
| 64 intptr_t blocked, | 64 intptr_t blocked, |
| 65 intptr_t register_count, | 65 intptr_t first_free_register, |
| 66 intptr_t last_free_register, |
| 66 bool* spilled); | 67 bool* spilled); |
| 67 | 68 |
| 68 void SpillScratch(Register reg); | 69 void SpillScratch(Register reg); |
| 69 void RestoreScratch(Register reg); | 70 void RestoreScratch(Register reg); |
| 70 void SpillFpuScratch(FpuRegister reg); | 71 void SpillFpuScratch(FpuRegister reg); |
| 71 void RestoreFpuScratch(FpuRegister reg); | 72 void RestoreFpuScratch(FpuRegister reg); |
| 72 | 73 |
| 73 // friend class ScratchXmmRegisterScope; | 74 // friend class ScratchXmmRegisterScope; |
| 74 | 75 |
| 75 // Build the initial list of moves. | 76 // Build the initial list of moves. |
| (...skipping 525 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 601 intptr_t entry_patch_pc_offset_; | 602 intptr_t entry_patch_pc_offset_; |
| 602 intptr_t patch_code_pc_offset_; | 603 intptr_t patch_code_pc_offset_; |
| 603 intptr_t lazy_deopt_pc_offset_; | 604 intptr_t lazy_deopt_pc_offset_; |
| 604 | 605 |
| 605 DISALLOW_COPY_AND_ASSIGN(FlowGraphCompiler); | 606 DISALLOW_COPY_AND_ASSIGN(FlowGraphCompiler); |
| 606 }; | 607 }; |
| 607 | 608 |
| 608 } // namespace dart | 609 } // namespace dart |
| 609 | 610 |
| 610 #endif // VM_FLOW_GRAPH_COMPILER_H_ | 611 #endif // VM_FLOW_GRAPH_COMPILER_H_ |
| OLD | NEW |