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 229 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
240 V(ForInPrepare, OperandType::kRegTriple8) \ | 240 V(ForInPrepare, OperandType::kRegTriple8) \ |
241 V(ForInPrepareWide, OperandType::kRegTriple16) \ | 241 V(ForInPrepareWide, OperandType::kRegTriple16) \ |
242 V(ForInDone, OperandType::kReg8, OperandType::kReg8) \ | 242 V(ForInDone, OperandType::kReg8, OperandType::kReg8) \ |
243 V(ForInNext, OperandType::kReg8, OperandType::kReg8, OperandType::kRegPair8) \ | 243 V(ForInNext, OperandType::kReg8, OperandType::kReg8, OperandType::kRegPair8) \ |
244 V(ForInNextWide, OperandType::kReg16, OperandType::kReg16, \ | 244 V(ForInNextWide, OperandType::kReg16, OperandType::kReg16, \ |
245 OperandType::kRegPair16) \ | 245 OperandType::kRegPair16) \ |
246 V(ForInStep, OperandType::kReg8) \ | 246 V(ForInStep, OperandType::kReg8) \ |
247 \ | 247 \ |
248 /* Non-local flow control */ \ | 248 /* Non-local flow control */ \ |
249 V(Throw, OperandType::kNone) \ | 249 V(Throw, OperandType::kNone) \ |
| 250 V(ReThrow, OperandType::kNone) \ |
250 V(Return, OperandType::kNone) | 251 V(Return, OperandType::kNone) |
251 | 252 |
252 | 253 |
253 // Enumeration of the size classes of operand types used by bytecodes. | 254 // Enumeration of the size classes of operand types used by bytecodes. |
254 enum class OperandSize : uint8_t { | 255 enum class OperandSize : uint8_t { |
255 kNone = 0, | 256 kNone = 0, |
256 kByte = 1, | 257 kByte = 1, |
257 kShort = 2, | 258 kShort = 2, |
258 }; | 259 }; |
259 | 260 |
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
439 | 440 |
440 std::ostream& operator<<(std::ostream& os, const Bytecode& bytecode); | 441 std::ostream& operator<<(std::ostream& os, const Bytecode& bytecode); |
441 std::ostream& operator<<(std::ostream& os, const OperandType& operand_type); | 442 std::ostream& operator<<(std::ostream& os, const OperandType& operand_type); |
442 std::ostream& operator<<(std::ostream& os, const OperandSize& operand_type); | 443 std::ostream& operator<<(std::ostream& os, const OperandSize& operand_type); |
443 | 444 |
444 } // namespace interpreter | 445 } // namespace interpreter |
445 } // namespace internal | 446 } // namespace internal |
446 } // namespace v8 | 447 } // namespace v8 |
447 | 448 |
448 #endif // V8_INTERPRETER_BYTECODES_H_ | 449 #endif // V8_INTERPRETER_BYTECODES_H_ |
OLD | NEW |