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 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
143 V(BitwiseOr, AccumulatorUse::kReadWrite, OperandType::kReg) \ | 143 V(BitwiseOr, AccumulatorUse::kReadWrite, OperandType::kReg) \ |
144 V(BitwiseXor, AccumulatorUse::kReadWrite, OperandType::kReg) \ | 144 V(BitwiseXor, AccumulatorUse::kReadWrite, OperandType::kReg) \ |
145 V(BitwiseAnd, AccumulatorUse::kReadWrite, OperandType::kReg) \ | 145 V(BitwiseAnd, AccumulatorUse::kReadWrite, OperandType::kReg) \ |
146 V(ShiftLeft, AccumulatorUse::kReadWrite, OperandType::kReg) \ | 146 V(ShiftLeft, AccumulatorUse::kReadWrite, OperandType::kReg) \ |
147 V(ShiftRight, AccumulatorUse::kReadWrite, OperandType::kReg) \ | 147 V(ShiftRight, AccumulatorUse::kReadWrite, OperandType::kReg) \ |
148 V(ShiftRightLogical, AccumulatorUse::kReadWrite, OperandType::kReg) \ | 148 V(ShiftRightLogical, AccumulatorUse::kReadWrite, OperandType::kReg) \ |
149 \ | 149 \ |
150 /* Unary Operators */ \ | 150 /* Unary Operators */ \ |
151 V(Inc, AccumulatorUse::kReadWrite) \ | 151 V(Inc, AccumulatorUse::kReadWrite) \ |
152 V(Dec, AccumulatorUse::kReadWrite) \ | 152 V(Dec, AccumulatorUse::kReadWrite) \ |
| 153 V(ToBooleanLogicalNot, AccumulatorUse::kReadWrite) \ |
153 V(LogicalNot, AccumulatorUse::kReadWrite) \ | 154 V(LogicalNot, AccumulatorUse::kReadWrite) \ |
154 V(TypeOf, AccumulatorUse::kReadWrite) \ | 155 V(TypeOf, AccumulatorUse::kReadWrite) \ |
155 V(DeletePropertyStrict, AccumulatorUse::kReadWrite, OperandType::kReg) \ | 156 V(DeletePropertyStrict, AccumulatorUse::kReadWrite, OperandType::kReg) \ |
156 V(DeletePropertySloppy, AccumulatorUse::kReadWrite, OperandType::kReg) \ | 157 V(DeletePropertySloppy, AccumulatorUse::kReadWrite, OperandType::kReg) \ |
157 \ | 158 \ |
158 /* Call operations */ \ | 159 /* Call operations */ \ |
159 V(Call, AccumulatorUse::kWrite, OperandType::kReg, OperandType::kReg, \ | 160 V(Call, AccumulatorUse::kWrite, OperandType::kReg, OperandType::kReg, \ |
160 OperandType::kRegCount, OperandType::kIdx) \ | 161 OperandType::kRegCount, OperandType::kIdx) \ |
161 V(TailCall, AccumulatorUse::kWrite, OperandType::kReg, OperandType::kReg, \ | 162 V(TailCall, AccumulatorUse::kWrite, OperandType::kReg, OperandType::kReg, \ |
162 OperandType::kRegCount, OperandType::kIdx) \ | 163 OperandType::kRegCount, OperandType::kIdx) \ |
(...skipping 478 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
641 std::ostream& operator<<(std::ostream& os, const AccumulatorUse& use); | 642 std::ostream& operator<<(std::ostream& os, const AccumulatorUse& use); |
642 std::ostream& operator<<(std::ostream& os, const OperandScale& operand_scale); | 643 std::ostream& operator<<(std::ostream& os, const OperandScale& operand_scale); |
643 std::ostream& operator<<(std::ostream& os, const OperandSize& operand_size); | 644 std::ostream& operator<<(std::ostream& os, const OperandSize& operand_size); |
644 std::ostream& operator<<(std::ostream& os, const OperandType& operand_type); | 645 std::ostream& operator<<(std::ostream& os, const OperandType& operand_type); |
645 | 646 |
646 } // namespace interpreter | 647 } // namespace interpreter |
647 } // namespace internal | 648 } // namespace internal |
648 } // namespace v8 | 649 } // namespace v8 |
649 | 650 |
650 #endif // V8_INTERPRETER_BYTECODES_H_ | 651 #endif // V8_INTERPRETER_BYTECODES_H_ |
OLD | NEW |