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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
63 OperandType::kIdx8) \ | 63 OperandType::kIdx8) \ |
64 V(KeyedStoreICStrict, OperandType::kReg8, OperandType::kReg8, \ | 64 V(KeyedStoreICStrict, OperandType::kReg8, OperandType::kReg8, \ |
65 OperandType::kIdx8) \ | 65 OperandType::kIdx8) \ |
66 \ | 66 \ |
67 /* Binary Operators */ \ | 67 /* Binary Operators */ \ |
68 V(Add, OperandType::kReg8) \ | 68 V(Add, OperandType::kReg8) \ |
69 V(Sub, OperandType::kReg8) \ | 69 V(Sub, OperandType::kReg8) \ |
70 V(Mul, OperandType::kReg8) \ | 70 V(Mul, OperandType::kReg8) \ |
71 V(Div, OperandType::kReg8) \ | 71 V(Div, OperandType::kReg8) \ |
72 V(Mod, OperandType::kReg8) \ | 72 V(Mod, OperandType::kReg8) \ |
| 73 V(ShiftLeft, OperandType::kReg8) \ |
| 74 V(ShiftRight, OperandType::kReg8) \ |
| 75 V(ShiftRightLogical, OperandType::kReg8) \ |
73 \ | 76 \ |
74 /* Unary Operators */ \ | 77 /* Unary Operators */ \ |
75 V(LogicalNot, OperandType::kNone) \ | 78 V(LogicalNot, OperandType::kNone) \ |
76 V(TypeOf, OperandType::kNone) \ | 79 V(TypeOf, OperandType::kNone) \ |
77 \ | 80 \ |
78 /* Call operations. */ \ | 81 /* Call operations. */ \ |
79 V(Call, OperandType::kReg8, OperandType::kReg8, OperandType::kCount8) \ | 82 V(Call, OperandType::kReg8, OperandType::kReg8, OperandType::kCount8) \ |
80 V(CallRuntime, OperandType::kIdx16, OperandType::kReg8, \ | 83 V(CallRuntime, OperandType::kIdx16, OperandType::kReg8, \ |
81 OperandType::kCount8) \ | 84 OperandType::kCount8) \ |
82 \ | 85 \ |
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
236 | 239 |
237 std::ostream& operator<<(std::ostream& os, const Bytecode& bytecode); | 240 std::ostream& operator<<(std::ostream& os, const Bytecode& bytecode); |
238 std::ostream& operator<<(std::ostream& os, const OperandType& operand_type); | 241 std::ostream& operator<<(std::ostream& os, const OperandType& operand_type); |
239 std::ostream& operator<<(std::ostream& os, const OperandSize& operand_type); | 242 std::ostream& operator<<(std::ostream& os, const OperandSize& operand_type); |
240 | 243 |
241 } // namespace interpreter | 244 } // namespace interpreter |
242 } // namespace internal | 245 } // namespace internal |
243 } // namespace v8 | 246 } // namespace v8 |
244 | 247 |
245 #endif // V8_INTERPRETER_BYTECODES_H_ | 248 #endif // V8_INTERPRETER_BYTECODES_H_ |
OLD | NEW |