OLD | NEW |
1 // Copyright 2015 the V8 project authors. All rights reserved. | 1 // Copyright 2015 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 #include "src/interpreter/bytecodes.h" | 5 #include "src/interpreter/bytecodes.h" |
6 | 6 |
7 #include <iomanip> | 7 #include <iomanip> |
8 | 8 |
9 #include "src/base/bits.h" | 9 #include "src/base/bits.h" |
10 #include "src/frames.h" | 10 #include "src/frames.h" |
(...skipping 719 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
730 const uint8_t* operand_start = | 730 const uint8_t* operand_start = |
731 &bytecode_start[prefix_offset + | 731 &bytecode_start[prefix_offset + |
732 GetOperandOffset(bytecode, i, operand_scale)]; | 732 GetOperandOffset(bytecode, i, operand_scale)]; |
733 switch (op_type) { | 733 switch (op_type) { |
734 case interpreter::OperandType::kRegCount: | 734 case interpreter::OperandType::kRegCount: |
735 os << "#" | 735 os << "#" |
736 << DecodeUnsignedOperand(operand_start, op_type, operand_scale); | 736 << DecodeUnsignedOperand(operand_start, op_type, operand_scale); |
737 break; | 737 break; |
738 case interpreter::OperandType::kIdx: | 738 case interpreter::OperandType::kIdx: |
739 case interpreter::OperandType::kRuntimeId: | 739 case interpreter::OperandType::kRuntimeId: |
740 case interpreter::OperandType::kIntrinsicId: | |
741 os << "[" | 740 os << "[" |
742 << DecodeUnsignedOperand(operand_start, op_type, operand_scale) | 741 << DecodeUnsignedOperand(operand_start, op_type, operand_scale) |
743 << "]"; | 742 << "]"; |
744 break; | 743 break; |
745 case interpreter::OperandType::kImm: | 744 case interpreter::OperandType::kImm: |
746 os << "[" << DecodeSignedOperand(operand_start, op_type, operand_scale) | 745 os << "[" << DecodeSignedOperand(operand_start, op_type, operand_scale) |
747 << "]"; | 746 << "]"; |
748 break; | 747 break; |
749 case interpreter::OperandType::kFlag8: | 748 case interpreter::OperandType::kFlag8: |
750 os << "#" | 749 os << "#" |
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
940 } else { | 939 } else { |
941 std::ostringstream s; | 940 std::ostringstream s; |
942 s << "r" << index(); | 941 s << "r" << index(); |
943 return s.str(); | 942 return s.str(); |
944 } | 943 } |
945 } | 944 } |
946 | 945 |
947 } // namespace interpreter | 946 } // namespace interpreter |
948 } // namespace internal | 947 } // namespace internal |
949 } // namespace v8 | 948 } // namespace v8 |
OLD | NEW |