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 577 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
588 | 588 |
589 // Returns the equivalent jump bytecode without the accumulator coercion. | 589 // Returns the equivalent jump bytecode without the accumulator coercion. |
590 static Bytecode GetJumpWithoutToBoolean(Bytecode bytecode); | 590 static Bytecode GetJumpWithoutToBoolean(Bytecode bytecode); |
591 | 591 |
592 // Returns true if the bytecode is a conditional jump, a jump, or a return. | 592 // Returns true if the bytecode is a conditional jump, a jump, or a return. |
593 static bool IsJumpOrReturn(Bytecode bytecode); | 593 static bool IsJumpOrReturn(Bytecode bytecode); |
594 | 594 |
595 // Returns true if the bytecode is a call or a constructor call. | 595 // Returns true if the bytecode is a call or a constructor call. |
596 static bool IsCallOrNew(Bytecode bytecode); | 596 static bool IsCallOrNew(Bytecode bytecode); |
597 | 597 |
598 // Returns true if the bytecode is a tail call. | |
599 static bool IsTailCall(Bytecode bytecode); | |
rmcilroy
2016/07/12 09:36:20
Remove
| |
600 | |
598 // Returns true if the bytecode is a call to the runtime. | 601 // Returns true if the bytecode is a call to the runtime. |
599 static bool IsCallRuntime(Bytecode bytecode); | 602 static bool IsCallRuntime(Bytecode bytecode); |
600 | 603 |
601 // Returns true if the bytecode is a debug break. | 604 // Returns true if the bytecode is a debug break. |
602 static bool IsDebugBreak(Bytecode bytecode); | 605 static bool IsDebugBreak(Bytecode bytecode); |
603 | 606 |
604 // Returns true if the bytecode is Ldar or Star. | 607 // Returns true if the bytecode is Ldar or Star. |
605 static bool IsLdarOrStar(Bytecode bytecode); | 608 static bool IsLdarOrStar(Bytecode bytecode); |
606 | 609 |
607 // Returns true if the bytecode is LdaSmi or LdaZero. | 610 // Returns true if the bytecode is LdaSmi or LdaZero. |
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
699 std::ostream& operator<<(std::ostream& os, const AccumulatorUse& use); | 702 std::ostream& operator<<(std::ostream& os, const AccumulatorUse& use); |
700 std::ostream& operator<<(std::ostream& os, const OperandScale& operand_scale); | 703 std::ostream& operator<<(std::ostream& os, const OperandScale& operand_scale); |
701 std::ostream& operator<<(std::ostream& os, const OperandSize& operand_size); | 704 std::ostream& operator<<(std::ostream& os, const OperandSize& operand_size); |
702 std::ostream& operator<<(std::ostream& os, const OperandType& operand_type); | 705 std::ostream& operator<<(std::ostream& os, const OperandType& operand_type); |
703 | 706 |
704 } // namespace interpreter | 707 } // namespace interpreter |
705 } // namespace internal | 708 } // namespace internal |
706 } // namespace v8 | 709 } // namespace v8 |
707 | 710 |
708 #endif // V8_INTERPRETER_BYTECODES_H_ | 711 #endif // V8_INTERPRETER_BYTECODES_H_ |
OLD | NEW |