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 12 matching lines...) Expand all Loading... |
23 V(Reg, OperandTypeInfo::kScalableSignedByte) \ | 23 V(Reg, OperandTypeInfo::kScalableSignedByte) \ |
24 V(RegPair, OperandTypeInfo::kScalableSignedByte) | 24 V(RegPair, OperandTypeInfo::kScalableSignedByte) |
25 | 25 |
26 #define REGISTER_OUTPUT_OPERAND_TYPE_LIST(V) \ | 26 #define REGISTER_OUTPUT_OPERAND_TYPE_LIST(V) \ |
27 V(RegOut, OperandTypeInfo::kScalableSignedByte) \ | 27 V(RegOut, OperandTypeInfo::kScalableSignedByte) \ |
28 V(RegOutPair, OperandTypeInfo::kScalableSignedByte) \ | 28 V(RegOutPair, OperandTypeInfo::kScalableSignedByte) \ |
29 V(RegOutTriple, OperandTypeInfo::kScalableSignedByte) | 29 V(RegOutTriple, OperandTypeInfo::kScalableSignedByte) |
30 | 30 |
31 #define SCALAR_OPERAND_TYPE_LIST(V) \ | 31 #define SCALAR_OPERAND_TYPE_LIST(V) \ |
32 V(Flag8, OperandTypeInfo::kFixedUnsignedByte) \ | 32 V(Flag8, OperandTypeInfo::kFixedUnsignedByte) \ |
33 V(IntrinsicId, OperandTypeInfo::kFixedUnsignedByte) \ | |
34 V(Idx, OperandTypeInfo::kScalableUnsignedByte) \ | 33 V(Idx, OperandTypeInfo::kScalableUnsignedByte) \ |
35 V(Imm, OperandTypeInfo::kScalableSignedByte) \ | 34 V(Imm, OperandTypeInfo::kScalableSignedByte) \ |
36 V(RegCount, OperandTypeInfo::kScalableUnsignedByte) \ | 35 V(RegCount, OperandTypeInfo::kScalableUnsignedByte) \ |
37 V(RuntimeId, OperandTypeInfo::kFixedUnsignedShort) | 36 V(RuntimeId, OperandTypeInfo::kFixedUnsignedShort) |
38 | 37 |
39 #define REGISTER_OPERAND_TYPE_LIST(V) \ | 38 #define REGISTER_OPERAND_TYPE_LIST(V) \ |
40 REGISTER_INPUT_OPERAND_TYPE_LIST(V) \ | 39 REGISTER_INPUT_OPERAND_TYPE_LIST(V) \ |
41 REGISTER_OUTPUT_OPERAND_TYPE_LIST(V) | 40 REGISTER_OUTPUT_OPERAND_TYPE_LIST(V) |
42 | 41 |
43 #define NON_REGISTER_OPERAND_TYPE_LIST(V) \ | 42 #define NON_REGISTER_OPERAND_TYPE_LIST(V) \ |
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
174 V(TailCall, AccumulatorUse::kWrite, OperandType::kReg, OperandType::kReg, \ | 173 V(TailCall, AccumulatorUse::kWrite, OperandType::kReg, OperandType::kReg, \ |
175 OperandType::kRegCount, OperandType::kIdx) \ | 174 OperandType::kRegCount, OperandType::kIdx) \ |
176 V(CallRuntime, AccumulatorUse::kWrite, OperandType::kRuntimeId, \ | 175 V(CallRuntime, AccumulatorUse::kWrite, OperandType::kRuntimeId, \ |
177 OperandType::kMaybeReg, OperandType::kRegCount) \ | 176 OperandType::kMaybeReg, OperandType::kRegCount) \ |
178 V(CallRuntimeForPair, AccumulatorUse::kNone, OperandType::kRuntimeId, \ | 177 V(CallRuntimeForPair, AccumulatorUse::kNone, OperandType::kRuntimeId, \ |
179 OperandType::kMaybeReg, OperandType::kRegCount, OperandType::kRegOutPair) \ | 178 OperandType::kMaybeReg, OperandType::kRegCount, OperandType::kRegOutPair) \ |
180 V(CallJSRuntime, AccumulatorUse::kWrite, OperandType::kIdx, \ | 179 V(CallJSRuntime, AccumulatorUse::kWrite, OperandType::kIdx, \ |
181 OperandType::kReg, OperandType::kRegCount) \ | 180 OperandType::kReg, OperandType::kRegCount) \ |
182 \ | 181 \ |
183 /* Intrinsics */ \ | 182 /* Intrinsics */ \ |
184 V(InvokeIntrinsic, AccumulatorUse::kWrite, OperandType::kIntrinsicId, \ | 183 V(InvokeIntrinsic, AccumulatorUse::kWrite, OperandType::kRuntimeId, \ |
185 OperandType::kMaybeReg, OperandType::kRegCount) \ | 184 OperandType::kMaybeReg, OperandType::kRegCount) \ |
186 \ | 185 \ |
187 /* New operator */ \ | 186 /* New operator */ \ |
188 V(New, AccumulatorUse::kReadWrite, OperandType::kReg, \ | 187 V(New, AccumulatorUse::kReadWrite, OperandType::kReg, \ |
189 OperandType::kMaybeReg, OperandType::kRegCount) \ | 188 OperandType::kMaybeReg, OperandType::kRegCount) \ |
190 \ | 189 \ |
191 /* Test Operators */ \ | 190 /* Test Operators */ \ |
192 V(TestEqual, AccumulatorUse::kReadWrite, OperandType::kReg) \ | 191 V(TestEqual, AccumulatorUse::kReadWrite, OperandType::kReg) \ |
193 V(TestNotEqual, AccumulatorUse::kReadWrite, OperandType::kReg) \ | 192 V(TestNotEqual, AccumulatorUse::kReadWrite, OperandType::kReg) \ |
194 V(TestEqualStrict, AccumulatorUse::kReadWrite, OperandType::kReg) \ | 193 V(TestEqualStrict, AccumulatorUse::kReadWrite, OperandType::kReg) \ |
(...skipping 480 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
675 std::ostream& operator<<(std::ostream& os, const AccumulatorUse& use); | 674 std::ostream& operator<<(std::ostream& os, const AccumulatorUse& use); |
676 std::ostream& operator<<(std::ostream& os, const OperandScale& operand_scale); | 675 std::ostream& operator<<(std::ostream& os, const OperandScale& operand_scale); |
677 std::ostream& operator<<(std::ostream& os, const OperandSize& operand_size); | 676 std::ostream& operator<<(std::ostream& os, const OperandSize& operand_size); |
678 std::ostream& operator<<(std::ostream& os, const OperandType& operand_type); | 677 std::ostream& operator<<(std::ostream& os, const OperandType& operand_type); |
679 | 678 |
680 } // namespace interpreter | 679 } // namespace interpreter |
681 } // namespace internal | 680 } // namespace internal |
682 } // namespace v8 | 681 } // namespace v8 |
683 | 682 |
684 #endif // V8_INTERPRETER_BYTECODES_H_ | 683 #endif // V8_INTERPRETER_BYTECODES_H_ |
OLD | NEW |