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 805 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
816 return arch_opcode() == ArchOpcode::kArchDeoptimize || | 816 return arch_opcode() == ArchOpcode::kArchDeoptimize || |
817 FlagsModeField::decode(opcode()) == kFlags_deoptimize; | 817 FlagsModeField::decode(opcode()) == kFlags_deoptimize; |
818 } | 818 } |
819 | 819 |
820 bool IsJump() const { return arch_opcode() == ArchOpcode::kArchJmp; } | 820 bool IsJump() const { return arch_opcode() == ArchOpcode::kArchJmp; } |
821 bool IsRet() const { return arch_opcode() == ArchOpcode::kArchRet; } | 821 bool IsRet() const { return arch_opcode() == ArchOpcode::kArchRet; } |
822 bool IsTailCall() const { | 822 bool IsTailCall() const { |
823 return arch_opcode() == ArchOpcode::kArchTailCallCodeObject || | 823 return arch_opcode() == ArchOpcode::kArchTailCallCodeObject || |
824 arch_opcode() == ArchOpcode::kArchTailCallCodeObjectFromJSFunction || | 824 arch_opcode() == ArchOpcode::kArchTailCallCodeObjectFromJSFunction || |
825 arch_opcode() == ArchOpcode::kArchTailCallJSFunction || | 825 arch_opcode() == ArchOpcode::kArchTailCallJSFunction || |
826 arch_opcode() == ArchOpcode::kArchTailCallJSFunctionFromJSFunction; | 826 arch_opcode() == ArchOpcode::kArchTailCallJSFunctionFromJSFunction || |
| 827 arch_opcode() == ArchOpcode::kArchTailCallAddress; |
827 } | 828 } |
828 bool IsThrow() const { | 829 bool IsThrow() const { |
829 return arch_opcode() == ArchOpcode::kArchThrowTerminator; | 830 return arch_opcode() == ArchOpcode::kArchThrowTerminator; |
830 } | 831 } |
831 | 832 |
832 enum GapPosition { | 833 enum GapPosition { |
833 START, | 834 START, |
834 END, | 835 END, |
835 FIRST_GAP_POSITION = START, | 836 FIRST_GAP_POSITION = START, |
836 LAST_GAP_POSITION = END | 837 LAST_GAP_POSITION = END |
(...skipping 576 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1413 | 1414 |
1414 | 1415 |
1415 std::ostream& operator<<(std::ostream& os, | 1416 std::ostream& operator<<(std::ostream& os, |
1416 const PrintableInstructionSequence& code); | 1417 const PrintableInstructionSequence& code); |
1417 | 1418 |
1418 } // namespace compiler | 1419 } // namespace compiler |
1419 } // namespace internal | 1420 } // namespace internal |
1420 } // namespace v8 | 1421 } // namespace v8 |
1421 | 1422 |
1422 #endif // V8_COMPILER_INSTRUCTION_H_ | 1423 #endif // V8_COMPILER_INSTRUCTION_H_ |
OLD | NEW |