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 196 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
207 V(TestEqualStrictNoFeedback, AccumulatorUse::kReadWrite, OperandType::kReg) \ | 207 V(TestEqualStrictNoFeedback, AccumulatorUse::kReadWrite, OperandType::kReg) \ |
208 V(TestInstanceOf, AccumulatorUse::kReadWrite, OperandType::kReg) \ | 208 V(TestInstanceOf, AccumulatorUse::kReadWrite, OperandType::kReg) \ |
209 V(TestIn, AccumulatorUse::kReadWrite, OperandType::kReg) \ | 209 V(TestIn, AccumulatorUse::kReadWrite, OperandType::kReg) \ |
210 V(TestUndetectable, AccumulatorUse::kReadWrite) \ | 210 V(TestUndetectable, AccumulatorUse::kReadWrite) \ |
211 V(TestNull, AccumulatorUse::kReadWrite) \ | 211 V(TestNull, AccumulatorUse::kReadWrite) \ |
212 V(TestUndefined, AccumulatorUse::kReadWrite) \ | 212 V(TestUndefined, AccumulatorUse::kReadWrite) \ |
213 V(TestTypeOf, AccumulatorUse::kReadWrite, OperandType::kFlag8) \ | 213 V(TestTypeOf, AccumulatorUse::kReadWrite, OperandType::kFlag8) \ |
214 \ | 214 \ |
215 /* Cast operators */ \ | 215 /* Cast operators */ \ |
216 V(ToName, AccumulatorUse::kRead, OperandType::kRegOut) \ | 216 V(ToName, AccumulatorUse::kRead, OperandType::kRegOut) \ |
217 V(ToNumber, AccumulatorUse::kRead, OperandType::kRegOut) \ | 217 V(ToNumber, AccumulatorUse::kRead, OperandType::kRegOut, OperandType::kIdx) \ |
218 V(ToObject, AccumulatorUse::kRead, OperandType::kRegOut) \ | 218 V(ToObject, AccumulatorUse::kRead, OperandType::kRegOut) \ |
219 \ | 219 \ |
220 /* Literals */ \ | 220 /* Literals */ \ |
221 V(CreateRegExpLiteral, AccumulatorUse::kWrite, OperandType::kIdx, \ | 221 V(CreateRegExpLiteral, AccumulatorUse::kWrite, OperandType::kIdx, \ |
222 OperandType::kIdx, OperandType::kFlag8) \ | 222 OperandType::kIdx, OperandType::kFlag8) \ |
223 V(CreateArrayLiteral, AccumulatorUse::kWrite, OperandType::kIdx, \ | 223 V(CreateArrayLiteral, AccumulatorUse::kWrite, OperandType::kIdx, \ |
224 OperandType::kIdx, OperandType::kFlag8) \ | 224 OperandType::kIdx, OperandType::kFlag8) \ |
225 V(CreateObjectLiteral, AccumulatorUse::kNone, OperandType::kIdx, \ | 225 V(CreateObjectLiteral, AccumulatorUse::kNone, OperandType::kIdx, \ |
226 OperandType::kIdx, OperandType::kFlag8, OperandType::kRegOut) \ | 226 OperandType::kIdx, OperandType::kFlag8, OperandType::kRegOut) \ |
227 \ | 227 \ |
(...skipping 613 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
841 }; | 841 }; |
842 | 842 |
843 V8_EXPORT_PRIVATE std::ostream& operator<<(std::ostream& os, | 843 V8_EXPORT_PRIVATE std::ostream& operator<<(std::ostream& os, |
844 const Bytecode& bytecode); | 844 const Bytecode& bytecode); |
845 | 845 |
846 } // namespace interpreter | 846 } // namespace interpreter |
847 } // namespace internal | 847 } // namespace internal |
848 } // namespace v8 | 848 } // namespace v8 |
849 | 849 |
850 #endif // V8_INTERPRETER_BYTECODES_H_ | 850 #endif // V8_INTERPRETER_BYTECODES_H_ |
OLD | NEW |