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 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
91 \ | 91 \ |
92 /* Propery stores (StoreIC) operations */ \ | 92 /* Propery stores (StoreIC) operations */ \ |
93 V(StaNamedPropertySloppy, AccumulatorUse::kRead, OperandType::kReg, \ | 93 V(StaNamedPropertySloppy, AccumulatorUse::kRead, OperandType::kReg, \ |
94 OperandType::kIdx, OperandType::kIdx) \ | 94 OperandType::kIdx, OperandType::kIdx) \ |
95 V(StaNamedPropertyStrict, AccumulatorUse::kRead, OperandType::kReg, \ | 95 V(StaNamedPropertyStrict, AccumulatorUse::kRead, OperandType::kReg, \ |
96 OperandType::kIdx, OperandType::kIdx) \ | 96 OperandType::kIdx, OperandType::kIdx) \ |
97 V(StaKeyedPropertySloppy, AccumulatorUse::kRead, OperandType::kReg, \ | 97 V(StaKeyedPropertySloppy, AccumulatorUse::kRead, OperandType::kReg, \ |
98 OperandType::kReg, OperandType::kIdx) \ | 98 OperandType::kReg, OperandType::kIdx) \ |
99 V(StaKeyedPropertyStrict, AccumulatorUse::kRead, OperandType::kReg, \ | 99 V(StaKeyedPropertyStrict, AccumulatorUse::kRead, OperandType::kReg, \ |
100 OperandType::kReg, OperandType::kIdx) \ | 100 OperandType::kReg, OperandType::kIdx) \ |
101 V(StaDataPropertyInLiteral, AccumulatorUse::kNone, OperandType::kReg, \ | 101 V(StaDataPropertyInLiteral, AccumulatorUse::kRead, OperandType::kReg, \ |
102 OperandType::kReg, OperandType::kReg, OperandType::kFlag8) \ | 102 OperandType::kReg, OperandType::kFlag8, OperandType::kIdx) \ |
103 \ | 103 \ |
104 /* Binary Operators */ \ | 104 /* Binary Operators */ \ |
105 V(Add, AccumulatorUse::kReadWrite, OperandType::kReg, OperandType::kIdx) \ | 105 V(Add, AccumulatorUse::kReadWrite, OperandType::kReg, OperandType::kIdx) \ |
106 V(Sub, AccumulatorUse::kReadWrite, OperandType::kReg, OperandType::kIdx) \ | 106 V(Sub, AccumulatorUse::kReadWrite, OperandType::kReg, OperandType::kIdx) \ |
107 V(Mul, AccumulatorUse::kReadWrite, OperandType::kReg, OperandType::kIdx) \ | 107 V(Mul, AccumulatorUse::kReadWrite, OperandType::kReg, OperandType::kIdx) \ |
108 V(Div, AccumulatorUse::kReadWrite, OperandType::kReg, OperandType::kIdx) \ | 108 V(Div, AccumulatorUse::kReadWrite, OperandType::kReg, OperandType::kIdx) \ |
109 V(Mod, AccumulatorUse::kReadWrite, OperandType::kReg, OperandType::kIdx) \ | 109 V(Mod, AccumulatorUse::kReadWrite, OperandType::kReg, OperandType::kIdx) \ |
110 V(BitwiseOr, AccumulatorUse::kReadWrite, OperandType::kReg, \ | 110 V(BitwiseOr, AccumulatorUse::kReadWrite, OperandType::kReg, \ |
111 OperandType::kIdx) \ | 111 OperandType::kIdx) \ |
112 V(BitwiseXor, AccumulatorUse::kReadWrite, OperandType::kReg, \ | 112 V(BitwiseXor, AccumulatorUse::kReadWrite, OperandType::kReg, \ |
(...skipping 703 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
816 }; | 816 }; |
817 | 817 |
818 V8_EXPORT_PRIVATE std::ostream& operator<<(std::ostream& os, | 818 V8_EXPORT_PRIVATE std::ostream& operator<<(std::ostream& os, |
819 const Bytecode& bytecode); | 819 const Bytecode& bytecode); |
820 | 820 |
821 } // namespace interpreter | 821 } // namespace interpreter |
822 } // namespace internal | 822 } // namespace internal |
823 } // namespace v8 | 823 } // namespace v8 |
824 | 824 |
825 #endif // V8_INTERPRETER_BYTECODES_H_ | 825 #endif // V8_INTERPRETER_BYTECODES_H_ |
OLD | NEW |