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 547 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
558 | 558 |
559 // Returns true if the bytecode is Ldar or Star. | 559 // Returns true if the bytecode is Ldar or Star. |
560 static bool IsLdarOrStar(Bytecode bytecode); | 560 static bool IsLdarOrStar(Bytecode bytecode); |
561 | 561 |
562 // Returns true if the bytecode has wider operand forms. | 562 // Returns true if the bytecode has wider operand forms. |
563 static bool IsBytecodeWithScalableOperands(Bytecode bytecode); | 563 static bool IsBytecodeWithScalableOperands(Bytecode bytecode); |
564 | 564 |
565 // Returns true if the bytecode is a scaling prefix bytecode. | 565 // Returns true if the bytecode is a scaling prefix bytecode. |
566 static bool IsPrefixScalingBytecode(Bytecode bytecode); | 566 static bool IsPrefixScalingBytecode(Bytecode bytecode); |
567 | 567 |
| 568 // Returns true if the bytecode has no effects outside the current |
| 569 // interpreter frame. |
| 570 static bool IsWithoutExternalSideEffects(Bytecode bytecode); |
| 571 |
568 // Returns true if |operand_type| is any type of register operand. | 572 // Returns true if |operand_type| is any type of register operand. |
569 static bool IsRegisterOperandType(OperandType operand_type); | 573 static bool IsRegisterOperandType(OperandType operand_type); |
570 | 574 |
571 // Returns true if |operand_type| represents a register used as an input. | 575 // Returns true if |operand_type| represents a register used as an input. |
572 static bool IsRegisterInputOperandType(OperandType operand_type); | 576 static bool IsRegisterInputOperandType(OperandType operand_type); |
573 | 577 |
574 // Returns true if |operand_type| represents a register used as an output. | 578 // Returns true if |operand_type| represents a register used as an output. |
575 static bool IsRegisterOutputOperandType(OperandType operand_type); | 579 static bool IsRegisterOutputOperandType(OperandType operand_type); |
576 | 580 |
577 // Returns the number of registers represented by a register operand. For | 581 // Returns the number of registers represented by a register operand. For |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
645 std::ostream& operator<<(std::ostream& os, const AccumulatorUse& use); | 649 std::ostream& operator<<(std::ostream& os, const AccumulatorUse& use); |
646 std::ostream& operator<<(std::ostream& os, const OperandScale& operand_scale); | 650 std::ostream& operator<<(std::ostream& os, const OperandScale& operand_scale); |
647 std::ostream& operator<<(std::ostream& os, const OperandSize& operand_size); | 651 std::ostream& operator<<(std::ostream& os, const OperandSize& operand_size); |
648 std::ostream& operator<<(std::ostream& os, const OperandType& operand_type); | 652 std::ostream& operator<<(std::ostream& os, const OperandType& operand_type); |
649 | 653 |
650 } // namespace interpreter | 654 } // namespace interpreter |
651 } // namespace internal | 655 } // namespace internal |
652 } // namespace v8 | 656 } // namespace v8 |
653 | 657 |
654 #endif // V8_INTERPRETER_BYTECODES_H_ | 658 #endif // V8_INTERPRETER_BYTECODES_H_ |
OLD | NEW |