| 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::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 /* Call operations. */ \ | 68 /* Call operations. */ \ |
| 69 V(Call, OperandType::kReg8, OperandType::kReg8, OperandType::kCount8) \ | 69 V(Call, OperandType::kReg8, OperandType::kReg8, OperandType::kCount8) \ |
| 70 V(CallRuntime, OperandType::kIdx16, OperandType::kReg8, \ | |
| 71 OperandType::kCount8) \ | |
| 72 \ | 70 \ |
| 73 /* Test Operators */ \ | 71 /* Test Operators */ \ |
| 74 V(TestEqual, OperandType::kReg8) \ | 72 V(TestEqual, OperandType::kReg8) \ |
| 75 V(TestNotEqual, OperandType::kReg8) \ | 73 V(TestNotEqual, OperandType::kReg8) \ |
| 76 V(TestEqualStrict, OperandType::kReg8) \ | 74 V(TestEqualStrict, OperandType::kReg8) \ |
| 77 V(TestNotEqualStrict, OperandType::kReg8) \ | 75 V(TestNotEqualStrict, OperandType::kReg8) \ |
| 78 V(TestLessThan, OperandType::kReg8) \ | 76 V(TestLessThan, OperandType::kReg8) \ |
| 79 V(TestGreaterThan, OperandType::kReg8) \ | 77 V(TestGreaterThan, OperandType::kReg8) \ |
| 80 V(TestLessThanOrEqual, OperandType::kReg8) \ | 78 V(TestLessThanOrEqual, OperandType::kReg8) \ |
| 81 V(TestGreaterThanOrEqual, OperandType::kReg8) \ | 79 V(TestGreaterThanOrEqual, OperandType::kReg8) \ |
| (...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 226 | 224 |
| 227 std::ostream& operator<<(std::ostream& os, const Bytecode& bytecode); | 225 std::ostream& operator<<(std::ostream& os, const Bytecode& bytecode); |
| 228 std::ostream& operator<<(std::ostream& os, const OperandType& operand_type); | 226 std::ostream& operator<<(std::ostream& os, const OperandType& operand_type); |
| 229 std::ostream& operator<<(std::ostream& os, const OperandSize& operand_type); | 227 std::ostream& operator<<(std::ostream& os, const OperandSize& operand_type); |
| 230 | 228 |
| 231 } // namespace interpreter | 229 } // namespace interpreter |
| 232 } // namespace internal | 230 } // namespace internal |
| 233 } // namespace v8 | 231 } // namespace v8 |
| 234 | 232 |
| 235 #endif // V8_INTERPRETER_BYTECODES_H_ | 233 #endif // V8_INTERPRETER_BYTECODES_H_ |
| OLD | NEW |