Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(38)

Side by Side Diff: src/compiler/gap-resolver.h

Issue 426233002: Land the Fan (disabled) (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Review feedback, rebase and "git cl format" Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/compiler/frame.h ('k') | src/compiler/gap-resolver.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef V8_COMPILER_GAP_RESOLVER_H_
6 #define V8_COMPILER_GAP_RESOLVER_H_
7
8 #include "src/compiler/instruction.h"
9
10 namespace v8 {
11 namespace internal {
12 namespace compiler {
13
14 class GapResolver V8_FINAL {
15 public:
16 // Interface used by the gap resolver to emit moves and swaps.
17 class Assembler {
18 public:
19 virtual ~Assembler() {}
20
21 // Assemble move.
22 virtual void AssembleMove(InstructionOperand* source,
23 InstructionOperand* destination) = 0;
24 // Assemble swap.
25 virtual void AssembleSwap(InstructionOperand* source,
26 InstructionOperand* destination) = 0;
27 };
28
29 explicit GapResolver(Assembler* assembler) : assembler_(assembler) {}
30
31 // Resolve a set of parallel moves, emitting assembler instructions.
32 void Resolve(ParallelMove* parallel_move) const;
33
34 private:
35 // Perform the given move, possibly requiring other moves to satisfy
36 // dependencies.
37 void PerformMove(ZoneList<MoveOperands>* moves, MoveOperands* move) const;
38
39 // Assembler used to emit moves and save registers.
40 Assembler* const assembler_;
41 };
42 }
43 }
44 } // namespace v8::internal::compiler
45
46 #endif // V8_COMPILER_GAP_RESOLVER_H_
OLDNEW
« no previous file with comments | « src/compiler/frame.h ('k') | src/compiler/gap-resolver.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698