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 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
108 V(PopContext, AccumulatorUse::kNone, OperandType::kReg) \ | 108 V(PopContext, AccumulatorUse::kNone, OperandType::kReg) \ |
109 V(LdaContextSlot, AccumulatorUse::kWrite, OperandType::kReg, \ | 109 V(LdaContextSlot, AccumulatorUse::kWrite, OperandType::kReg, \ |
110 OperandType::kIdx, OperandType::kUImm) \ | 110 OperandType::kIdx, OperandType::kUImm) \ |
111 V(LdrContextSlot, AccumulatorUse::kNone, OperandType::kReg, \ | 111 V(LdrContextSlot, AccumulatorUse::kNone, OperandType::kReg, \ |
112 OperandType::kIdx, OperandType::kUImm, OperandType::kRegOut) \ | 112 OperandType::kIdx, OperandType::kUImm, OperandType::kRegOut) \ |
113 V(StaContextSlot, AccumulatorUse::kRead, OperandType::kReg, \ | 113 V(StaContextSlot, AccumulatorUse::kRead, OperandType::kReg, \ |
114 OperandType::kIdx, OperandType::kUImm) \ | 114 OperandType::kIdx, OperandType::kUImm) \ |
115 \ | 115 \ |
116 /* Load-Store lookup slots */ \ | 116 /* Load-Store lookup slots */ \ |
117 V(LdaLookupSlot, AccumulatorUse::kWrite, OperandType::kIdx) \ | 117 V(LdaLookupSlot, AccumulatorUse::kWrite, OperandType::kIdx) \ |
| 118 V(LdaLookupContextSlot, AccumulatorUse::kWrite, OperandType::kIdx, \ |
| 119 OperandType::kIdx, OperandType::kUImm) \ |
118 V(LdaLookupSlotInsideTypeof, AccumulatorUse::kWrite, OperandType::kIdx) \ | 120 V(LdaLookupSlotInsideTypeof, AccumulatorUse::kWrite, OperandType::kIdx) \ |
| 121 V(LdaLookupContextSlotInsideTypeof, AccumulatorUse::kWrite, \ |
| 122 OperandType::kIdx, OperandType::kIdx, OperandType::kUImm) \ |
119 V(StaLookupSlotSloppy, AccumulatorUse::kReadWrite, OperandType::kIdx) \ | 123 V(StaLookupSlotSloppy, AccumulatorUse::kReadWrite, OperandType::kIdx) \ |
120 V(StaLookupSlotStrict, AccumulatorUse::kReadWrite, OperandType::kIdx) \ | 124 V(StaLookupSlotStrict, AccumulatorUse::kReadWrite, OperandType::kIdx) \ |
121 \ | 125 \ |
122 /* Register-accumulator transfers */ \ | 126 /* Register-accumulator transfers */ \ |
123 V(Ldar, AccumulatorUse::kWrite, OperandType::kReg) \ | 127 V(Ldar, AccumulatorUse::kWrite, OperandType::kReg) \ |
124 V(Star, AccumulatorUse::kRead, OperandType::kRegOut) \ | 128 V(Star, AccumulatorUse::kRead, OperandType::kRegOut) \ |
125 \ | 129 \ |
126 /* Register-register transfers */ \ | 130 /* Register-register transfers */ \ |
127 V(Mov, AccumulatorUse::kNone, OperandType::kReg, OperandType::kRegOut) \ | 131 V(Mov, AccumulatorUse::kNone, OperandType::kReg, OperandType::kRegOut) \ |
128 \ | 132 \ |
(...skipping 465 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
594 std::ostream& operator<<(std::ostream& os, const AccumulatorUse& use); | 598 std::ostream& operator<<(std::ostream& os, const AccumulatorUse& use); |
595 std::ostream& operator<<(std::ostream& os, const OperandScale& operand_scale); | 599 std::ostream& operator<<(std::ostream& os, const OperandScale& operand_scale); |
596 std::ostream& operator<<(std::ostream& os, const OperandSize& operand_size); | 600 std::ostream& operator<<(std::ostream& os, const OperandSize& operand_size); |
597 std::ostream& operator<<(std::ostream& os, const OperandType& operand_type); | 601 std::ostream& operator<<(std::ostream& os, const OperandType& operand_type); |
598 | 602 |
599 } // namespace interpreter | 603 } // namespace interpreter |
600 } // namespace internal | 604 } // namespace internal |
601 } // namespace v8 | 605 } // namespace v8 |
602 | 606 |
603 #endif // V8_INTERPRETER_BYTECODES_H_ | 607 #endif // V8_INTERPRETER_BYTECODES_H_ |
OLD | NEW |