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 1155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1166 for (Instruction* instr : instructions_) { | 1166 for (Instruction* instr : instructions_) { |
1167 if (instr->IsCall()) return true; | 1167 if (instr->IsCall()) return true; |
1168 } | 1168 } |
1169 return false; | 1169 return false; |
1170 } | 1170 } |
1171 | 1171 |
1172 private: | 1172 private: |
1173 friend std::ostream& operator<<(std::ostream& os, | 1173 friend std::ostream& operator<<(std::ostream& os, |
1174 const PrintableInstructionSequence& code); | 1174 const PrintableInstructionSequence& code); |
1175 | 1175 |
1176 typedef std::set<int, std::less<int>, ZoneIntAllocator> VirtualRegisterSet; | |
1177 typedef ZoneMap<const Instruction*, SourcePosition> SourcePositionMap; | 1176 typedef ZoneMap<const Instruction*, SourcePosition> SourcePositionMap; |
1178 | 1177 |
1179 Isolate* isolate_; | 1178 Isolate* isolate_; |
1180 Zone* const zone_; | 1179 Zone* const zone_; |
1181 InstructionBlocks* const instruction_blocks_; | 1180 InstructionBlocks* const instruction_blocks_; |
1182 SourcePositionMap source_positions_; | 1181 SourcePositionMap source_positions_; |
1183 IntVector block_starts_; | 1182 IntVector block_starts_; |
1184 ConstantMap constants_; | 1183 ConstantMap constants_; |
1185 Immediates immediates_; | 1184 Immediates immediates_; |
1186 InstructionDeque instructions_; | 1185 InstructionDeque instructions_; |
(...skipping 13 matching lines...) Expand all Loading... |
1200 | 1199 |
1201 | 1200 |
1202 std::ostream& operator<<(std::ostream& os, | 1201 std::ostream& operator<<(std::ostream& os, |
1203 const PrintableInstructionSequence& code); | 1202 const PrintableInstructionSequence& code); |
1204 | 1203 |
1205 } // namespace compiler | 1204 } // namespace compiler |
1206 } // namespace internal | 1205 } // namespace internal |
1207 } // namespace v8 | 1206 } // namespace v8 |
1208 | 1207 |
1209 #endif // V8_COMPILER_INSTRUCTION_H_ | 1208 #endif // V8_COMPILER_INSTRUCTION_H_ |
OLD | NEW |