| 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 1034 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1045 | 1045 |
| 1046 int LastLoopInstructionIndex(const InstructionBlock* block) { | 1046 int LastLoopInstructionIndex(const InstructionBlock* block) { |
| 1047 return instruction_blocks_->at(block->loop_end().ToSize() - 1) | 1047 return instruction_blocks_->at(block->loop_end().ToSize() - 1) |
| 1048 ->last_instruction_index(); | 1048 ->last_instruction_index(); |
| 1049 } | 1049 } |
| 1050 | 1050 |
| 1051 const InstructionBlock* InstructionBlockAt(RpoNumber rpo_number) const { | 1051 const InstructionBlock* InstructionBlockAt(RpoNumber rpo_number) const { |
| 1052 return instruction_blocks_->at(rpo_number.ToSize()); | 1052 return instruction_blocks_->at(rpo_number.ToSize()); |
| 1053 } | 1053 } |
| 1054 | 1054 |
| 1055 const InstructionBlock* GetInstructionBlock(int instruction_index) const; | 1055 InstructionBlock* GetInstructionBlock(int instruction_index) const; |
| 1056 | 1056 |
| 1057 static MachineType DefaultRepresentation() { | 1057 static MachineType DefaultRepresentation() { |
| 1058 return kPointerSize == 8 ? kRepWord64 : kRepWord32; | 1058 return kPointerSize == 8 ? kRepWord64 : kRepWord32; |
| 1059 } | 1059 } |
| 1060 MachineType GetRepresentation(int virtual_register) const; | 1060 MachineType GetRepresentation(int virtual_register) const; |
| 1061 void MarkAsRepresentation(MachineType machine_type, int virtual_register); | 1061 void MarkAsRepresentation(MachineType machine_type, int virtual_register); |
| 1062 | 1062 |
| 1063 bool IsReference(int virtual_register) const { | 1063 bool IsReference(int virtual_register) const { |
| 1064 return GetRepresentation(virtual_register) == kRepTagged; | 1064 return GetRepresentation(virtual_register) == kRepTagged; |
| 1065 } | 1065 } |
| (...skipping 122 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 |