| 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 <iosfwd> | 8 #include <iosfwd> |
| 9 | 9 |
| 10 // Clients of this interface shouldn't depend on lots of interpreter internals. | 10 // Clients of this interface shouldn't depend on lots of interpreter internals. |
| (...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 118 V(StaLookupSlotSloppy, AccumulatorUse::kReadWrite, OperandType::kIdx) \ | 118 V(StaLookupSlotSloppy, AccumulatorUse::kReadWrite, OperandType::kIdx) \ |
| 119 V(StaLookupSlotStrict, AccumulatorUse::kReadWrite, OperandType::kIdx) \ | 119 V(StaLookupSlotStrict, AccumulatorUse::kReadWrite, OperandType::kIdx) \ |
| 120 \ | 120 \ |
| 121 /* Register-accumulator transfers */ \ | 121 /* Register-accumulator transfers */ \ |
| 122 V(Ldar, AccumulatorUse::kWrite, OperandType::kReg) \ | 122 V(Ldar, AccumulatorUse::kWrite, OperandType::kReg) \ |
| 123 V(Star, AccumulatorUse::kRead, OperandType::kRegOut) \ | 123 V(Star, AccumulatorUse::kRead, OperandType::kRegOut) \ |
| 124 \ | 124 \ |
| 125 /* Register-register transfers */ \ | 125 /* Register-register transfers */ \ |
| 126 V(Mov, AccumulatorUse::kNone, OperandType::kReg, OperandType::kRegOut) \ | 126 V(Mov, AccumulatorUse::kNone, OperandType::kReg, OperandType::kRegOut) \ |
| 127 \ | 127 \ |
| 128 /* LoadIC operations */ \ | 128 /* Property loads (LoadIC) operations */ \ |
| 129 V(LoadIC, AccumulatorUse::kWrite, OperandType::kReg, OperandType::kIdx, \ | 129 V(LdaNamedProperty, AccumulatorUse::kWrite, OperandType::kReg, \ |
| 130 OperandType::kIdx) \ | 130 OperandType::kIdx, OperandType::kIdx) \ |
| 131 V(LdrNamedProperty, AccumulatorUse::kNone, OperandType::kReg, \ | 131 V(LdrNamedProperty, AccumulatorUse::kNone, OperandType::kReg, \ |
| 132 OperandType::kIdx, OperandType::kIdx, OperandType::kRegOut) \ | 132 OperandType::kIdx, OperandType::kIdx, OperandType::kRegOut) \ |
| 133 V(KeyedLoadIC, AccumulatorUse::kReadWrite, OperandType::kReg, \ | 133 V(LdaKeyedProperty, AccumulatorUse::kReadWrite, OperandType::kReg, \ |
| 134 OperandType::kIdx) \ | 134 OperandType::kIdx) \ |
| 135 V(LdrKeyedProperty, AccumulatorUse::kRead, OperandType::kReg, \ | 135 V(LdrKeyedProperty, AccumulatorUse::kRead, OperandType::kReg, \ |
| 136 OperandType::kIdx, OperandType::kRegOut) \ | 136 OperandType::kIdx, OperandType::kRegOut) \ |
| 137 \ | 137 \ |
| 138 /* StoreIC operations */ \ | 138 /* Propery stores (StoreIC) operations */ \ |
| 139 V(StoreICSloppy, AccumulatorUse::kRead, OperandType::kReg, \ | 139 V(StaNamedPropertySloppy, AccumulatorUse::kRead, OperandType::kReg, \ |
| 140 OperandType::kIdx, OperandType::kIdx) \ | 140 OperandType::kIdx, OperandType::kIdx) \ |
| 141 V(StoreICStrict, AccumulatorUse::kRead, OperandType::kReg, \ | 141 V(StaNamedPropertyStrict, AccumulatorUse::kRead, OperandType::kReg, \ |
| 142 OperandType::kIdx, OperandType::kIdx) \ | 142 OperandType::kIdx, OperandType::kIdx) \ |
| 143 V(KeyedStoreICSloppy, AccumulatorUse::kRead, OperandType::kReg, \ | 143 V(StaKeyedPropertySloppy, AccumulatorUse::kRead, OperandType::kReg, \ |
| 144 OperandType::kReg, OperandType::kIdx) \ | 144 OperandType::kReg, OperandType::kIdx) \ |
| 145 V(KeyedStoreICStrict, AccumulatorUse::kRead, OperandType::kReg, \ | 145 V(StaKeyedPropertyStrict, AccumulatorUse::kRead, OperandType::kReg, \ |
| 146 OperandType::kReg, OperandType::kIdx) \ | 146 OperandType::kReg, OperandType::kIdx) \ |
| 147 \ | 147 \ |
| 148 /* Binary Operators */ \ | 148 /* Binary Operators */ \ |
| 149 V(Add, AccumulatorUse::kReadWrite, OperandType::kReg) \ | 149 V(Add, AccumulatorUse::kReadWrite, OperandType::kReg) \ |
| 150 V(Sub, AccumulatorUse::kReadWrite, OperandType::kReg) \ | 150 V(Sub, AccumulatorUse::kReadWrite, OperandType::kReg) \ |
| 151 V(Mul, AccumulatorUse::kReadWrite, OperandType::kReg) \ | 151 V(Mul, AccumulatorUse::kReadWrite, OperandType::kReg) \ |
| 152 V(Div, AccumulatorUse::kReadWrite, OperandType::kReg) \ | 152 V(Div, AccumulatorUse::kReadWrite, OperandType::kReg) \ |
| 153 V(Mod, AccumulatorUse::kReadWrite, OperandType::kReg) \ | 153 V(Mod, AccumulatorUse::kReadWrite, OperandType::kReg) \ |
| 154 V(BitwiseOr, AccumulatorUse::kReadWrite, OperandType::kReg) \ | 154 V(BitwiseOr, AccumulatorUse::kReadWrite, OperandType::kReg) \ |
| 155 V(BitwiseXor, AccumulatorUse::kReadWrite, OperandType::kReg) \ | 155 V(BitwiseXor, AccumulatorUse::kReadWrite, OperandType::kReg) \ |
| (...skipping 507 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 663 std::ostream& operator<<(std::ostream& os, const AccumulatorUse& use); | 663 std::ostream& operator<<(std::ostream& os, const AccumulatorUse& use); |
| 664 std::ostream& operator<<(std::ostream& os, const OperandScale& operand_scale); | 664 std::ostream& operator<<(std::ostream& os, const OperandScale& operand_scale); |
| 665 std::ostream& operator<<(std::ostream& os, const OperandSize& operand_size); | 665 std::ostream& operator<<(std::ostream& os, const OperandSize& operand_size); |
| 666 std::ostream& operator<<(std::ostream& os, const OperandType& operand_type); | 666 std::ostream& operator<<(std::ostream& os, const OperandType& operand_type); |
| 667 | 667 |
| 668 } // namespace interpreter | 668 } // namespace interpreter |
| 669 } // namespace internal | 669 } // namespace internal |
| 670 } // namespace v8 | 670 } // namespace v8 |
| 671 | 671 |
| 672 #endif // V8_INTERPRETER_BYTECODES_H_ | 672 #endif // V8_INTERPRETER_BYTECODES_H_ |
| OLD | NEW |