OLD | NEW |
1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef V8_IA32_LITHIUM_GAP_RESOLVER_IA32_H_ | 5 #ifndef V8_IA32_LITHIUM_GAP_RESOLVER_IA32_H_ |
6 #define V8_IA32_LITHIUM_GAP_RESOLVER_IA32_H_ | 6 #define V8_IA32_LITHIUM_GAP_RESOLVER_IA32_H_ |
7 | 7 |
8 #include "src/v8.h" | 8 #include "src/v8.h" |
9 | 9 |
10 #include "src/lithium.h" | 10 #include "src/lithium.h" |
11 | 11 |
12 namespace v8 { | 12 namespace v8 { |
13 namespace internal { | 13 namespace internal { |
14 | 14 |
15 class LCodeGen; | 15 class LCodeGen; |
16 class LGapResolver; | 16 class LGapResolver; |
17 | 17 |
18 class LGapResolver FINAL BASE_EMBEDDED { | 18 class LGapResolver final BASE_EMBEDDED { |
19 public: | 19 public: |
20 explicit LGapResolver(LCodeGen* owner); | 20 explicit LGapResolver(LCodeGen* owner); |
21 | 21 |
22 // Resolve a set of parallel moves, emitting assembler instructions. | 22 // Resolve a set of parallel moves, emitting assembler instructions. |
23 void Resolve(LParallelMove* parallel_move); | 23 void Resolve(LParallelMove* parallel_move); |
24 | 24 |
25 private: | 25 private: |
26 // Build the initial list of moves. | 26 // Build the initial list of moves. |
27 void BuildInitialMoveList(LParallelMove* parallel_move); | 27 void BuildInitialMoveList(LParallelMove* parallel_move); |
28 | 28 |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
78 int destination_uses_[Register::kMaxNumAllocatableRegisters]; | 78 int destination_uses_[Register::kMaxNumAllocatableRegisters]; |
79 | 79 |
80 // If we had to spill on demand, the currently spilled register's | 80 // If we had to spill on demand, the currently spilled register's |
81 // allocation index. | 81 // allocation index. |
82 int spilled_register_; | 82 int spilled_register_; |
83 }; | 83 }; |
84 | 84 |
85 } } // namespace v8::internal | 85 } } // namespace v8::internal |
86 | 86 |
87 #endif // V8_IA32_LITHIUM_GAP_RESOLVER_IA32_H_ | 87 #endif // V8_IA32_LITHIUM_GAP_RESOLVER_IA32_H_ |
OLD | NEW |