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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
58 V(StoreIC, OperandType::kReg8, OperandType::kReg8, OperandType::kIdx8) \ | 58 V(StoreIC, OperandType::kReg8, OperandType::kReg8, OperandType::kIdx8) \ |
59 V(KeyedStoreIC, OperandType::kReg8, OperandType::kReg8, OperandType::kIdx8) \ | 59 V(KeyedStoreIC, OperandType::kReg8, OperandType::kReg8, OperandType::kIdx8) \ |
60 \ | 60 \ |
61 /* Binary Operators */ \ | 61 /* Binary Operators */ \ |
62 V(Add, OperandType::kReg8) \ | 62 V(Add, OperandType::kReg8) \ |
63 V(Sub, OperandType::kReg8) \ | 63 V(Sub, OperandType::kReg8) \ |
64 V(Mul, OperandType::kReg8) \ | 64 V(Mul, OperandType::kReg8) \ |
65 V(Div, OperandType::kReg8) \ | 65 V(Div, OperandType::kReg8) \ |
66 V(Mod, OperandType::kReg8) \ | 66 V(Mod, OperandType::kReg8) \ |
67 \ | 67 \ |
| 68 /* Unary Operators */ \ |
| 69 V(LogicalNot, OperandType::kNone) \ |
| 70 V(TypeOf, OperandType::kNone) \ |
| 71 \ |
68 /* Call operations. */ \ | 72 /* Call operations. */ \ |
69 V(Call, OperandType::kReg8, OperandType::kReg8, OperandType::kCount8) \ | 73 V(Call, OperandType::kReg8, OperandType::kReg8, OperandType::kCount8) \ |
70 V(CallRuntime, OperandType::kIdx16, OperandType::kReg8, \ | 74 V(CallRuntime, OperandType::kIdx16, OperandType::kReg8, \ |
71 OperandType::kCount8) \ | 75 OperandType::kCount8) \ |
72 \ | 76 \ |
73 /* Test Operators */ \ | 77 /* Test Operators */ \ |
74 V(TestEqual, OperandType::kReg8) \ | 78 V(TestEqual, OperandType::kReg8) \ |
75 V(TestNotEqual, OperandType::kReg8) \ | 79 V(TestNotEqual, OperandType::kReg8) \ |
76 V(TestEqualStrict, OperandType::kReg8) \ | 80 V(TestEqualStrict, OperandType::kReg8) \ |
77 V(TestNotEqualStrict, OperandType::kReg8) \ | 81 V(TestNotEqualStrict, OperandType::kReg8) \ |
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
226 | 230 |
227 std::ostream& operator<<(std::ostream& os, const Bytecode& bytecode); | 231 std::ostream& operator<<(std::ostream& os, const Bytecode& bytecode); |
228 std::ostream& operator<<(std::ostream& os, const OperandType& operand_type); | 232 std::ostream& operator<<(std::ostream& os, const OperandType& operand_type); |
229 std::ostream& operator<<(std::ostream& os, const OperandSize& operand_type); | 233 std::ostream& operator<<(std::ostream& os, const OperandSize& operand_type); |
230 | 234 |
231 } // namespace interpreter | 235 } // namespace interpreter |
232 } // namespace internal | 236 } // namespace internal |
233 } // namespace v8 | 237 } // namespace v8 |
234 | 238 |
235 #endif // V8_INTERPRETER_BYTECODES_H_ | 239 #endif // V8_INTERPRETER_BYTECODES_H_ |
OLD | NEW |