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 <cstdint> | 8 #include <cstdint> |
9 #include <iosfwd> | 9 #include <iosfwd> |
10 #include <string> | 10 #include <string> |
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
154 OperandType::kRegList, OperandType::kRegCount) \ | 154 OperandType::kRegList, OperandType::kRegCount) \ |
155 V(CallRuntimeForPair, AccumulatorUse::kNone, OperandType::kRuntimeId, \ | 155 V(CallRuntimeForPair, AccumulatorUse::kNone, OperandType::kRuntimeId, \ |
156 OperandType::kRegList, OperandType::kRegCount, OperandType::kRegOutPair) \ | 156 OperandType::kRegList, OperandType::kRegCount, OperandType::kRegOutPair) \ |
157 V(CallJSRuntime, AccumulatorUse::kWrite, OperandType::kIdx, \ | 157 V(CallJSRuntime, AccumulatorUse::kWrite, OperandType::kIdx, \ |
158 OperandType::kRegList, OperandType::kRegCount) \ | 158 OperandType::kRegList, OperandType::kRegCount) \ |
159 \ | 159 \ |
160 /* Intrinsics */ \ | 160 /* Intrinsics */ \ |
161 V(InvokeIntrinsic, AccumulatorUse::kWrite, OperandType::kIntrinsicId, \ | 161 V(InvokeIntrinsic, AccumulatorUse::kWrite, OperandType::kIntrinsicId, \ |
162 OperandType::kRegList, OperandType::kRegCount) \ | 162 OperandType::kRegList, OperandType::kRegCount) \ |
163 \ | 163 \ |
164 /* New operator */ \ | 164 /* New operators */ \ |
165 V(New, AccumulatorUse::kReadWrite, OperandType::kReg, OperandType::kRegList, \ | 165 V(New, AccumulatorUse::kReadWrite, OperandType::kReg, OperandType::kRegList, \ |
166 OperandType::kRegCount, OperandType::kIdx) \ | 166 OperandType::kRegCount, OperandType::kIdx) \ |
| 167 V(NewWithSpread, AccumulatorUse::kWrite, OperandType::kRegList, \ |
| 168 OperandType::kRegCount) \ |
167 \ | 169 \ |
168 /* Test Operators */ \ | 170 /* Test Operators */ \ |
169 V(TestEqual, AccumulatorUse::kReadWrite, OperandType::kReg, \ | 171 V(TestEqual, AccumulatorUse::kReadWrite, OperandType::kReg, \ |
170 OperandType::kIdx) \ | 172 OperandType::kIdx) \ |
171 V(TestNotEqual, AccumulatorUse::kReadWrite, OperandType::kReg, \ | 173 V(TestNotEqual, AccumulatorUse::kReadWrite, OperandType::kReg, \ |
172 OperandType::kIdx) \ | 174 OperandType::kIdx) \ |
173 V(TestEqualStrict, AccumulatorUse::kReadWrite, OperandType::kReg, \ | 175 V(TestEqualStrict, AccumulatorUse::kReadWrite, OperandType::kReg, \ |
174 OperandType::kIdx) \ | 176 OperandType::kIdx) \ |
175 V(TestLessThan, AccumulatorUse::kReadWrite, OperandType::kReg, \ | 177 V(TestLessThan, AccumulatorUse::kReadWrite, OperandType::kReg, \ |
176 OperandType::kIdx) \ | 178 OperandType::kIdx) \ |
(...skipping 576 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
753 #undef CONSTEXPR | 755 #undef CONSTEXPR |
754 | 756 |
755 V8_EXPORT_PRIVATE std::ostream& operator<<(std::ostream& os, | 757 V8_EXPORT_PRIVATE std::ostream& operator<<(std::ostream& os, |
756 const Bytecode& bytecode); | 758 const Bytecode& bytecode); |
757 | 759 |
758 } // namespace interpreter | 760 } // namespace interpreter |
759 } // namespace internal | 761 } // namespace internal |
760 } // namespace v8 | 762 } // namespace v8 |
761 | 763 |
762 #endif // V8_INTERPRETER_BYTECODES_H_ | 764 #endif // V8_INTERPRETER_BYTECODES_H_ |
OLD | NEW |