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 <map> | 9 #include <map> |
10 #include <set> | 10 #include <set> |
(...skipping 821 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
832 | 832 |
833 int BasicBlockCount() const { | 833 int BasicBlockCount() const { |
834 return static_cast<int>(schedule_->rpo_order()->size()); | 834 return static_cast<int>(schedule_->rpo_order()->size()); |
835 } | 835 } |
836 | 836 |
837 BasicBlock* BlockAt(int rpo_number) const { | 837 BasicBlock* BlockAt(int rpo_number) const { |
838 return (*schedule_->rpo_order())[rpo_number]; | 838 return (*schedule_->rpo_order())[rpo_number]; |
839 } | 839 } |
840 | 840 |
841 BasicBlock* GetContainingLoop(BasicBlock* block) { | 841 BasicBlock* GetContainingLoop(BasicBlock* block) { |
842 return block->loop_header_; | 842 return block->loop_header(); |
843 } | 843 } |
844 | 844 |
845 int GetLoopEnd(BasicBlock* block) const { return block->loop_end_; } | 845 int GetLoopEnd(BasicBlock* block) const { return block->loop_end(); } |
846 | 846 |
847 BasicBlock* GetBasicBlock(int instruction_index); | 847 BasicBlock* GetBasicBlock(int instruction_index); |
848 | 848 |
849 int GetVirtualRegister(Node* node) const { return node->id(); } | 849 int GetVirtualRegister(Node* node) const { return node->id(); } |
850 | 850 |
851 bool IsReference(int virtual_register) const; | 851 bool IsReference(int virtual_register) const; |
852 bool IsDouble(int virtual_register) const; | 852 bool IsDouble(int virtual_register) const; |
853 | 853 |
854 void MarkAsReference(int virtual_register); | 854 void MarkAsReference(int virtual_register); |
855 void MarkAsDouble(int virtual_register); | 855 void MarkAsDouble(int virtual_register); |
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
944 DeoptimizationVector deoptimization_entries_; | 944 DeoptimizationVector deoptimization_entries_; |
945 }; | 945 }; |
946 | 946 |
947 OStream& operator<<(OStream& os, const InstructionSequence& code); | 947 OStream& operator<<(OStream& os, const InstructionSequence& code); |
948 | 948 |
949 } // namespace compiler | 949 } // namespace compiler |
950 } // namespace internal | 950 } // namespace internal |
951 } // namespace v8 | 951 } // namespace v8 |
952 | 952 |
953 #endif // V8_COMPILER_INSTRUCTION_H_ | 953 #endif // V8_COMPILER_INSTRUCTION_H_ |
OLD | NEW |