| 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 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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, \ | 90 V(LdrNamedProperty, AccumulatorUse::kNone, OperandType::kReg, \ |
| 91 OperandType::kIdx, OperandType::kIdx, OperandType::kRegOut) \ | 91 OperandType::kIdx, OperandType::kIdx, OperandType::kRegOut) \ |
| 92 V(LdaKeyedProperty, AccumulatorUse::kReadWrite, OperandType::kReg, \ | 92 V(LdaKeyedProperty, AccumulatorUse::kReadWrite, OperandType::kReg, \ |
| 93 OperandType::kIdx) \ | 93 OperandType::kIdx) \ |
| 94 V(LdrKeyedProperty, AccumulatorUse::kRead, OperandType::kReg, \ | 94 V(LdrKeyedProperty, AccumulatorUse::kRead, OperandType::kReg, \ |
| 95 OperandType::kIdx, OperandType::kRegOut) \ | 95 OperandType::kIdx, OperandType::kRegOut) \ |
| 96 \ | 96 \ |
| 97 /* Operations on module variables */ \ |
| 98 V(LdaModuleVariable, AccumulatorUse::kWrite, OperandType::kImm) \ |
| 99 V(StaModuleVariable, AccumulatorUse::kRead, OperandType::kImm) \ |
| 100 \ |
| 97 /* Propery stores (StoreIC) operations */ \ | 101 /* Propery stores (StoreIC) operations */ \ |
| 98 V(StaNamedPropertySloppy, AccumulatorUse::kRead, OperandType::kReg, \ | 102 V(StaNamedPropertySloppy, AccumulatorUse::kRead, OperandType::kReg, \ |
| 99 OperandType::kIdx, OperandType::kIdx) \ | 103 OperandType::kIdx, OperandType::kIdx) \ |
| 100 V(StaNamedPropertyStrict, AccumulatorUse::kRead, OperandType::kReg, \ | 104 V(StaNamedPropertyStrict, AccumulatorUse::kRead, OperandType::kReg, \ |
| 101 OperandType::kIdx, OperandType::kIdx) \ | 105 OperandType::kIdx, OperandType::kIdx) \ |
| 102 V(StaKeyedPropertySloppy, AccumulatorUse::kRead, OperandType::kReg, \ | 106 V(StaKeyedPropertySloppy, AccumulatorUse::kRead, OperandType::kReg, \ |
| 103 OperandType::kReg, OperandType::kIdx) \ | 107 OperandType::kReg, OperandType::kIdx) \ |
| 104 V(StaKeyedPropertyStrict, AccumulatorUse::kRead, OperandType::kReg, \ | 108 V(StaKeyedPropertyStrict, AccumulatorUse::kRead, OperandType::kReg, \ |
| 105 OperandType::kReg, OperandType::kIdx) \ | 109 OperandType::kReg, OperandType::kIdx) \ |
| 106 \ | 110 \ |
| (...skipping 633 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 740 #undef CONSTEXPR | 744 #undef CONSTEXPR |
| 741 | 745 |
| 742 V8_EXPORT_PRIVATE std::ostream& operator<<(std::ostream& os, | 746 V8_EXPORT_PRIVATE std::ostream& operator<<(std::ostream& os, |
| 743 const Bytecode& bytecode); | 747 const Bytecode& bytecode); |
| 744 | 748 |
| 745 } // namespace interpreter | 749 } // namespace interpreter |
| 746 } // namespace internal | 750 } // namespace internal |
| 747 } // namespace v8 | 751 } // namespace v8 |
| 748 | 752 |
| 749 #endif // V8_INTERPRETER_BYTECODES_H_ | 753 #endif // V8_INTERPRETER_BYTECODES_H_ |
| OLD | NEW |