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 260 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
271 V(ForInStep, OperandType::kReg8) \ | 271 V(ForInStep, OperandType::kReg8) \ |
272 \ | 272 \ |
273 /* Perform a stack guard check */ \ | 273 /* Perform a stack guard check */ \ |
274 V(StackCheck, OperandType::kNone) \ | 274 V(StackCheck, OperandType::kNone) \ |
275 \ | 275 \ |
276 /* Non-local flow control */ \ | 276 /* Non-local flow control */ \ |
277 V(Throw, OperandType::kNone) \ | 277 V(Throw, OperandType::kNone) \ |
278 V(ReThrow, OperandType::kNone) \ | 278 V(ReThrow, OperandType::kNone) \ |
279 V(Return, OperandType::kNone) \ | 279 V(Return, OperandType::kNone) \ |
280 \ | 280 \ |
| 281 /* Intrinsics */ \ |
| 282 V(InvokeIntrinsic, OperandType::kIdx16, OperandType::kMaybeReg8, \ |
| 283 OperandType::kRegCount8) \ |
| 284 V(InvokeIntrinsicWide, OperandType::kIdx16, OperandType::kMaybeReg16, \ |
| 285 OperandType::kRegCount16) \ |
| 286 \ |
281 /* Debugger */ \ | 287 /* Debugger */ \ |
282 V(Debugger, OperandType::kNone) \ | 288 V(Debugger, OperandType::kNone) \ |
283 DEBUG_BREAK_BYTECODE_LIST(V) | 289 DEBUG_BREAK_BYTECODE_LIST(V) |
284 | 290 |
285 // Enumeration of the size classes of operand types used by bytecodes. | 291 // Enumeration of the size classes of operand types used by bytecodes. |
286 enum class OperandSize : uint8_t { | 292 enum class OperandSize : uint8_t { |
287 kNone = 0, | 293 kNone = 0, |
288 kByte = 1, | 294 kByte = 1, |
289 kShort = 2, | 295 kShort = 2, |
290 }; | 296 }; |
(...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
517 | 523 |
518 std::ostream& operator<<(std::ostream& os, const Bytecode& bytecode); | 524 std::ostream& operator<<(std::ostream& os, const Bytecode& bytecode); |
519 std::ostream& operator<<(std::ostream& os, const OperandType& operand_type); | 525 std::ostream& operator<<(std::ostream& os, const OperandType& operand_type); |
520 std::ostream& operator<<(std::ostream& os, const OperandSize& operand_type); | 526 std::ostream& operator<<(std::ostream& os, const OperandSize& operand_type); |
521 | 527 |
522 } // namespace interpreter | 528 } // namespace interpreter |
523 } // namespace internal | 529 } // namespace internal |
524 } // namespace v8 | 530 } // namespace v8 |
525 | 531 |
526 #endif // V8_INTERPRETER_BYTECODES_H_ | 532 #endif // V8_INTERPRETER_BYTECODES_H_ |
OLD | NEW |