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 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
186 V(JumpIfToBooleanTrue, OperandType::kImm8) \ | 186 V(JumpIfToBooleanTrue, OperandType::kImm8) \ |
187 V(JumpIfToBooleanTrueConstant, OperandType::kIdx8) \ | 187 V(JumpIfToBooleanTrueConstant, OperandType::kIdx8) \ |
188 V(JumpIfToBooleanFalse, OperandType::kImm8) \ | 188 V(JumpIfToBooleanFalse, OperandType::kImm8) \ |
189 V(JumpIfToBooleanFalseConstant, OperandType::kIdx8) \ | 189 V(JumpIfToBooleanFalseConstant, OperandType::kIdx8) \ |
190 V(JumpIfNull, OperandType::kImm8) \ | 190 V(JumpIfNull, OperandType::kImm8) \ |
191 V(JumpIfNullConstant, OperandType::kIdx8) \ | 191 V(JumpIfNullConstant, OperandType::kIdx8) \ |
192 V(JumpIfUndefined, OperandType::kImm8) \ | 192 V(JumpIfUndefined, OperandType::kImm8) \ |
193 V(JumpIfUndefinedConstant, OperandType::kIdx8) \ | 193 V(JumpIfUndefinedConstant, OperandType::kIdx8) \ |
194 \ | 194 \ |
195 /* Complex flow control For..in */ \ | 195 /* Complex flow control For..in */ \ |
196 V(ForInPrepare, OperandType::kReg8) \ | 196 V(ForInPrepare, OperandType::kReg8, OperandType::kReg8, OperandType::kReg8, \ |
197 V(ForInNext, OperandType::kReg8, OperandType::kReg8) \ | 197 OperandType::kReg8) \ |
198 V(ForInDone, OperandType::kReg8) \ | 198 V(ForInNext, OperandType::kReg8, OperandType::kReg8, OperandType::kReg8, \ |
| 199 OperandType::kReg8) \ |
| 200 V(ForInDone, OperandType::kReg8, OperandType::kReg8) \ |
| 201 V(ForInStep, OperandType::kReg8) \ |
199 \ | 202 \ |
200 /* Non-local flow control */ \ | 203 /* Non-local flow control */ \ |
201 V(Throw, OperandType::kNone) \ | 204 V(Throw, OperandType::kNone) \ |
202 V(Return, OperandType::kNone) | 205 V(Return, OperandType::kNone) |
203 | 206 |
204 | 207 |
205 // Enumeration of the size classes of operand types used by bytecodes. | 208 // Enumeration of the size classes of operand types used by bytecodes. |
206 enum class OperandSize : uint8_t { | 209 enum class OperandSize : uint8_t { |
207 kNone = 0, | 210 kNone = 0, |
208 kByte = 1, | 211 kByte = 1, |
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
377 | 380 |
378 std::ostream& operator<<(std::ostream& os, const Bytecode& bytecode); | 381 std::ostream& operator<<(std::ostream& os, const Bytecode& bytecode); |
379 std::ostream& operator<<(std::ostream& os, const OperandType& operand_type); | 382 std::ostream& operator<<(std::ostream& os, const OperandType& operand_type); |
380 std::ostream& operator<<(std::ostream& os, const OperandSize& operand_type); | 383 std::ostream& operator<<(std::ostream& os, const OperandSize& operand_type); |
381 | 384 |
382 } // namespace interpreter | 385 } // namespace interpreter |
383 } // namespace internal | 386 } // namespace internal |
384 } // namespace v8 | 387 } // namespace v8 |
385 | 388 |
386 #endif // V8_INTERPRETER_BYTECODES_H_ | 389 #endif // V8_INTERPRETER_BYTECODES_H_ |
OLD | NEW |