| 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_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 Loading... |
| 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 Loading... |
| 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_ |
| OLD | NEW |