| 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 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 139 V(StaNamedPropertySloppy, AccumulatorUse::kRead, OperandType::kReg, \ | 139 V(StaNamedPropertySloppy, AccumulatorUse::kRead, OperandType::kReg, \ |
| 140 OperandType::kIdx, OperandType::kIdx) \ | 140 OperandType::kIdx, OperandType::kIdx) \ |
| 141 V(StaNamedPropertyStrict, AccumulatorUse::kRead, OperandType::kReg, \ | 141 V(StaNamedPropertyStrict, AccumulatorUse::kRead, OperandType::kReg, \ |
| 142 OperandType::kIdx, OperandType::kIdx) \ | 142 OperandType::kIdx, OperandType::kIdx) \ |
| 143 V(StaKeyedPropertySloppy, AccumulatorUse::kRead, OperandType::kReg, \ | 143 V(StaKeyedPropertySloppy, AccumulatorUse::kRead, OperandType::kReg, \ |
| 144 OperandType::kReg, OperandType::kIdx) \ | 144 OperandType::kReg, OperandType::kIdx) \ |
| 145 V(StaKeyedPropertyStrict, 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, OperandType::kIdx) \ |
| 150 V(Sub, AccumulatorUse::kReadWrite, OperandType::kReg) \ | 150 V(Sub, AccumulatorUse::kReadWrite, OperandType::kReg, OperandType::kIdx) \ |
| 151 V(Mul, AccumulatorUse::kReadWrite, OperandType::kReg) \ | 151 V(Mul, AccumulatorUse::kReadWrite, OperandType::kReg, OperandType::kIdx) \ |
| 152 V(Div, AccumulatorUse::kReadWrite, OperandType::kReg) \ | 152 V(Div, AccumulatorUse::kReadWrite, OperandType::kReg, OperandType::kIdx) \ |
| 153 V(Mod, AccumulatorUse::kReadWrite, OperandType::kReg) \ | 153 V(Mod, AccumulatorUse::kReadWrite, OperandType::kReg, OperandType::kIdx) \ |
| 154 V(BitwiseOr, AccumulatorUse::kReadWrite, OperandType::kReg) \ | 154 V(BitwiseOr, AccumulatorUse::kReadWrite, OperandType::kReg, \ |
| 155 V(BitwiseXor, AccumulatorUse::kReadWrite, OperandType::kReg) \ | 155 OperandType::kIdx) \ |
| 156 V(BitwiseAnd, AccumulatorUse::kReadWrite, OperandType::kReg) \ | 156 V(BitwiseXor, AccumulatorUse::kReadWrite, OperandType::kReg, \ |
| 157 V(ShiftLeft, AccumulatorUse::kReadWrite, OperandType::kReg) \ | 157 OperandType::kIdx) \ |
| 158 V(ShiftRight, AccumulatorUse::kReadWrite, OperandType::kReg) \ | 158 V(BitwiseAnd, AccumulatorUse::kReadWrite, OperandType::kReg, \ |
| 159 V(ShiftRightLogical, AccumulatorUse::kReadWrite, OperandType::kReg) \ | 159 OperandType::kIdx) \ |
| 160 V(ShiftLeft, AccumulatorUse::kReadWrite, OperandType::kReg, \ |
| 161 OperandType::kIdx) \ |
| 162 V(ShiftRight, AccumulatorUse::kReadWrite, OperandType::kReg, \ |
| 163 OperandType::kIdx) \ |
| 164 V(ShiftRightLogical, AccumulatorUse::kReadWrite, OperandType::kReg, \ |
| 165 OperandType::kIdx) \ |
| 160 \ | 166 \ |
| 161 /* Binary operators with immediate operands */ \ | 167 /* Binary operators with immediate operands */ \ |
| 162 V(AddSmi, AccumulatorUse::kWrite, OperandType::kImm, OperandType::kReg) \ | 168 V(AddSmi, AccumulatorUse::kWrite, OperandType::kImm, OperandType::kReg) \ |
| 163 V(SubSmi, AccumulatorUse::kWrite, OperandType::kImm, OperandType::kReg) \ | 169 V(SubSmi, AccumulatorUse::kWrite, OperandType::kImm, OperandType::kReg) \ |
| 164 V(BitwiseOrSmi, AccumulatorUse::kWrite, OperandType::kImm, \ | 170 V(BitwiseOrSmi, AccumulatorUse::kWrite, OperandType::kImm, \ |
| 165 OperandType::kReg) \ | 171 OperandType::kReg) \ |
| 166 V(BitwiseAndSmi, AccumulatorUse::kWrite, OperandType::kImm, \ | 172 V(BitwiseAndSmi, AccumulatorUse::kWrite, OperandType::kImm, \ |
| 167 OperandType::kReg) \ | 173 OperandType::kReg) \ |
| 168 V(ShiftLeftSmi, AccumulatorUse::kWrite, OperandType::kImm, \ | 174 V(ShiftLeftSmi, AccumulatorUse::kWrite, OperandType::kImm, \ |
| 169 OperandType::kReg) \ | 175 OperandType::kReg) \ |
| 170 V(ShiftRightSmi, AccumulatorUse::kWrite, OperandType::kImm, \ | 176 V(ShiftRightSmi, AccumulatorUse::kWrite, OperandType::kImm, \ |
| 171 OperandType::kReg) \ | 177 OperandType::kReg) \ |
| 172 \ | 178 \ |
| 173 /* Unary Operators */ \ | 179 /* Unary Operators */ \ |
| 174 V(Inc, AccumulatorUse::kReadWrite) \ | 180 V(Inc, AccumulatorUse::kReadWrite, OperandType::kIdx) \ |
| 175 V(Dec, AccumulatorUse::kReadWrite) \ | 181 V(Dec, AccumulatorUse::kReadWrite, OperandType::kIdx) \ |
| 176 V(ToBooleanLogicalNot, AccumulatorUse::kReadWrite) \ | 182 V(ToBooleanLogicalNot, AccumulatorUse::kReadWrite) \ |
| 177 V(LogicalNot, AccumulatorUse::kReadWrite) \ | 183 V(LogicalNot, AccumulatorUse::kReadWrite) \ |
| 178 V(TypeOf, AccumulatorUse::kReadWrite) \ | 184 V(TypeOf, AccumulatorUse::kReadWrite) \ |
| 179 V(DeletePropertyStrict, AccumulatorUse::kReadWrite, OperandType::kReg) \ | 185 V(DeletePropertyStrict, AccumulatorUse::kReadWrite, OperandType::kReg) \ |
| 180 V(DeletePropertySloppy, AccumulatorUse::kReadWrite, OperandType::kReg) \ | 186 V(DeletePropertySloppy, AccumulatorUse::kReadWrite, OperandType::kReg) \ |
| 181 \ | 187 \ |
| 182 /* Call operations */ \ | 188 /* Call operations */ \ |
| 183 V(Call, AccumulatorUse::kWrite, OperandType::kReg, OperandType::kReg, \ | 189 V(Call, AccumulatorUse::kWrite, OperandType::kReg, OperandType::kReg, \ |
| 184 OperandType::kRegCount, OperandType::kIdx) \ | 190 OperandType::kRegCount, OperandType::kIdx) \ |
| 185 V(TailCall, AccumulatorUse::kWrite, OperandType::kReg, OperandType::kReg, \ | 191 V(TailCall, AccumulatorUse::kWrite, OperandType::kReg, OperandType::kReg, \ |
| (...skipping 389 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 575 std::ostream& operator<<(std::ostream& os, const AccumulatorUse& use); | 581 std::ostream& operator<<(std::ostream& os, const AccumulatorUse& use); |
| 576 std::ostream& operator<<(std::ostream& os, const OperandScale& operand_scale); | 582 std::ostream& operator<<(std::ostream& os, const OperandScale& operand_scale); |
| 577 std::ostream& operator<<(std::ostream& os, const OperandSize& operand_size); | 583 std::ostream& operator<<(std::ostream& os, const OperandSize& operand_size); |
| 578 std::ostream& operator<<(std::ostream& os, const OperandType& operand_type); | 584 std::ostream& operator<<(std::ostream& os, const OperandType& operand_type); |
| 579 | 585 |
| 580 } // namespace interpreter | 586 } // namespace interpreter |
| 581 } // namespace internal | 587 } // namespace internal |
| 582 } // namespace v8 | 588 } // namespace v8 |
| 583 | 589 |
| 584 #endif // V8_INTERPRETER_BYTECODES_H_ | 590 #endif // V8_INTERPRETER_BYTECODES_H_ |
| OLD | NEW |