OLD | NEW |
1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 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_COMPILER_GAP_RESOLVER_H_ | 5 #ifndef V8_COMPILER_GAP_RESOLVER_H_ |
6 #define V8_COMPILER_GAP_RESOLVER_H_ | 6 #define V8_COMPILER_GAP_RESOLVER_H_ |
7 | 7 |
8 #include "src/compiler/instruction.h" | 8 #include "src/compiler/instruction.h" |
9 | 9 |
10 namespace v8 { | 10 namespace v8 { |
11 namespace internal { | 11 namespace internal { |
12 namespace compiler { | 12 namespace compiler { |
13 | 13 |
14 class GapResolver V8_FINAL { | 14 class GapResolver FINAL { |
15 public: | 15 public: |
16 // Interface used by the gap resolver to emit moves and swaps. | 16 // Interface used by the gap resolver to emit moves and swaps. |
17 class Assembler { | 17 class Assembler { |
18 public: | 18 public: |
19 virtual ~Assembler() {} | 19 virtual ~Assembler() {} |
20 | 20 |
21 // Assemble move. | 21 // Assemble move. |
22 virtual void AssembleMove(InstructionOperand* source, | 22 virtual void AssembleMove(InstructionOperand* source, |
23 InstructionOperand* destination) = 0; | 23 InstructionOperand* destination) = 0; |
24 // Assemble swap. | 24 // Assemble swap. |
(...skipping 12 matching lines...) Expand all Loading... |
37 void PerformMove(ZoneList<MoveOperands>* moves, MoveOperands* move) const; | 37 void PerformMove(ZoneList<MoveOperands>* moves, MoveOperands* move) const; |
38 | 38 |
39 // Assembler used to emit moves and save registers. | 39 // Assembler used to emit moves and save registers. |
40 Assembler* const assembler_; | 40 Assembler* const assembler_; |
41 }; | 41 }; |
42 } | 42 } |
43 } | 43 } |
44 } // namespace v8::internal::compiler | 44 } // namespace v8::internal::compiler |
45 | 45 |
46 #endif // V8_COMPILER_GAP_RESOLVER_H_ | 46 #endif // V8_COMPILER_GAP_RESOLVER_H_ |
OLD | NEW |