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 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
96 V(HasInstanceTypeAndBranch) \ | 96 V(HasInstanceTypeAndBranch) \ |
97 V(In) \ | 97 V(In) \ |
98 V(InstanceOf) \ | 98 V(InstanceOf) \ |
99 V(InstanceOfKnownGlobal) \ | 99 V(InstanceOfKnownGlobal) \ |
100 V(InstructionGap) \ | 100 V(InstructionGap) \ |
101 V(Integer32ToDouble) \ | 101 V(Integer32ToDouble) \ |
102 V(InvokeFunction) \ | 102 V(InvokeFunction) \ |
103 V(IsConstructCallAndBranch) \ | 103 V(IsConstructCallAndBranch) \ |
104 V(IsNilAndBranch) \ | 104 V(IsNilAndBranch) \ |
105 V(IsObjectAndBranch) \ | 105 V(IsObjectAndBranch) \ |
| 106 V(IsStringAndBranch) \ |
106 V(IsSmiAndBranch) \ | 107 V(IsSmiAndBranch) \ |
107 V(IsUndetectableAndBranch) \ | 108 V(IsUndetectableAndBranch) \ |
| 109 V(CompareGenericAndBranch) \ |
108 V(JSArrayLength) \ | 110 V(JSArrayLength) \ |
109 V(Label) \ | 111 V(Label) \ |
110 V(LazyBailout) \ | 112 V(LazyBailout) \ |
111 V(LoadContextSlot) \ | 113 V(LoadContextSlot) \ |
112 V(LoadElements) \ | 114 V(LoadElements) \ |
113 V(LoadExternalArrayPointer) \ | 115 V(LoadExternalArrayPointer) \ |
114 V(LoadFunctionPrototype) \ | 116 V(LoadFunctionPrototype) \ |
115 V(LoadGlobalCell) \ | 117 V(LoadGlobalCell) \ |
116 V(LoadGlobalGeneric) \ | 118 V(LoadGlobalGeneric) \ |
117 V(LoadKeyedFastElement) \ | 119 V(LoadKeyedFastElement) \ |
(...skipping 518 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
636 inputs_[0] = value; | 638 inputs_[0] = value; |
637 temps_[0] = temp; | 639 temps_[0] = temp; |
638 } | 640 } |
639 | 641 |
640 DECLARE_CONCRETE_INSTRUCTION(IsObjectAndBranch, "is-object-and-branch") | 642 DECLARE_CONCRETE_INSTRUCTION(IsObjectAndBranch, "is-object-and-branch") |
641 | 643 |
642 virtual void PrintDataTo(StringStream* stream); | 644 virtual void PrintDataTo(StringStream* stream); |
643 }; | 645 }; |
644 | 646 |
645 | 647 |
| 648 class LIsStringAndBranch: public LControlInstruction<1, 1> { |
| 649 public: |
| 650 LIsStringAndBranch(LOperand* value, LOperand* temp) { |
| 651 inputs_[0] = value; |
| 652 temps_[0] = temp; |
| 653 } |
| 654 |
| 655 DECLARE_CONCRETE_INSTRUCTION(IsStringAndBranch, "is-string-and-branch") |
| 656 |
| 657 virtual void PrintDataTo(StringStream* stream); |
| 658 }; |
| 659 |
| 660 |
646 class LIsSmiAndBranch: public LControlInstruction<1, 0> { | 661 class LIsSmiAndBranch: public LControlInstruction<1, 0> { |
647 public: | 662 public: |
648 explicit LIsSmiAndBranch(LOperand* value) { | 663 explicit LIsSmiAndBranch(LOperand* value) { |
649 inputs_[0] = value; | 664 inputs_[0] = value; |
650 } | 665 } |
651 | 666 |
652 DECLARE_CONCRETE_INSTRUCTION(IsSmiAndBranch, "is-smi-and-branch") | 667 DECLARE_CONCRETE_INSTRUCTION(IsSmiAndBranch, "is-smi-and-branch") |
653 DECLARE_HYDROGEN_ACCESSOR(IsSmiAndBranch) | 668 DECLARE_HYDROGEN_ACCESSOR(IsSmiAndBranch) |
654 | 669 |
655 virtual void PrintDataTo(StringStream* stream); | 670 virtual void PrintDataTo(StringStream* stream); |
656 }; | 671 }; |
657 | 672 |
658 | 673 |
659 class LIsUndetectableAndBranch: public LControlInstruction<1, 1> { | 674 class LIsUndetectableAndBranch: public LControlInstruction<1, 1> { |
660 public: | 675 public: |
661 LIsUndetectableAndBranch(LOperand* value, LOperand* temp) { | 676 LIsUndetectableAndBranch(LOperand* value, LOperand* temp) { |
662 inputs_[0] = value; | 677 inputs_[0] = value; |
663 temps_[0] = temp; | 678 temps_[0] = temp; |
664 } | 679 } |
665 | 680 |
666 DECLARE_CONCRETE_INSTRUCTION(IsUndetectableAndBranch, | 681 DECLARE_CONCRETE_INSTRUCTION(IsUndetectableAndBranch, |
667 "is-undetectable-and-branch") | 682 "is-undetectable-and-branch") |
668 | 683 |
669 virtual void PrintDataTo(StringStream* stream); | 684 virtual void PrintDataTo(StringStream* stream); |
670 }; | 685 }; |
671 | 686 |
672 | 687 |
| 688 class LCompareGenericAndBranch: public LControlInstruction<3, 0> { |
| 689 public: |
| 690 LCompareGenericAndBranch(LOperand* context, LOperand* left, LOperand* right) { |
| 691 inputs_[0] = context; |
| 692 inputs_[1] = left; |
| 693 inputs_[2] = right; |
| 694 } |
| 695 |
| 696 DECLARE_CONCRETE_INSTRUCTION(CompareGenericAndBranch, |
| 697 "compare-generic-and-branch") |
| 698 DECLARE_HYDROGEN_ACCESSOR(CompareGenericAndBranch) |
| 699 |
| 700 virtual void PrintDataTo(StringStream* stream); |
| 701 |
| 702 Token::Value op() const { return hydrogen()->token(); } |
| 703 }; |
| 704 |
| 705 |
673 class LHasInstanceTypeAndBranch: public LControlInstruction<1, 1> { | 706 class LHasInstanceTypeAndBranch: public LControlInstruction<1, 1> { |
674 public: | 707 public: |
675 LHasInstanceTypeAndBranch(LOperand* value, LOperand* temp) { | 708 LHasInstanceTypeAndBranch(LOperand* value, LOperand* temp) { |
676 inputs_[0] = value; | 709 inputs_[0] = value; |
677 temps_[0] = temp; | 710 temps_[0] = temp; |
678 } | 711 } |
679 | 712 |
680 DECLARE_CONCRETE_INSTRUCTION(HasInstanceTypeAndBranch, | 713 DECLARE_CONCRETE_INSTRUCTION(HasInstanceTypeAndBranch, |
681 "has-instance-type-and-branch") | 714 "has-instance-type-and-branch") |
682 DECLARE_HYDROGEN_ACCESSOR(HasInstanceTypeAndBranch) | 715 DECLARE_HYDROGEN_ACCESSOR(HasInstanceTypeAndBranch) |
(...skipping 1635 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2318 | 2351 |
2319 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2352 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
2320 }; | 2353 }; |
2321 | 2354 |
2322 #undef DECLARE_HYDROGEN_ACCESSOR | 2355 #undef DECLARE_HYDROGEN_ACCESSOR |
2323 #undef DECLARE_CONCRETE_INSTRUCTION | 2356 #undef DECLARE_CONCRETE_INSTRUCTION |
2324 | 2357 |
2325 } } // namespace v8::internal | 2358 } } // namespace v8::internal |
2326 | 2359 |
2327 #endif // V8_IA32_LITHIUM_IA32_H_ | 2360 #endif // V8_IA32_LITHIUM_IA32_H_ |
OLD | NEW |