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 243 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
254 V(ForInPrepareWide, OperandType::kRegOutTriple16) \ | 254 V(ForInPrepareWide, OperandType::kRegOutTriple16) \ |
255 V(ForInDone, OperandType::kReg8, OperandType::kReg8) \ | 255 V(ForInDone, OperandType::kReg8, OperandType::kReg8) \ |
256 V(ForInNext, OperandType::kReg8, OperandType::kReg8, OperandType::kRegPair8) \ | 256 V(ForInNext, OperandType::kReg8, OperandType::kReg8, OperandType::kRegPair8) \ |
257 V(ForInNextWide, OperandType::kReg16, OperandType::kReg16, \ | 257 V(ForInNextWide, OperandType::kReg16, OperandType::kReg16, \ |
258 OperandType::kRegPair16) \ | 258 OperandType::kRegPair16) \ |
259 V(ForInStep, OperandType::kReg8) \ | 259 V(ForInStep, OperandType::kReg8) \ |
260 \ | 260 \ |
261 /* Non-local flow control */ \ | 261 /* Non-local flow control */ \ |
262 V(Throw, OperandType::kNone) \ | 262 V(Throw, OperandType::kNone) \ |
263 V(ReThrow, OperandType::kNone) \ | 263 V(ReThrow, OperandType::kNone) \ |
264 V(Return, OperandType::kNone) | 264 V(Return, OperandType::kNone) \ |
265 \ | |
266 /* Intrinsics */ \ | |
267 V(IntrinsicOneArg, OperandType::kIdx16, OperandType::kMaybeReg16) | |
oth
2016/02/01 09:52:33
Can this be called this CallIntrinsic or InvokeInt
rmcilroy
2016/02/01 11:04:44
+1 for InvokeIntrinsic and the comment on using kR
epertoso
2016/03/03 11:20:39
Added InvokeIntrinsic and InvokeIntrinsicWide. As
| |
265 | 268 |
266 // Enumeration of the size classes of operand types used by bytecodes. | 269 // Enumeration of the size classes of operand types used by bytecodes. |
267 enum class OperandSize : uint8_t { | 270 enum class OperandSize : uint8_t { |
268 kNone = 0, | 271 kNone = 0, |
269 kByte = 1, | 272 kByte = 1, |
270 kShort = 2, | 273 kShort = 2, |
271 }; | 274 }; |
272 | 275 |
273 | 276 |
274 // Enumeration of operand types used by bytecodes. | 277 // Enumeration of operand types used by bytecodes. |
(...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
470 | 473 |
471 std::ostream& operator<<(std::ostream& os, const Bytecode& bytecode); | 474 std::ostream& operator<<(std::ostream& os, const Bytecode& bytecode); |
472 std::ostream& operator<<(std::ostream& os, const OperandType& operand_type); | 475 std::ostream& operator<<(std::ostream& os, const OperandType& operand_type); |
473 std::ostream& operator<<(std::ostream& os, const OperandSize& operand_type); | 476 std::ostream& operator<<(std::ostream& os, const OperandSize& operand_type); |
474 | 477 |
475 } // namespace interpreter | 478 } // namespace interpreter |
476 } // namespace internal | 479 } // namespace internal |
477 } // namespace v8 | 480 } // namespace v8 |
478 | 481 |
479 #endif // V8_INTERPRETER_BYTECODES_H_ | 482 #endif // V8_INTERPRETER_BYTECODES_H_ |
OLD | NEW |