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 20 matching lines...) Expand all Loading... |
31 V(LdaZero, AccumulatorUse::kWrite) \ | 31 V(LdaZero, AccumulatorUse::kWrite) \ |
32 V(LdaSmi, AccumulatorUse::kWrite, OperandType::kImm) \ | 32 V(LdaSmi, AccumulatorUse::kWrite, OperandType::kImm) \ |
33 V(LdaUndefined, AccumulatorUse::kWrite) \ | 33 V(LdaUndefined, AccumulatorUse::kWrite) \ |
34 V(LdaNull, AccumulatorUse::kWrite) \ | 34 V(LdaNull, AccumulatorUse::kWrite) \ |
35 V(LdaTheHole, AccumulatorUse::kWrite) \ | 35 V(LdaTheHole, AccumulatorUse::kWrite) \ |
36 V(LdaTrue, AccumulatorUse::kWrite) \ | 36 V(LdaTrue, AccumulatorUse::kWrite) \ |
37 V(LdaFalse, AccumulatorUse::kWrite) \ | 37 V(LdaFalse, AccumulatorUse::kWrite) \ |
38 V(LdaConstant, AccumulatorUse::kWrite, OperandType::kIdx) \ | 38 V(LdaConstant, AccumulatorUse::kWrite, OperandType::kIdx) \ |
39 \ | 39 \ |
40 /* Globals */ \ | 40 /* Globals */ \ |
41 V(LdaGlobal, AccumulatorUse::kWrite, OperandType::kIdx) \ | 41 V(LdaGlobal, AccumulatorUse::kWrite, OperandType::kIdx, OperandType::kIdx) \ |
42 V(LdaGlobalInsideTypeof, AccumulatorUse::kWrite, OperandType::kIdx) \ | 42 V(LdaGlobalInsideTypeof, AccumulatorUse::kWrite, OperandType::kIdx, \ |
| 43 OperandType::kIdx) \ |
43 V(StaGlobalSloppy, AccumulatorUse::kRead, OperandType::kIdx, \ | 44 V(StaGlobalSloppy, AccumulatorUse::kRead, OperandType::kIdx, \ |
44 OperandType::kIdx) \ | 45 OperandType::kIdx) \ |
45 V(StaGlobalStrict, AccumulatorUse::kRead, OperandType::kIdx, \ | 46 V(StaGlobalStrict, AccumulatorUse::kRead, OperandType::kIdx, \ |
46 OperandType::kIdx) \ | 47 OperandType::kIdx) \ |
47 \ | 48 \ |
48 /* Context operations */ \ | 49 /* Context operations */ \ |
49 V(PushContext, AccumulatorUse::kRead, OperandType::kRegOut) \ | 50 V(PushContext, AccumulatorUse::kRead, OperandType::kRegOut) \ |
50 V(PopContext, AccumulatorUse::kNone, OperandType::kReg) \ | 51 V(PopContext, AccumulatorUse::kNone, OperandType::kReg) \ |
51 V(LdaContextSlot, AccumulatorUse::kWrite, OperandType::kReg, \ | 52 V(LdaContextSlot, AccumulatorUse::kWrite, OperandType::kReg, \ |
52 OperandType::kIdx, OperandType::kUImm) \ | 53 OperandType::kIdx, OperandType::kUImm) \ |
(...skipping 685 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
738 #undef CONSTEXPR | 739 #undef CONSTEXPR |
739 | 740 |
740 V8_EXPORT_PRIVATE std::ostream& operator<<(std::ostream& os, | 741 V8_EXPORT_PRIVATE std::ostream& operator<<(std::ostream& os, |
741 const Bytecode& bytecode); | 742 const Bytecode& bytecode); |
742 | 743 |
743 } // namespace interpreter | 744 } // namespace interpreter |
744 } // namespace internal | 745 } // namespace internal |
745 } // namespace v8 | 746 } // namespace v8 |
746 | 747 |
747 #endif // V8_INTERPRETER_BYTECODES_H_ | 748 #endif // V8_INTERPRETER_BYTECODES_H_ |
OLD | NEW |