| 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 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 124 V(Jump, OperandType::kImm8) \ | 124 V(Jump, OperandType::kImm8) \ |
| 125 V(JumpConstant, OperandType::kIdx8) \ | 125 V(JumpConstant, OperandType::kIdx8) \ |
| 126 V(JumpIfTrue, OperandType::kImm8) \ | 126 V(JumpIfTrue, OperandType::kImm8) \ |
| 127 V(JumpIfTrueConstant, OperandType::kIdx8) \ | 127 V(JumpIfTrueConstant, OperandType::kIdx8) \ |
| 128 V(JumpIfFalse, OperandType::kImm8) \ | 128 V(JumpIfFalse, OperandType::kImm8) \ |
| 129 V(JumpIfFalseConstant, OperandType::kIdx8) \ | 129 V(JumpIfFalseConstant, OperandType::kIdx8) \ |
| 130 V(JumpIfToBooleanTrue, OperandType::kImm8) \ | 130 V(JumpIfToBooleanTrue, OperandType::kImm8) \ |
| 131 V(JumpIfToBooleanTrueConstant, OperandType::kIdx8) \ | 131 V(JumpIfToBooleanTrueConstant, OperandType::kIdx8) \ |
| 132 V(JumpIfToBooleanFalse, OperandType::kImm8) \ | 132 V(JumpIfToBooleanFalse, OperandType::kImm8) \ |
| 133 V(JumpIfToBooleanFalseConstant, OperandType::kIdx8) \ | 133 V(JumpIfToBooleanFalseConstant, OperandType::kIdx8) \ |
| 134 V(Throw, OperandType::kNone) \ |
| 134 V(Return, OperandType::kNone) | 135 V(Return, OperandType::kNone) |
| 135 | 136 |
| 136 | 137 |
| 137 // Enumeration of the size classes of operand types used by bytecodes. | 138 // Enumeration of the size classes of operand types used by bytecodes. |
| 138 enum class OperandSize : uint8_t { | 139 enum class OperandSize : uint8_t { |
| 139 kNone = 0, | 140 kNone = 0, |
| 140 kByte = 1, | 141 kByte = 1, |
| 141 kShort = 2, | 142 kShort = 2, |
| 142 }; | 143 }; |
| 143 | 144 |
| (...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 282 | 283 |
| 283 std::ostream& operator<<(std::ostream& os, const Bytecode& bytecode); | 284 std::ostream& operator<<(std::ostream& os, const Bytecode& bytecode); |
| 284 std::ostream& operator<<(std::ostream& os, const OperandType& operand_type); | 285 std::ostream& operator<<(std::ostream& os, const OperandType& operand_type); |
| 285 std::ostream& operator<<(std::ostream& os, const OperandSize& operand_type); | 286 std::ostream& operator<<(std::ostream& os, const OperandSize& operand_type); |
| 286 | 287 |
| 287 } // namespace interpreter | 288 } // namespace interpreter |
| 288 } // namespace internal | 289 } // namespace internal |
| 289 } // namespace v8 | 290 } // namespace v8 |
| 290 | 291 |
| 291 #endif // V8_INTERPRETER_BYTECODES_H_ | 292 #endif // V8_INTERPRETER_BYTECODES_H_ |
| OLD | NEW |