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 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
82 V(BitwiseXor, OperandType::kReg8) \ | 82 V(BitwiseXor, OperandType::kReg8) \ |
83 V(BitwiseAnd, OperandType::kReg8) \ | 83 V(BitwiseAnd, OperandType::kReg8) \ |
84 V(ShiftLeft, OperandType::kReg8) \ | 84 V(ShiftLeft, OperandType::kReg8) \ |
85 V(ShiftRight, OperandType::kReg8) \ | 85 V(ShiftRight, OperandType::kReg8) \ |
86 V(ShiftRightLogical, OperandType::kReg8) \ | 86 V(ShiftRightLogical, OperandType::kReg8) \ |
87 \ | 87 \ |
88 /* Unary Operators */ \ | 88 /* Unary Operators */ \ |
89 V(LogicalNot, OperandType::kNone) \ | 89 V(LogicalNot, OperandType::kNone) \ |
90 V(TypeOf, OperandType::kNone) \ | 90 V(TypeOf, OperandType::kNone) \ |
91 \ | 91 \ |
92 /* Call operations */ \ | 92 /* Call operations. */ \ |
93 V(Call, OperandType::kReg8, OperandType::kReg8, OperandType::kCount8) \ | 93 V(Call, OperandType::kReg8, OperandType::kReg8, OperandType::kCount8) \ |
94 V(CallRuntime, OperandType::kIdx16, OperandType::kReg8, \ | 94 V(CallRuntime, OperandType::kIdx16, OperandType::kReg8, \ |
95 OperandType::kCount8) \ | 95 OperandType::kCount8) \ |
96 \ | 96 \ |
97 /* New operator */ \ | |
98 V(New, OperandType::kReg8, OperandType::kReg8, OperandType::kCount8) \ | |
99 \ | |
100 /* Test Operators */ \ | 97 /* Test Operators */ \ |
101 V(TestEqual, OperandType::kReg8) \ | 98 V(TestEqual, OperandType::kReg8) \ |
102 V(TestNotEqual, OperandType::kReg8) \ | 99 V(TestNotEqual, OperandType::kReg8) \ |
103 V(TestEqualStrict, OperandType::kReg8) \ | 100 V(TestEqualStrict, OperandType::kReg8) \ |
104 V(TestNotEqualStrict, OperandType::kReg8) \ | 101 V(TestNotEqualStrict, OperandType::kReg8) \ |
105 V(TestLessThan, OperandType::kReg8) \ | 102 V(TestLessThan, OperandType::kReg8) \ |
106 V(TestGreaterThan, OperandType::kReg8) \ | 103 V(TestGreaterThan, OperandType::kReg8) \ |
107 V(TestLessThanOrEqual, OperandType::kReg8) \ | 104 V(TestLessThanOrEqual, OperandType::kReg8) \ |
108 V(TestGreaterThanOrEqual, OperandType::kReg8) \ | 105 V(TestGreaterThanOrEqual, OperandType::kReg8) \ |
109 V(TestInstanceOf, OperandType::kReg8) \ | 106 V(TestInstanceOf, OperandType::kReg8) \ |
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
279 | 276 |
280 std::ostream& operator<<(std::ostream& os, const Bytecode& bytecode); | 277 std::ostream& operator<<(std::ostream& os, const Bytecode& bytecode); |
281 std::ostream& operator<<(std::ostream& os, const OperandType& operand_type); | 278 std::ostream& operator<<(std::ostream& os, const OperandType& operand_type); |
282 std::ostream& operator<<(std::ostream& os, const OperandSize& operand_type); | 279 std::ostream& operator<<(std::ostream& os, const OperandSize& operand_type); |
283 | 280 |
284 } // namespace interpreter | 281 } // namespace interpreter |
285 } // namespace internal | 282 } // namespace internal |
286 } // namespace v8 | 283 } // namespace v8 |
287 | 284 |
288 #endif // V8_INTERPRETER_BYTECODES_H_ | 285 #endif // V8_INTERPRETER_BYTECODES_H_ |
OLD | NEW |