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 521 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
639 inputs_[0] = value; | 641 inputs_[0] = value; |
640 temps_[0] = temp; | 642 temps_[0] = temp; |
641 } | 643 } |
642 | 644 |
643 DECLARE_CONCRETE_INSTRUCTION(IsObjectAndBranch, "is-object-and-branch") | 645 DECLARE_CONCRETE_INSTRUCTION(IsObjectAndBranch, "is-object-and-branch") |
644 | 646 |
645 virtual void PrintDataTo(StringStream* stream); | 647 virtual void PrintDataTo(StringStream* stream); |
646 }; | 648 }; |
647 | 649 |
648 | 650 |
| 651 class LIsStringAndBranch: public LControlInstruction<1, 1> { |
| 652 public: |
| 653 LIsStringAndBranch(LOperand* value, LOperand* temp) { |
| 654 inputs_[0] = value; |
| 655 temps_[0] = temp; |
| 656 } |
| 657 |
| 658 DECLARE_CONCRETE_INSTRUCTION(IsStringAndBranch, "is-string-and-branch") |
| 659 |
| 660 virtual void PrintDataTo(StringStream* stream); |
| 661 }; |
| 662 |
| 663 |
649 class LIsSmiAndBranch: public LControlInstruction<1, 0> { | 664 class LIsSmiAndBranch: public LControlInstruction<1, 0> { |
650 public: | 665 public: |
651 explicit LIsSmiAndBranch(LOperand* value) { | 666 explicit LIsSmiAndBranch(LOperand* value) { |
652 inputs_[0] = value; | 667 inputs_[0] = value; |
653 } | 668 } |
654 | 669 |
655 DECLARE_CONCRETE_INSTRUCTION(IsSmiAndBranch, "is-smi-and-branch") | 670 DECLARE_CONCRETE_INSTRUCTION(IsSmiAndBranch, "is-smi-and-branch") |
656 DECLARE_HYDROGEN_ACCESSOR(IsSmiAndBranch) | 671 DECLARE_HYDROGEN_ACCESSOR(IsSmiAndBranch) |
657 | 672 |
658 virtual void PrintDataTo(StringStream* stream); | 673 virtual void PrintDataTo(StringStream* stream); |
659 }; | 674 }; |
660 | 675 |
661 | 676 |
662 class LIsUndetectableAndBranch: public LControlInstruction<1, 1> { | 677 class LIsUndetectableAndBranch: public LControlInstruction<1, 1> { |
663 public: | 678 public: |
664 LIsUndetectableAndBranch(LOperand* value, LOperand* temp) { | 679 LIsUndetectableAndBranch(LOperand* value, LOperand* temp) { |
665 inputs_[0] = value; | 680 inputs_[0] = value; |
666 temps_[0] = temp; | 681 temps_[0] = temp; |
667 } | 682 } |
668 | 683 |
669 DECLARE_CONCRETE_INSTRUCTION(IsUndetectableAndBranch, | 684 DECLARE_CONCRETE_INSTRUCTION(IsUndetectableAndBranch, |
670 "is-undetectable-and-branch") | 685 "is-undetectable-and-branch") |
671 | 686 |
672 virtual void PrintDataTo(StringStream* stream); | 687 virtual void PrintDataTo(StringStream* stream); |
673 }; | 688 }; |
674 | 689 |
675 | 690 |
| 691 class LCompareGenericAndBranch: public LControlInstruction<3, 0> { |
| 692 public: |
| 693 LCompareGenericAndBranch(LOperand* context, LOperand* left, LOperand* right) { |
| 694 inputs_[0] = context; |
| 695 inputs_[1] = left; |
| 696 inputs_[2] = right; |
| 697 } |
| 698 |
| 699 DECLARE_CONCRETE_INSTRUCTION(CompareGenericAndBranch, |
| 700 "compare-generic-and-branch") |
| 701 DECLARE_HYDROGEN_ACCESSOR(CompareGenericAndBranch) |
| 702 |
| 703 virtual void PrintDataTo(StringStream* stream); |
| 704 |
| 705 Token::Value op() const { return hydrogen()->token(); } |
| 706 }; |
| 707 |
| 708 |
676 class LHasInstanceTypeAndBranch: public LControlInstruction<1, 1> { | 709 class LHasInstanceTypeAndBranch: public LControlInstruction<1, 1> { |
677 public: | 710 public: |
678 LHasInstanceTypeAndBranch(LOperand* value, LOperand* temp) { | 711 LHasInstanceTypeAndBranch(LOperand* value, LOperand* temp) { |
679 inputs_[0] = value; | 712 inputs_[0] = value; |
680 temps_[0] = temp; | 713 temps_[0] = temp; |
681 } | 714 } |
682 | 715 |
683 DECLARE_CONCRETE_INSTRUCTION(HasInstanceTypeAndBranch, | 716 DECLARE_CONCRETE_INSTRUCTION(HasInstanceTypeAndBranch, |
684 "has-instance-type-and-branch") | 717 "has-instance-type-and-branch") |
685 DECLARE_HYDROGEN_ACCESSOR(HasInstanceTypeAndBranch) | 718 DECLARE_HYDROGEN_ACCESSOR(HasInstanceTypeAndBranch) |
(...skipping 1636 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2322 | 2355 |
2323 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2356 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
2324 }; | 2357 }; |
2325 | 2358 |
2326 #undef DECLARE_HYDROGEN_ACCESSOR | 2359 #undef DECLARE_HYDROGEN_ACCESSOR |
2327 #undef DECLARE_CONCRETE_INSTRUCTION | 2360 #undef DECLARE_CONCRETE_INSTRUCTION |
2328 | 2361 |
2329 } } // namespace v8::internal | 2362 } } // namespace v8::internal |
2330 | 2363 |
2331 #endif // V8_IA32_LITHIUM_IA32_H_ | 2364 #endif // V8_IA32_LITHIUM_IA32_H_ |
OLD | NEW |