| 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 460 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 471 // Returns true if the bytecode is a jump or conditional jump taking | 471 // Returns true if the bytecode is a jump or conditional jump taking |
| 472 // any kind of operand. | 472 // any kind of operand. |
| 473 static bool IsJump(Bytecode bytecode); | 473 static bool IsJump(Bytecode bytecode); |
| 474 | 474 |
| 475 // Returns true if the bytecode is a conditional jump, a jump, or a return. | 475 // Returns true if the bytecode is a conditional jump, a jump, or a return. |
| 476 static bool IsJumpOrReturn(Bytecode bytecode); | 476 static bool IsJumpOrReturn(Bytecode bytecode); |
| 477 | 477 |
| 478 // Returns true if the bytecode is a call or a constructor call. | 478 // Returns true if the bytecode is a call or a constructor call. |
| 479 static bool IsCallOrNew(Bytecode bytecode); | 479 static bool IsCallOrNew(Bytecode bytecode); |
| 480 | 480 |
| 481 // Returns true if the bytecode is a call to the runtime. |
| 482 static bool IsCallRuntime(Bytecode bytecode); |
| 483 |
| 481 // Returns true if the bytecode is a debug break. | 484 // Returns true if the bytecode is a debug break. |
| 482 static bool IsDebugBreak(Bytecode bytecode); | 485 static bool IsDebugBreak(Bytecode bytecode); |
| 483 | 486 |
| 484 // Returns true if |operand_type| is a register index operand (kIdx8/kIdx16). | 487 // Returns true if |operand_type| is a register index operand (kIdx8/kIdx16). |
| 485 static bool IsIndexOperandType(OperandType operand_type); | 488 static bool IsIndexOperandType(OperandType operand_type); |
| 486 | 489 |
| 487 // Returns true if |operand_type| represents an immediate. | 490 // Returns true if |operand_type| represents an immediate. |
| 488 static bool IsImmediateOperandType(OperandType operand_type); | 491 static bool IsImmediateOperandType(OperandType operand_type); |
| 489 | 492 |
| 490 // Returns true if |operand_type| is a register count operand | 493 // Returns true if |operand_type| is a register count operand |
| (...skipping 23 matching lines...) Expand all Loading... |
| 514 | 517 |
| 515 std::ostream& operator<<(std::ostream& os, const Bytecode& bytecode); | 518 std::ostream& operator<<(std::ostream& os, const Bytecode& bytecode); |
| 516 std::ostream& operator<<(std::ostream& os, const OperandType& operand_type); | 519 std::ostream& operator<<(std::ostream& os, const OperandType& operand_type); |
| 517 std::ostream& operator<<(std::ostream& os, const OperandSize& operand_type); | 520 std::ostream& operator<<(std::ostream& os, const OperandSize& operand_type); |
| 518 | 521 |
| 519 } // namespace interpreter | 522 } // namespace interpreter |
| 520 } // namespace internal | 523 } // namespace internal |
| 521 } // namespace v8 | 524 } // namespace v8 |
| 522 | 525 |
| 523 #endif // V8_INTERPRETER_BYTECODES_H_ | 526 #endif // V8_INTERPRETER_BYTECODES_H_ |
| OLD | NEW |