| 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 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 158 V(BitwiseAnd, AccumulatorUse::kReadWrite, OperandType::kReg, \ | 158 V(BitwiseAnd, AccumulatorUse::kReadWrite, OperandType::kReg, \ |
| 159 OperandType::kIdx) \ | 159 OperandType::kIdx) \ |
| 160 V(ShiftLeft, AccumulatorUse::kReadWrite, OperandType::kReg, \ | 160 V(ShiftLeft, AccumulatorUse::kReadWrite, OperandType::kReg, \ |
| 161 OperandType::kIdx) \ | 161 OperandType::kIdx) \ |
| 162 V(ShiftRight, AccumulatorUse::kReadWrite, OperandType::kReg, \ | 162 V(ShiftRight, AccumulatorUse::kReadWrite, OperandType::kReg, \ |
| 163 OperandType::kIdx) \ | 163 OperandType::kIdx) \ |
| 164 V(ShiftRightLogical, AccumulatorUse::kReadWrite, OperandType::kReg, \ | 164 V(ShiftRightLogical, AccumulatorUse::kReadWrite, OperandType::kReg, \ |
| 165 OperandType::kIdx) \ | 165 OperandType::kIdx) \ |
| 166 \ | 166 \ |
| 167 /* Binary operators with immediate operands */ \ | 167 /* Binary operators with immediate operands */ \ |
| 168 V(AddSmi, AccumulatorUse::kWrite, OperandType::kImm, OperandType::kReg) \ | 168 V(AddSmi, AccumulatorUse::kWrite, OperandType::kImm, OperandType::kReg, \ |
| 169 V(SubSmi, AccumulatorUse::kWrite, OperandType::kImm, OperandType::kReg) \ | 169 OperandType::kIdx) \ |
| 170 V(SubSmi, AccumulatorUse::kWrite, OperandType::kImm, OperandType::kReg, \ |
| 171 OperandType::kIdx) \ |
| 170 V(BitwiseOrSmi, AccumulatorUse::kWrite, OperandType::kImm, \ | 172 V(BitwiseOrSmi, AccumulatorUse::kWrite, OperandType::kImm, \ |
| 171 OperandType::kReg) \ | 173 OperandType::kReg, OperandType::kIdx) \ |
| 172 V(BitwiseAndSmi, AccumulatorUse::kWrite, OperandType::kImm, \ | 174 V(BitwiseAndSmi, AccumulatorUse::kWrite, OperandType::kImm, \ |
| 173 OperandType::kReg) \ | 175 OperandType::kReg, OperandType::kIdx) \ |
| 174 V(ShiftLeftSmi, AccumulatorUse::kWrite, OperandType::kImm, \ | 176 V(ShiftLeftSmi, AccumulatorUse::kWrite, OperandType::kImm, \ |
| 175 OperandType::kReg) \ | 177 OperandType::kReg, OperandType::kIdx) \ |
| 176 V(ShiftRightSmi, AccumulatorUse::kWrite, OperandType::kImm, \ | 178 V(ShiftRightSmi, AccumulatorUse::kWrite, OperandType::kImm, \ |
| 177 OperandType::kReg) \ | 179 OperandType::kReg, OperandType::kIdx) \ |
| 178 \ | 180 \ |
| 179 /* Unary Operators */ \ | 181 /* Unary Operators */ \ |
| 180 V(Inc, AccumulatorUse::kReadWrite, OperandType::kIdx) \ | 182 V(Inc, AccumulatorUse::kReadWrite, OperandType::kIdx) \ |
| 181 V(Dec, AccumulatorUse::kReadWrite, OperandType::kIdx) \ | 183 V(Dec, AccumulatorUse::kReadWrite, OperandType::kIdx) \ |
| 182 V(ToBooleanLogicalNot, AccumulatorUse::kReadWrite) \ | 184 V(ToBooleanLogicalNot, AccumulatorUse::kReadWrite) \ |
| 183 V(LogicalNot, AccumulatorUse::kReadWrite) \ | 185 V(LogicalNot, AccumulatorUse::kReadWrite) \ |
| 184 V(TypeOf, AccumulatorUse::kReadWrite) \ | 186 V(TypeOf, AccumulatorUse::kReadWrite) \ |
| 185 V(DeletePropertyStrict, AccumulatorUse::kReadWrite, OperandType::kReg) \ | 187 V(DeletePropertyStrict, AccumulatorUse::kReadWrite, OperandType::kReg) \ |
| 186 V(DeletePropertySloppy, AccumulatorUse::kReadWrite, OperandType::kReg) \ | 188 V(DeletePropertySloppy, AccumulatorUse::kReadWrite, OperandType::kReg) \ |
| 187 \ | 189 \ |
| (...skipping 397 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 585 std::ostream& operator<<(std::ostream& os, const AccumulatorUse& use); | 587 std::ostream& operator<<(std::ostream& os, const AccumulatorUse& use); |
| 586 std::ostream& operator<<(std::ostream& os, const OperandScale& operand_scale); | 588 std::ostream& operator<<(std::ostream& os, const OperandScale& operand_scale); |
| 587 std::ostream& operator<<(std::ostream& os, const OperandSize& operand_size); | 589 std::ostream& operator<<(std::ostream& os, const OperandSize& operand_size); |
| 588 std::ostream& operator<<(std::ostream& os, const OperandType& operand_type); | 590 std::ostream& operator<<(std::ostream& os, const OperandType& operand_type); |
| 589 | 591 |
| 590 } // namespace interpreter | 592 } // namespace interpreter |
| 591 } // namespace internal | 593 } // namespace internal |
| 592 } // namespace v8 | 594 } // namespace v8 |
| 593 | 595 |
| 594 #endif // V8_INTERPRETER_BYTECODES_H_ | 596 #endif // V8_INTERPRETER_BYTECODES_H_ |
| OLD | NEW |