OLD | NEW |
1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
102 V(HasInstanceTypeAndBranch) \ | 102 V(HasInstanceTypeAndBranch) \ |
103 V(In) \ | 103 V(In) \ |
104 V(InstanceOf) \ | 104 V(InstanceOf) \ |
105 V(InstanceOfKnownGlobal) \ | 105 V(InstanceOfKnownGlobal) \ |
106 V(InstructionGap) \ | 106 V(InstructionGap) \ |
107 V(Integer32ToDouble) \ | 107 V(Integer32ToDouble) \ |
108 V(InvokeFunction) \ | 108 V(InvokeFunction) \ |
109 V(IsConstructCallAndBranch) \ | 109 V(IsConstructCallAndBranch) \ |
110 V(IsNilAndBranch) \ | 110 V(IsNilAndBranch) \ |
111 V(IsObjectAndBranch) \ | 111 V(IsObjectAndBranch) \ |
112 V(IsStringAndBranch) \ | |
113 V(IsSmiAndBranch) \ | 112 V(IsSmiAndBranch) \ |
114 V(IsUndetectableAndBranch) \ | 113 V(IsUndetectableAndBranch) \ |
115 V(StringCompareAndBranch) \ | |
116 V(JSArrayLength) \ | 114 V(JSArrayLength) \ |
117 V(Label) \ | 115 V(Label) \ |
118 V(LazyBailout) \ | 116 V(LazyBailout) \ |
119 V(LoadContextSlot) \ | 117 V(LoadContextSlot) \ |
120 V(LoadElements) \ | 118 V(LoadElements) \ |
121 V(LoadExternalArrayPointer) \ | 119 V(LoadExternalArrayPointer) \ |
122 V(LoadFunctionPrototype) \ | 120 V(LoadFunctionPrototype) \ |
123 V(LoadGlobalCell) \ | 121 V(LoadGlobalCell) \ |
124 V(LoadGlobalGeneric) \ | 122 V(LoadGlobalGeneric) \ |
125 V(LoadKeyedFastDoubleElement) \ | 123 V(LoadKeyedFastDoubleElement) \ |
(...skipping 509 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
635 inputs_[0] = value; | 633 inputs_[0] = value; |
636 } | 634 } |
637 | 635 |
638 DECLARE_CONCRETE_INSTRUCTION(IsObjectAndBranch, "is-object-and-branch") | 636 DECLARE_CONCRETE_INSTRUCTION(IsObjectAndBranch, "is-object-and-branch") |
639 DECLARE_HYDROGEN_ACCESSOR(IsObjectAndBranch) | 637 DECLARE_HYDROGEN_ACCESSOR(IsObjectAndBranch) |
640 | 638 |
641 virtual void PrintDataTo(StringStream* stream); | 639 virtual void PrintDataTo(StringStream* stream); |
642 }; | 640 }; |
643 | 641 |
644 | 642 |
645 class LIsStringAndBranch: public LControlInstruction<1, 0> { | |
646 public: | |
647 explicit LIsStringAndBranch(LOperand* value) { | |
648 inputs_[0] = value; | |
649 } | |
650 | |
651 DECLARE_CONCRETE_INSTRUCTION(IsStringAndBranch, "is-string-and-branch") | |
652 DECLARE_HYDROGEN_ACCESSOR(IsStringAndBranch) | |
653 | |
654 virtual void PrintDataTo(StringStream* stream); | |
655 }; | |
656 | |
657 | |
658 class LIsSmiAndBranch: public LControlInstruction<1, 0> { | 643 class LIsSmiAndBranch: public LControlInstruction<1, 0> { |
659 public: | 644 public: |
660 explicit LIsSmiAndBranch(LOperand* value) { | 645 explicit LIsSmiAndBranch(LOperand* value) { |
661 inputs_[0] = value; | 646 inputs_[0] = value; |
662 } | 647 } |
663 | 648 |
664 DECLARE_CONCRETE_INSTRUCTION(IsSmiAndBranch, "is-smi-and-branch") | 649 DECLARE_CONCRETE_INSTRUCTION(IsSmiAndBranch, "is-smi-and-branch") |
665 DECLARE_HYDROGEN_ACCESSOR(IsSmiAndBranch) | 650 DECLARE_HYDROGEN_ACCESSOR(IsSmiAndBranch) |
666 | 651 |
667 virtual void PrintDataTo(StringStream* stream); | 652 virtual void PrintDataTo(StringStream* stream); |
668 }; | 653 }; |
669 | 654 |
670 | 655 |
671 class LIsUndetectableAndBranch: public LControlInstruction<1, 1> { | 656 class LIsUndetectableAndBranch: public LControlInstruction<1, 1> { |
672 public: | 657 public: |
673 explicit LIsUndetectableAndBranch(LOperand* value, LOperand* temp) { | 658 explicit LIsUndetectableAndBranch(LOperand* value, LOperand* temp) { |
674 inputs_[0] = value; | 659 inputs_[0] = value; |
675 temps_[0] = temp; | 660 temps_[0] = temp; |
676 } | 661 } |
677 | 662 |
678 DECLARE_CONCRETE_INSTRUCTION(IsUndetectableAndBranch, | 663 DECLARE_CONCRETE_INSTRUCTION(IsUndetectableAndBranch, |
679 "is-undetectable-and-branch") | 664 "is-undetectable-and-branch") |
680 DECLARE_HYDROGEN_ACCESSOR(IsUndetectableAndBranch) | 665 DECLARE_HYDROGEN_ACCESSOR(IsUndetectableAndBranch) |
681 | 666 |
682 virtual void PrintDataTo(StringStream* stream); | 667 virtual void PrintDataTo(StringStream* stream); |
683 }; | 668 }; |
684 | 669 |
685 | 670 |
686 class LStringCompareAndBranch: public LControlInstruction<2, 0> { | |
687 public: | |
688 explicit LStringCompareAndBranch(LOperand* left, LOperand* right) { | |
689 inputs_[0] = left; | |
690 inputs_[1] = right; | |
691 } | |
692 | |
693 DECLARE_CONCRETE_INSTRUCTION(StringCompareAndBranch, | |
694 "compare-generic-and-branch") | |
695 DECLARE_HYDROGEN_ACCESSOR(StringCompareAndBranch) | |
696 | |
697 virtual void PrintDataTo(StringStream* stream); | |
698 | |
699 Token::Value op() const { return hydrogen()->token(); } | |
700 }; | |
701 | |
702 | |
703 class LHasInstanceTypeAndBranch: public LControlInstruction<1, 0> { | 671 class LHasInstanceTypeAndBranch: public LControlInstruction<1, 0> { |
704 public: | 672 public: |
705 explicit LHasInstanceTypeAndBranch(LOperand* value) { | 673 explicit LHasInstanceTypeAndBranch(LOperand* value) { |
706 inputs_[0] = value; | 674 inputs_[0] = value; |
707 } | 675 } |
708 | 676 |
709 DECLARE_CONCRETE_INSTRUCTION(HasInstanceTypeAndBranch, | 677 DECLARE_CONCRETE_INSTRUCTION(HasInstanceTypeAndBranch, |
710 "has-instance-type-and-branch") | 678 "has-instance-type-and-branch") |
711 DECLARE_HYDROGEN_ACCESSOR(HasInstanceTypeAndBranch) | 679 DECLARE_HYDROGEN_ACCESSOR(HasInstanceTypeAndBranch) |
712 | 680 |
(...skipping 1518 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2231 | 2199 |
2232 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2200 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
2233 }; | 2201 }; |
2234 | 2202 |
2235 #undef DECLARE_HYDROGEN_ACCESSOR | 2203 #undef DECLARE_HYDROGEN_ACCESSOR |
2236 #undef DECLARE_CONCRETE_INSTRUCTION | 2204 #undef DECLARE_CONCRETE_INSTRUCTION |
2237 | 2205 |
2238 } } // namespace v8::int | 2206 } } // namespace v8::int |
2239 | 2207 |
2240 #endif // V8_X64_LITHIUM_X64_H_ | 2208 #endif // V8_X64_LITHIUM_X64_H_ |
OLD | NEW |