| 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 OperandType::kReg8) \ |
| 204 V(ForInDone, OperandType::kReg8) \ | 204 V(ForInNext, OperandType::kReg8, OperandType::kReg8, OperandType::kReg8, \ |
| 205 OperandType::kReg8) \ |
| 206 V(ForInDone, OperandType::kReg8, OperandType::kReg8) \ |
| 207 V(ForInStep, OperandType::kReg8) \ |
| 205 \ | 208 \ |
| 206 /* Non-local flow control */ \ | 209 /* Non-local flow control */ \ |
| 207 V(Throw, OperandType::kNone) \ | 210 V(Throw, OperandType::kNone) \ |
| 208 V(Return, OperandType::kNone) | 211 V(Return, OperandType::kNone) |
| 209 | 212 |
| 210 | 213 |
| 211 // Enumeration of the size classes of operand types used by bytecodes. | 214 // Enumeration of the size classes of operand types used by bytecodes. |
| 212 enum class OperandSize : uint8_t { | 215 enum class OperandSize : uint8_t { |
| 213 kNone = 0, | 216 kNone = 0, |
| 214 kByte = 1, | 217 kByte = 1, |
| (...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 383 | 386 |
| 384 std::ostream& operator<<(std::ostream& os, const Bytecode& bytecode); | 387 std::ostream& operator<<(std::ostream& os, const Bytecode& bytecode); |
| 385 std::ostream& operator<<(std::ostream& os, const OperandType& operand_type); | 388 std::ostream& operator<<(std::ostream& os, const OperandType& operand_type); |
| 386 std::ostream& operator<<(std::ostream& os, const OperandSize& operand_type); | 389 std::ostream& operator<<(std::ostream& os, const OperandSize& operand_type); |
| 387 | 390 |
| 388 } // namespace interpreter | 391 } // namespace interpreter |
| 389 } // namespace internal | 392 } // namespace internal |
| 390 } // namespace v8 | 393 } // namespace v8 |
| 391 | 394 |
| 392 #endif // V8_INTERPRETER_BYTECODES_H_ | 395 #endif // V8_INTERPRETER_BYTECODES_H_ |
| OLD | NEW |