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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
60 \ | 60 \ |
61 /* Binary Operators */ \ | 61 /* Binary Operators */ \ |
62 V(Add, OperandType::kReg) \ | 62 V(Add, OperandType::kReg) \ |
63 V(Sub, OperandType::kReg) \ | 63 V(Sub, OperandType::kReg) \ |
64 V(Mul, OperandType::kReg) \ | 64 V(Mul, OperandType::kReg) \ |
65 V(Div, OperandType::kReg) \ | 65 V(Div, OperandType::kReg) \ |
66 V(Mod, OperandType::kReg) \ | 66 V(Mod, OperandType::kReg) \ |
67 \ | 67 \ |
68 /* Call operations. */ \ | 68 /* Call operations. */ \ |
69 V(Call, OperandType::kReg, OperandType::kReg, OperandType::kCount) \ | 69 V(Call, OperandType::kReg, OperandType::kReg, OperandType::kCount) \ |
| 70 V(CallRuntime, OperandType::kWideIdx, OperandType::kReg, \ |
| 71 OperandType::kCount) \ |
70 \ | 72 \ |
71 /* Test Operators */ \ | 73 /* Test Operators */ \ |
72 V(TestEqual, OperandType::kReg) \ | 74 V(TestEqual, OperandType::kReg) \ |
73 V(TestNotEqual, OperandType::kReg) \ | 75 V(TestNotEqual, OperandType::kReg) \ |
74 V(TestEqualStrict, OperandType::kReg) \ | 76 V(TestEqualStrict, OperandType::kReg) \ |
75 V(TestNotEqualStrict, OperandType::kReg) \ | 77 V(TestNotEqualStrict, OperandType::kReg) \ |
76 V(TestLessThan, OperandType::kReg) \ | 78 V(TestLessThan, OperandType::kReg) \ |
77 V(TestGreaterThan, OperandType::kReg) \ | 79 V(TestGreaterThan, OperandType::kReg) \ |
78 V(TestLessThanEqual, OperandType::kReg) \ | 80 V(TestLessThanEqual, OperandType::kReg) \ |
79 V(TestGreaterThanEqual, OperandType::kReg) \ | 81 V(TestGreaterThanEqual, OperandType::kReg) \ |
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
209 }; | 211 }; |
210 | 212 |
211 std::ostream& operator<<(std::ostream& os, const Bytecode& bytecode); | 213 std::ostream& operator<<(std::ostream& os, const Bytecode& bytecode); |
212 std::ostream& operator<<(std::ostream& os, const OperandType& operand_type); | 214 std::ostream& operator<<(std::ostream& os, const OperandType& operand_type); |
213 | 215 |
214 } // namespace interpreter | 216 } // namespace interpreter |
215 } // namespace internal | 217 } // namespace internal |
216 } // namespace v8 | 218 } // namespace v8 |
217 | 219 |
218 #endif // V8_INTERPRETER_BYTECODES_H_ | 220 #endif // V8_INTERPRETER_BYTECODES_H_ |
OLD | NEW |