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) \ |
112 V(IsSmiAndBranch) \ | 113 V(IsSmiAndBranch) \ |
113 V(IsUndetectableAndBranch) \ | 114 V(IsUndetectableAndBranch) \ |
| 115 V(CompareGenericAndBranch) \ |
114 V(JSArrayLength) \ | 116 V(JSArrayLength) \ |
115 V(Label) \ | 117 V(Label) \ |
116 V(LazyBailout) \ | 118 V(LazyBailout) \ |
117 V(LoadContextSlot) \ | 119 V(LoadContextSlot) \ |
118 V(LoadElements) \ | 120 V(LoadElements) \ |
119 V(LoadExternalArrayPointer) \ | 121 V(LoadExternalArrayPointer) \ |
120 V(LoadFunctionPrototype) \ | 122 V(LoadFunctionPrototype) \ |
121 V(LoadGlobalCell) \ | 123 V(LoadGlobalCell) \ |
122 V(LoadGlobalGeneric) \ | 124 V(LoadGlobalGeneric) \ |
123 V(LoadKeyedFastDoubleElement) \ | 125 V(LoadKeyedFastDoubleElement) \ |
(...skipping 509 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
633 inputs_[0] = value; | 635 inputs_[0] = value; |
634 } | 636 } |
635 | 637 |
636 DECLARE_CONCRETE_INSTRUCTION(IsObjectAndBranch, "is-object-and-branch") | 638 DECLARE_CONCRETE_INSTRUCTION(IsObjectAndBranch, "is-object-and-branch") |
637 DECLARE_HYDROGEN_ACCESSOR(IsObjectAndBranch) | 639 DECLARE_HYDROGEN_ACCESSOR(IsObjectAndBranch) |
638 | 640 |
639 virtual void PrintDataTo(StringStream* stream); | 641 virtual void PrintDataTo(StringStream* stream); |
640 }; | 642 }; |
641 | 643 |
642 | 644 |
| 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 |
643 class LIsSmiAndBranch: public LControlInstruction<1, 0> { | 658 class LIsSmiAndBranch: public LControlInstruction<1, 0> { |
644 public: | 659 public: |
645 explicit LIsSmiAndBranch(LOperand* value) { | 660 explicit LIsSmiAndBranch(LOperand* value) { |
646 inputs_[0] = value; | 661 inputs_[0] = value; |
647 } | 662 } |
648 | 663 |
649 DECLARE_CONCRETE_INSTRUCTION(IsSmiAndBranch, "is-smi-and-branch") | 664 DECLARE_CONCRETE_INSTRUCTION(IsSmiAndBranch, "is-smi-and-branch") |
650 DECLARE_HYDROGEN_ACCESSOR(IsSmiAndBranch) | 665 DECLARE_HYDROGEN_ACCESSOR(IsSmiAndBranch) |
651 | 666 |
652 virtual void PrintDataTo(StringStream* stream); | 667 virtual void PrintDataTo(StringStream* stream); |
653 }; | 668 }; |
654 | 669 |
655 | 670 |
656 class LIsUndetectableAndBranch: public LControlInstruction<1, 1> { | 671 class LIsUndetectableAndBranch: public LControlInstruction<1, 1> { |
657 public: | 672 public: |
658 explicit LIsUndetectableAndBranch(LOperand* value, LOperand* temp) { | 673 explicit LIsUndetectableAndBranch(LOperand* value, LOperand* temp) { |
659 inputs_[0] = value; | 674 inputs_[0] = value; |
660 temps_[0] = temp; | 675 temps_[0] = temp; |
661 } | 676 } |
662 | 677 |
663 DECLARE_CONCRETE_INSTRUCTION(IsUndetectableAndBranch, | 678 DECLARE_CONCRETE_INSTRUCTION(IsUndetectableAndBranch, |
664 "is-undetectable-and-branch") | 679 "is-undetectable-and-branch") |
665 DECLARE_HYDROGEN_ACCESSOR(IsUndetectableAndBranch) | 680 DECLARE_HYDROGEN_ACCESSOR(IsUndetectableAndBranch) |
666 | 681 |
667 virtual void PrintDataTo(StringStream* stream); | 682 virtual void PrintDataTo(StringStream* stream); |
668 }; | 683 }; |
669 | 684 |
670 | 685 |
| 686 class LCompareGenericAndBranch: public LControlInstruction<2, 0> { |
| 687 public: |
| 688 explicit LCompareGenericAndBranch(LOperand* left, LOperand* right) { |
| 689 inputs_[0] = left; |
| 690 inputs_[1] = right; |
| 691 } |
| 692 |
| 693 DECLARE_CONCRETE_INSTRUCTION(CompareGenericAndBranch, |
| 694 "compare-generic-and-branch") |
| 695 DECLARE_HYDROGEN_ACCESSOR(CompareGenericAndBranch) |
| 696 |
| 697 virtual void PrintDataTo(StringStream* stream); |
| 698 |
| 699 Token::Value op() const { return hydrogen()->token(); } |
| 700 }; |
| 701 |
| 702 |
671 class LHasInstanceTypeAndBranch: public LControlInstruction<1, 0> { | 703 class LHasInstanceTypeAndBranch: public LControlInstruction<1, 0> { |
672 public: | 704 public: |
673 explicit LHasInstanceTypeAndBranch(LOperand* value) { | 705 explicit LHasInstanceTypeAndBranch(LOperand* value) { |
674 inputs_[0] = value; | 706 inputs_[0] = value; |
675 } | 707 } |
676 | 708 |
677 DECLARE_CONCRETE_INSTRUCTION(HasInstanceTypeAndBranch, | 709 DECLARE_CONCRETE_INSTRUCTION(HasInstanceTypeAndBranch, |
678 "has-instance-type-and-branch") | 710 "has-instance-type-and-branch") |
679 DECLARE_HYDROGEN_ACCESSOR(HasInstanceTypeAndBranch) | 711 DECLARE_HYDROGEN_ACCESSOR(HasInstanceTypeAndBranch) |
680 | 712 |
(...skipping 1522 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2203 | 2235 |
2204 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2236 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
2205 }; | 2237 }; |
2206 | 2238 |
2207 #undef DECLARE_HYDROGEN_ACCESSOR | 2239 #undef DECLARE_HYDROGEN_ACCESSOR |
2208 #undef DECLARE_CONCRETE_INSTRUCTION | 2240 #undef DECLARE_CONCRETE_INSTRUCTION |
2209 | 2241 |
2210 } } // namespace v8::int | 2242 } } // namespace v8::int |
2211 | 2243 |
2212 #endif // V8_X64_LITHIUM_X64_H_ | 2244 #endif // V8_X64_LITHIUM_X64_H_ |
OLD | NEW |