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

Side by Side Diff: src/compiler/instruction.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 | « BUILD.gn ('k') | src/compiler/move-optimizer.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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_INSTRUCTION_H_ 5 #ifndef V8_COMPILER_INSTRUCTION_H_
6 #define V8_COMPILER_INSTRUCTION_H_ 6 #define V8_COMPILER_INSTRUCTION_H_
7 7
8 #include <deque> 8 #include <deque>
9 #include <iosfwd> 9 #include <iosfwd>
10 #include <map> 10 #include <map>
(...skipping 598 matching lines...) Expand 10 before | Expand all | Expand 10 after
609 ParallelMove* GetParallelMove(InnerPosition pos) { 609 ParallelMove* GetParallelMove(InnerPosition pos) {
610 return parallel_moves_[pos]; 610 return parallel_moves_[pos];
611 } 611 }
612 612
613 const ParallelMove* GetParallelMove(InnerPosition pos) const { 613 const ParallelMove* GetParallelMove(InnerPosition pos) const {
614 return parallel_moves_[pos]; 614 return parallel_moves_[pos];
615 } 615 }
616 616
617 bool IsRedundant() const; 617 bool IsRedundant() const;
618 618
619 ParallelMove** parallel_moves() { return parallel_moves_; }
620
619 static GapInstruction* New(Zone* zone) { 621 static GapInstruction* New(Zone* zone) {
620 void* buffer = zone->New(sizeof(GapInstruction)); 622 void* buffer = zone->New(sizeof(GapInstruction));
621 return new (buffer) GapInstruction(kGapInstruction); 623 return new (buffer) GapInstruction(kGapInstruction);
622 } 624 }
623 625
624 static GapInstruction* cast(Instruction* instr) { 626 static GapInstruction* cast(Instruction* instr) {
625 DCHECK(instr->IsGapMoves()); 627 DCHECK(instr->IsGapMoves());
626 return static_cast<GapInstruction*>(instr); 628 return static_cast<GapInstruction*>(instr);
627 } 629 }
628 630
(...skipping 461 matching lines...) Expand 10 before | Expand all | Expand 10 after
1090 1092
1091 1093
1092 std::ostream& operator<<(std::ostream& os, 1094 std::ostream& operator<<(std::ostream& os,
1093 const PrintableInstructionSequence& code); 1095 const PrintableInstructionSequence& code);
1094 1096
1095 } // namespace compiler 1097 } // namespace compiler
1096 } // namespace internal 1098 } // namespace internal
1097 } // namespace v8 1099 } // namespace v8
1098 1100
1099 #endif // V8_COMPILER_INSTRUCTION_H_ 1101 #endif // V8_COMPILER_INSTRUCTION_H_
OLDNEW
« no previous file with comments | « BUILD.gn ('k') | src/compiler/move-optimizer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698