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: |
740 os << "[" | 741 os << "[" |
741 << DecodeUnsignedOperand(operand_start, op_type, operand_scale) | 742 << DecodeUnsignedOperand(operand_start, op_type, operand_scale) |
742 << "]"; | 743 << "]"; |
743 break; | 744 break; |
744 case interpreter::OperandType::kImm: | 745 case interpreter::OperandType::kImm: |
745 os << "[" << DecodeSignedOperand(operand_start, op_type, operand_scale) | 746 os << "[" << DecodeSignedOperand(operand_start, op_type, operand_scale) |
746 << "]"; | 747 << "]"; |
747 break; | 748 break; |
748 case interpreter::OperandType::kFlag8: | 749 case interpreter::OperandType::kFlag8: |
749 os << "#" | 750 os << "#" |
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
939 } else { | 940 } else { |
940 std::ostringstream s; | 941 std::ostringstream s; |
941 s << "r" << index(); | 942 s << "r" << index(); |
942 return s.str(); | 943 return s.str(); |
943 } | 944 } |
944 } | 945 } |
945 | 946 |
946 } // namespace interpreter | 947 } // namespace interpreter |
947 } // namespace internal | 948 } // namespace internal |
948 } // namespace v8 | 949 } // namespace v8 |
OLD | NEW |