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 18 matching lines...) Expand all Loading... |
29 /* Loading the accumulator */ \ | 29 /* Loading the accumulator */ \ |
30 V(LdaZero, OperandType::kNone) \ | 30 V(LdaZero, OperandType::kNone) \ |
31 V(LdaSmi8, OperandType::kImm8) \ | 31 V(LdaSmi8, OperandType::kImm8) \ |
32 V(LdaConstant, OperandType::kIdx) \ | 32 V(LdaConstant, OperandType::kIdx) \ |
33 V(LdaUndefined, OperandType::kNone) \ | 33 V(LdaUndefined, OperandType::kNone) \ |
34 V(LdaNull, OperandType::kNone) \ | 34 V(LdaNull, OperandType::kNone) \ |
35 V(LdaTheHole, OperandType::kNone) \ | 35 V(LdaTheHole, OperandType::kNone) \ |
36 V(LdaTrue, OperandType::kNone) \ | 36 V(LdaTrue, OperandType::kNone) \ |
37 V(LdaFalse, OperandType::kNone) \ | 37 V(LdaFalse, OperandType::kNone) \ |
38 \ | 38 \ |
| 39 /* Load globals */ \ |
| 40 V(LdaGlobal, OperandType::kIdx) \ |
| 41 \ |
39 /* Register-accumulator transfers */ \ | 42 /* Register-accumulator transfers */ \ |
40 V(Ldar, OperandType::kReg) \ | 43 V(Ldar, OperandType::kReg) \ |
41 V(Star, OperandType::kReg) \ | 44 V(Star, OperandType::kReg) \ |
42 \ | 45 \ |
43 /* LoadIC operations */ \ | 46 /* LoadIC operations */ \ |
44 V(LoadIC, OperandType::kReg, OperandType::kIdx) \ | 47 V(LoadIC, OperandType::kReg, OperandType::kIdx) \ |
45 V(KeyedLoadIC, OperandType::kReg, OperandType::kIdx) \ | 48 V(KeyedLoadIC, OperandType::kReg, OperandType::kIdx) \ |
46 \ | 49 \ |
47 /* StoreIC operations */ \ | 50 /* StoreIC operations */ \ |
48 V(StoreIC, OperandType::kReg, OperandType::kReg, OperandType::kIdx) \ | 51 V(StoreIC, OperandType::kReg, OperandType::kReg, OperandType::kIdx) \ |
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
163 }; | 166 }; |
164 | 167 |
165 std::ostream& operator<<(std::ostream& os, const Bytecode& bytecode); | 168 std::ostream& operator<<(std::ostream& os, const Bytecode& bytecode); |
166 std::ostream& operator<<(std::ostream& os, const OperandType& operand_type); | 169 std::ostream& operator<<(std::ostream& os, const OperandType& operand_type); |
167 | 170 |
168 } // namespace interpreter | 171 } // namespace interpreter |
169 } // namespace internal | 172 } // namespace internal |
170 } // namespace v8 | 173 } // namespace v8 |
171 | 174 |
172 #endif // V8_INTERPRETER_BYTECODES_H_ | 175 #endif // V8_INTERPRETER_BYTECODES_H_ |
OLD | NEW |