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