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 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
110 V(ToBoolean, OperandType::kNone) \ | 110 V(ToBoolean, OperandType::kNone) \ |
111 \ | 111 \ |
112 /* Closure allocation */ \ | 112 /* Closure allocation */ \ |
113 V(CreateClosure, OperandType::kImm8) \ | 113 V(CreateClosure, OperandType::kImm8) \ |
114 \ | 114 \ |
115 /* Control Flow */ \ | 115 /* Control Flow */ \ |
116 V(Jump, OperandType::kImm8) \ | 116 V(Jump, OperandType::kImm8) \ |
117 V(JumpConstant, OperandType::kIdx8) \ | 117 V(JumpConstant, OperandType::kIdx8) \ |
118 V(JumpIfTrue, OperandType::kImm8) \ | 118 V(JumpIfTrue, OperandType::kImm8) \ |
119 V(JumpIfTrueConstant, OperandType::kIdx8) \ | 119 V(JumpIfTrueConstant, OperandType::kIdx8) \ |
| 120 V(JumpIfToBooleanTrue, OperandType::kImm8) \ |
| 121 V(JumpIfToBooleanTrueConstant, OperandType::kIdx8) \ |
120 V(JumpIfFalse, OperandType::kImm8) \ | 122 V(JumpIfFalse, OperandType::kImm8) \ |
121 V(JumpIfFalseConstant, OperandType::kIdx8) \ | 123 V(JumpIfFalseConstant, OperandType::kIdx8) \ |
| 124 V(JumpIfToBooleanFalse, OperandType::kImm8) \ |
| 125 V(JumpIfToBooleanFalseConstant, OperandType::kIdx8) \ |
122 V(Return, OperandType::kNone) | 126 V(Return, OperandType::kNone) |
123 | 127 |
124 | 128 |
125 // Enumeration of the size classes of operand types used by bytecodes. | 129 // Enumeration of the size classes of operand types used by bytecodes. |
126 enum class OperandSize : uint8_t { | 130 enum class OperandSize : uint8_t { |
127 kNone = 0, | 131 kNone = 0, |
128 kByte = 1, | 132 kByte = 1, |
129 kShort = 2, | 133 kShort = 2, |
130 }; | 134 }; |
131 | 135 |
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
261 | 265 |
262 std::ostream& operator<<(std::ostream& os, const Bytecode& bytecode); | 266 std::ostream& operator<<(std::ostream& os, const Bytecode& bytecode); |
263 std::ostream& operator<<(std::ostream& os, const OperandType& operand_type); | 267 std::ostream& operator<<(std::ostream& os, const OperandType& operand_type); |
264 std::ostream& operator<<(std::ostream& os, const OperandSize& operand_type); | 268 std::ostream& operator<<(std::ostream& os, const OperandSize& operand_type); |
265 | 269 |
266 } // namespace interpreter | 270 } // namespace interpreter |
267 } // namespace internal | 271 } // namespace internal |
268 } // namespace v8 | 272 } // namespace v8 |
269 | 273 |
270 #endif // V8_INTERPRETER_BYTECODES_H_ | 274 #endif // V8_INTERPRETER_BYTECODES_H_ |
OLD | NEW |