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 <cstdint> | 8 #include <cstdint> |
9 #include <iosfwd> | 9 #include <iosfwd> |
10 #include <string> | 10 #include <string> |
(...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
253 /* Complex flow control For..in */ \ | 253 /* Complex flow control For..in */ \ |
254 V(ForInPrepare, AccumulatorUse::kRead, OperandType::kRegOutTriple) \ | 254 V(ForInPrepare, AccumulatorUse::kRead, OperandType::kRegOutTriple) \ |
255 V(ForInDone, AccumulatorUse::kWrite, OperandType::kReg, OperandType::kReg) \ | 255 V(ForInDone, AccumulatorUse::kWrite, OperandType::kReg, OperandType::kReg) \ |
256 V(ForInNext, AccumulatorUse::kWrite, OperandType::kReg, OperandType::kReg, \ | 256 V(ForInNext, AccumulatorUse::kWrite, OperandType::kReg, OperandType::kReg, \ |
257 OperandType::kRegPair, OperandType::kIdx) \ | 257 OperandType::kRegPair, OperandType::kIdx) \ |
258 V(ForInStep, AccumulatorUse::kWrite, OperandType::kReg) \ | 258 V(ForInStep, AccumulatorUse::kWrite, OperandType::kReg) \ |
259 \ | 259 \ |
260 /* Perform a stack guard check */ \ | 260 /* Perform a stack guard check */ \ |
261 V(StackCheck, AccumulatorUse::kNone) \ | 261 V(StackCheck, AccumulatorUse::kNone) \ |
262 \ | 262 \ |
| 263 /* Perform a check to trigger on-stack replacement */ \ |
| 264 V(OsrPoll, AccumulatorUse::kNone, OperandType::kImm) \ |
| 265 \ |
263 /* Non-local flow control */ \ | 266 /* Non-local flow control */ \ |
264 V(Throw, AccumulatorUse::kRead) \ | 267 V(Throw, AccumulatorUse::kRead) \ |
265 V(ReThrow, AccumulatorUse::kRead) \ | 268 V(ReThrow, AccumulatorUse::kRead) \ |
266 V(Return, AccumulatorUse::kRead) \ | 269 V(Return, AccumulatorUse::kRead) \ |
267 \ | 270 \ |
268 /* Generators */ \ | 271 /* Generators */ \ |
269 V(SuspendGenerator, AccumulatorUse::kRead, OperandType::kReg) \ | 272 V(SuspendGenerator, AccumulatorUse::kRead, OperandType::kReg) \ |
270 V(ResumeGenerator, AccumulatorUse::kWrite, OperandType::kReg) \ | 273 V(ResumeGenerator, AccumulatorUse::kWrite, OperandType::kReg) \ |
271 \ | 274 \ |
272 /* Debugger */ \ | 275 /* Debugger */ \ |
(...skipping 294 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
567 std::ostream& operator<<(std::ostream& os, const AccumulatorUse& use); | 570 std::ostream& operator<<(std::ostream& os, const AccumulatorUse& use); |
568 std::ostream& operator<<(std::ostream& os, const OperandScale& operand_scale); | 571 std::ostream& operator<<(std::ostream& os, const OperandScale& operand_scale); |
569 std::ostream& operator<<(std::ostream& os, const OperandSize& operand_size); | 572 std::ostream& operator<<(std::ostream& os, const OperandSize& operand_size); |
570 std::ostream& operator<<(std::ostream& os, const OperandType& operand_type); | 573 std::ostream& operator<<(std::ostream& os, const OperandType& operand_type); |
571 | 574 |
572 } // namespace interpreter | 575 } // namespace interpreter |
573 } // namespace internal | 576 } // namespace internal |
574 } // namespace v8 | 577 } // namespace v8 |
575 | 578 |
576 #endif // V8_INTERPRETER_BYTECODES_H_ | 579 #endif // V8_INTERPRETER_BYTECODES_H_ |
OLD | NEW |