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

Side by Side Diff: src/compiler/move-optimizer.h

Issue 750813004: [turbofan] add initial move optimizer (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: rebase Created 6 years 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
« no previous file with comments | « src/compiler/instruction.h ('k') | src/compiler/move-optimizer.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_MOVE_OPTIMIZER_
6 #define V8_COMPILER_MOVE_OPTIMIZER_
7
8 #include "src/compiler/instruction.h"
9 #include "src/zone-containers.h"
10
11 namespace v8 {
12 namespace internal {
13 namespace compiler {
14
15 class MoveOptimizer FINAL {
16 public:
17 MoveOptimizer(Zone* local_zone, InstructionSequence* code);
18 void Run();
19
20 private:
21 typedef ZoneVector<MoveOperands*> MoveOpVector;
22
23 InstructionSequence* code() const { return code_; }
24 Zone* local_zone() const { return local_zone_; }
25 Zone* code_zone() const { return code()->zone(); }
26
27 void CompressMoves(MoveOpVector* eliminated, ParallelMove* left,
28 ParallelMove* right);
29 void FinalizeMoves(MoveOpVector* loads, MoveOpVector* new_moves,
30 GapInstruction* gap);
31
32 Zone* const local_zone_;
33 InstructionSequence* const code_;
34 MoveOpVector temp_vector_0_;
35 MoveOpVector temp_vector_1_;
36
37 DISALLOW_COPY_AND_ASSIGN(MoveOptimizer);
38 };
39
40 } // namespace compiler
41 } // namespace internal
42 } // namespace v8
43
44 #endif // V8_COMPILER_MOVE_OPTIMIZER_
OLDNEW
« no previous file with comments | « src/compiler/instruction.h ('k') | src/compiler/move-optimizer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698