| 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 #ifndef V8_INTERPRETER_BYTECODES_H_ | 5 #ifndef V8_INTERPRETER_BYTECODES_H_ |
| 6 #define V8_INTERPRETER_BYTECODES_H_ | 6 #define V8_INTERPRETER_BYTECODES_H_ |
| 7 | 7 |
| 8 #include <iosfwd> | 8 #include <iosfwd> |
| 9 | 9 |
| 10 // Clients of this interface shouldn't depend on lots of interpreter internals. | 10 // Clients of this interface shouldn't depend on lots of interpreter internals. |
| (...skipping 24 matching lines...) Expand all Loading... |
| 35 \ | 35 \ |
| 36 /* Register-accumulator transfers */ \ | 36 /* Register-accumulator transfers */ \ |
| 37 V(Ldar, OperandType::kReg) \ | 37 V(Ldar, OperandType::kReg) \ |
| 38 V(Star, OperandType::kReg) \ | 38 V(Star, OperandType::kReg) \ |
| 39 \ | 39 \ |
| 40 /* Binary Operators */ \ | 40 /* Binary Operators */ \ |
| 41 V(Add, OperandType::kReg) \ | 41 V(Add, OperandType::kReg) \ |
| 42 V(Sub, OperandType::kReg) \ | 42 V(Sub, OperandType::kReg) \ |
| 43 V(Mul, OperandType::kReg) \ | 43 V(Mul, OperandType::kReg) \ |
| 44 V(Div, OperandType::kReg) \ | 44 V(Div, OperandType::kReg) \ |
| 45 V(Mod, OperandType::kReg) \ |
| 45 \ | 46 \ |
| 46 /* Control Flow */ \ | 47 /* Control Flow */ \ |
| 47 V(Return, OperandType::kNone) | 48 V(Return, OperandType::kNone) |
| 48 | 49 |
| 49 | 50 |
| 50 // Enumeration of operand types used by bytecodes. | 51 // Enumeration of operand types used by bytecodes. |
| 51 enum class OperandType : uint8_t { | 52 enum class OperandType : uint8_t { |
| 52 #define DECLARE_OPERAND_TYPE(Name) k##Name, | 53 #define DECLARE_OPERAND_TYPE(Name) k##Name, |
| 53 OPERAND_TYPE_LIST(DECLARE_OPERAND_TYPE) | 54 OPERAND_TYPE_LIST(DECLARE_OPERAND_TYPE) |
| 54 #undef DECLARE_OPERAND_TYPE | 55 #undef DECLARE_OPERAND_TYPE |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 110 }; | 111 }; |
| 111 | 112 |
| 112 std::ostream& operator<<(std::ostream& os, const Bytecode& bytecode); | 113 std::ostream& operator<<(std::ostream& os, const Bytecode& bytecode); |
| 113 std::ostream& operator<<(std::ostream& os, const OperandType& operand_type); | 114 std::ostream& operator<<(std::ostream& os, const OperandType& operand_type); |
| 114 | 115 |
| 115 } // namespace interpreter | 116 } // namespace interpreter |
| 116 } // namespace internal | 117 } // namespace internal |
| 117 } // namespace v8 | 118 } // namespace v8 |
| 118 | 119 |
| 119 #endif // V8_INTERPRETER_BYTECODES_H_ | 120 #endif // V8_INTERPRETER_BYTECODES_H_ |
| OLD | NEW |