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 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
80 /* Register-accumulator transfers */ \ | 80 /* Register-accumulator transfers */ \ |
81 V(Ldar, AccumulatorUse::kWrite, OperandType::kReg) \ | 81 V(Ldar, AccumulatorUse::kWrite, OperandType::kReg) \ |
82 V(Star, AccumulatorUse::kRead, OperandType::kRegOut) \ | 82 V(Star, AccumulatorUse::kRead, OperandType::kRegOut) \ |
83 \ | 83 \ |
84 /* Register-register transfers */ \ | 84 /* Register-register transfers */ \ |
85 V(Mov, AccumulatorUse::kNone, OperandType::kReg, OperandType::kRegOut) \ | 85 V(Mov, AccumulatorUse::kNone, OperandType::kReg, OperandType::kRegOut) \ |
86 \ | 86 \ |
87 /* Property loads (LoadIC) operations */ \ | 87 /* Property loads (LoadIC) operations */ \ |
88 V(LdaNamedProperty, AccumulatorUse::kWrite, OperandType::kReg, \ | 88 V(LdaNamedProperty, AccumulatorUse::kWrite, OperandType::kReg, \ |
89 OperandType::kIdx, OperandType::kIdx) \ | 89 OperandType::kIdx, OperandType::kIdx) \ |
90 V(LdrNamedProperty, AccumulatorUse::kNone, OperandType::kReg, \ | |
91 OperandType::kIdx, OperandType::kIdx, OperandType::kRegOut) \ | |
92 V(LdaKeyedProperty, AccumulatorUse::kReadWrite, OperandType::kReg, \ | 90 V(LdaKeyedProperty, AccumulatorUse::kReadWrite, OperandType::kReg, \ |
93 OperandType::kIdx) \ | 91 OperandType::kIdx) \ |
94 V(LdrKeyedProperty, AccumulatorUse::kRead, OperandType::kReg, \ | |
95 OperandType::kIdx, OperandType::kRegOut) \ | |
96 \ | 92 \ |
97 /* Operations on module variables */ \ | 93 /* Operations on module variables */ \ |
98 V(LdaModuleVariable, AccumulatorUse::kWrite, OperandType::kImm, \ | 94 V(LdaModuleVariable, AccumulatorUse::kWrite, OperandType::kImm, \ |
99 OperandType::kUImm) \ | 95 OperandType::kUImm) \ |
100 V(StaModuleVariable, AccumulatorUse::kRead, OperandType::kImm, \ | 96 V(StaModuleVariable, AccumulatorUse::kRead, OperandType::kImm, \ |
101 OperandType::kUImm) \ | 97 OperandType::kUImm) \ |
102 \ | 98 \ |
103 /* Propery stores (StoreIC) operations */ \ | 99 /* Propery stores (StoreIC) operations */ \ |
104 V(StaNamedPropertySloppy, AccumulatorUse::kRead, OperandType::kReg, \ | 100 V(StaNamedPropertySloppy, AccumulatorUse::kRead, OperandType::kReg, \ |
105 OperandType::kIdx, OperandType::kIdx) \ | 101 OperandType::kIdx, OperandType::kIdx) \ |
(...skipping 640 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
746 #undef CONSTEXPR | 742 #undef CONSTEXPR |
747 | 743 |
748 V8_EXPORT_PRIVATE std::ostream& operator<<(std::ostream& os, | 744 V8_EXPORT_PRIVATE std::ostream& operator<<(std::ostream& os, |
749 const Bytecode& bytecode); | 745 const Bytecode& bytecode); |
750 | 746 |
751 } // namespace interpreter | 747 } // namespace interpreter |
752 } // namespace internal | 748 } // namespace internal |
753 } // namespace v8 | 749 } // namespace v8 |
754 | 750 |
755 #endif // V8_INTERPRETER_BYTECODES_H_ | 751 #endif // V8_INTERPRETER_BYTECODES_H_ |
OLD | NEW |