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 574 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
585 const ZoneVector<InstructionOperand>& reference_operands() const { | 585 const ZoneVector<InstructionOperand>& reference_operands() const { |
586 return reference_operands_; | 586 return reference_operands_; |
587 } | 587 } |
588 int instruction_position() const { return instruction_position_; } | 588 int instruction_position() const { return instruction_position_; } |
589 | 589 |
590 void set_instruction_position(int pos) { | 590 void set_instruction_position(int pos) { |
591 DCHECK(instruction_position_ == -1); | 591 DCHECK(instruction_position_ == -1); |
592 instruction_position_ = pos; | 592 instruction_position_ = pos; |
593 } | 593 } |
594 | 594 |
595 void RecordReference(const InstructionOperand& op); | 595 void RecordReference(const AllocatedOperand& op); |
596 | 596 |
597 private: | 597 private: |
598 friend std::ostream& operator<<(std::ostream& os, const ReferenceMap& pm); | 598 friend std::ostream& operator<<(std::ostream& os, const ReferenceMap& pm); |
599 | 599 |
600 ZoneVector<InstructionOperand> reference_operands_; | 600 ZoneVector<InstructionOperand> reference_operands_; |
601 int instruction_position_; | 601 int instruction_position_; |
602 }; | 602 }; |
603 | 603 |
604 std::ostream& operator<<(std::ostream& os, const ReferenceMap& pm); | 604 std::ostream& operator<<(std::ostream& os, const ReferenceMap& pm); |
605 | 605 |
(...skipping 582 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1188 | 1188 |
1189 | 1189 |
1190 std::ostream& operator<<(std::ostream& os, | 1190 std::ostream& operator<<(std::ostream& os, |
1191 const PrintableInstructionSequence& code); | 1191 const PrintableInstructionSequence& code); |
1192 | 1192 |
1193 } // namespace compiler | 1193 } // namespace compiler |
1194 } // namespace internal | 1194 } // namespace internal |
1195 } // namespace v8 | 1195 } // namespace v8 |
1196 | 1196 |
1197 #endif // V8_COMPILER_INSTRUCTION_H_ | 1197 #endif // V8_COMPILER_INSTRUCTION_H_ |
OLD | NEW |