| 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 810 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 821 | 821 |
| 822 BasicBlock* GetContainingLoop(BasicBlock* block) { | 822 BasicBlock* GetContainingLoop(BasicBlock* block) { |
| 823 return block->loop_header(); | 823 return block->loop_header(); |
| 824 } | 824 } |
| 825 | 825 |
| 826 int GetLoopEnd(BasicBlock* block) const { return block->loop_end(); } | 826 int GetLoopEnd(BasicBlock* block) const { return block->loop_end(); } |
| 827 | 827 |
| 828 BasicBlock* GetBasicBlock(int instruction_index); | 828 BasicBlock* GetBasicBlock(int instruction_index); |
| 829 | 829 |
| 830 int GetVirtualRegister(const Node* node); | 830 int GetVirtualRegister(const Node* node); |
| 831 // TODO(dcarney): find a way to remove this. |
| 832 const int* GetNodeMapForTesting() const { return node_map_; } |
| 831 | 833 |
| 832 bool IsReference(int virtual_register) const; | 834 bool IsReference(int virtual_register) const; |
| 833 bool IsDouble(int virtual_register) const; | 835 bool IsDouble(int virtual_register) const; |
| 834 | 836 |
| 835 void MarkAsReference(int virtual_register); | 837 void MarkAsReference(int virtual_register); |
| 836 void MarkAsDouble(int virtual_register); | 838 void MarkAsDouble(int virtual_register); |
| 837 | 839 |
| 838 void AddGapMove(int index, InstructionOperand* from, InstructionOperand* to); | 840 void AddGapMove(int index, InstructionOperand* from, InstructionOperand* to); |
| 839 | 841 |
| 840 Label* GetLabel(BasicBlock* block); | 842 Label* GetLabel(BasicBlock* block); |
| (...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 929 DeoptimizationVector deoptimization_entries_; | 931 DeoptimizationVector deoptimization_entries_; |
| 930 }; | 932 }; |
| 931 | 933 |
| 932 std::ostream& operator<<(std::ostream& os, const InstructionSequence& code); | 934 std::ostream& operator<<(std::ostream& os, const InstructionSequence& code); |
| 933 | 935 |
| 934 } // namespace compiler | 936 } // namespace compiler |
| 935 } // namespace internal | 937 } // namespace internal |
| 936 } // namespace v8 | 938 } // namespace v8 |
| 937 | 939 |
| 938 #endif // V8_COMPILER_INSTRUCTION_H_ | 940 #endif // V8_COMPILER_INSTRUCTION_H_ |
| OLD | NEW |