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 1487 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1498 void Print() const; | 1498 void Print() const; |
1499 | 1499 |
1500 void PrintBlock(const RegisterConfiguration* config, int block_id) const; | 1500 void PrintBlock(const RegisterConfiguration* config, int block_id) const; |
1501 void PrintBlock(int block_id) const; | 1501 void PrintBlock(int block_id) const; |
1502 | 1502 |
1503 void ValidateEdgeSplitForm() const; | 1503 void ValidateEdgeSplitForm() const; |
1504 void ValidateDeferredBlockExitPaths() const; | 1504 void ValidateDeferredBlockExitPaths() const; |
1505 void ValidateDeferredBlockEntryPaths() const; | 1505 void ValidateDeferredBlockEntryPaths() const; |
1506 void ValidateSSA() const; | 1506 void ValidateSSA() const; |
1507 | 1507 |
| 1508 const RegisterConfiguration* GetRegisterConfigurationForTesting(); |
| 1509 |
1508 private: | 1510 private: |
1509 friend V8_EXPORT_PRIVATE std::ostream& operator<<( | 1511 friend V8_EXPORT_PRIVATE std::ostream& operator<<( |
1510 std::ostream& os, const PrintableInstructionSequence& code); | 1512 std::ostream& os, const PrintableInstructionSequence& code); |
1511 | 1513 |
1512 typedef ZoneMap<const Instruction*, SourcePosition> SourcePositionMap; | 1514 typedef ZoneMap<const Instruction*, SourcePosition> SourcePositionMap; |
1513 | 1515 |
1514 Isolate* isolate_; | 1516 Isolate* isolate_; |
1515 Zone* const zone_; | 1517 Zone* const zone_; |
1516 InstructionBlocks* const instruction_blocks_; | 1518 InstructionBlocks* const instruction_blocks_; |
1517 SourcePositionMap source_positions_; | 1519 SourcePositionMap source_positions_; |
(...skipping 18 matching lines...) Expand all Loading... |
1536 }; | 1538 }; |
1537 | 1539 |
1538 V8_EXPORT_PRIVATE std::ostream& operator<<( | 1540 V8_EXPORT_PRIVATE std::ostream& operator<<( |
1539 std::ostream& os, const PrintableInstructionSequence& code); | 1541 std::ostream& os, const PrintableInstructionSequence& code); |
1540 | 1542 |
1541 } // namespace compiler | 1543 } // namespace compiler |
1542 } // namespace internal | 1544 } // namespace internal |
1543 } // namespace v8 | 1545 } // namespace v8 |
1544 | 1546 |
1545 #endif // V8_COMPILER_INSTRUCTION_H_ | 1547 #endif // V8_COMPILER_INSTRUCTION_H_ |
OLD | NEW |