OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
74 V(CheckInstanceType) \ | 74 V(CheckInstanceType) \ |
75 V(CheckMaps) \ | 75 V(CheckMaps) \ |
76 V(CheckNonSmi) \ | 76 V(CheckNonSmi) \ |
77 V(CheckPrototypeMaps) \ | 77 V(CheckPrototypeMaps) \ |
78 V(CheckSmi) \ | 78 V(CheckSmi) \ |
79 V(ClampDToUint8) \ | 79 V(ClampDToUint8) \ |
80 V(ClampIToUint8) \ | 80 V(ClampIToUint8) \ |
81 V(ClampTToUint8) \ | 81 V(ClampTToUint8) \ |
82 V(ClassOfTestAndBranch) \ | 82 V(ClassOfTestAndBranch) \ |
83 V(CmpConstantEqAndBranch) \ | 83 V(CmpConstantEqAndBranch) \ |
84 V(CmpIDAndBranch) \ | 84 V(CompareNumericAndBranch) \ |
85 V(CmpObjectEqAndBranch) \ | 85 V(CmpObjectEqAndBranch) \ |
86 V(CmpMapAndBranch) \ | 86 V(CmpMapAndBranch) \ |
87 V(CmpT) \ | 87 V(CmpT) \ |
88 V(ConstantD) \ | 88 V(ConstantD) \ |
89 V(ConstantI) \ | 89 V(ConstantI) \ |
90 V(ConstantS) \ | 90 V(ConstantS) \ |
91 V(ConstantT) \ | 91 V(ConstantT) \ |
92 V(Context) \ | 92 V(Context) \ |
93 V(DebugBreak) \ | 93 V(DebugBreak) \ |
94 V(DeclareGlobals) \ | 94 V(DeclareGlobals) \ |
(...skipping 571 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
666 } | 666 } |
667 | 667 |
668 LOperand* left() { return inputs_[0]; } | 668 LOperand* left() { return inputs_[0]; } |
669 LOperand* right() { return inputs_[1]; } | 669 LOperand* right() { return inputs_[1]; } |
670 | 670 |
671 DECLARE_CONCRETE_INSTRUCTION(MulI, "mul-i") | 671 DECLARE_CONCRETE_INSTRUCTION(MulI, "mul-i") |
672 DECLARE_HYDROGEN_ACCESSOR(Mul) | 672 DECLARE_HYDROGEN_ACCESSOR(Mul) |
673 }; | 673 }; |
674 | 674 |
675 | 675 |
676 class LCmpIDAndBranch: public LControlInstruction<2, 0> { | 676 class LCompareNumericAndBranch: public LControlInstruction<2, 0> { |
677 public: | 677 public: |
678 LCmpIDAndBranch(LOperand* left, LOperand* right) { | 678 LCompareNumericAndBranch(LOperand* left, LOperand* right) { |
679 inputs_[0] = left; | 679 inputs_[0] = left; |
680 inputs_[1] = right; | 680 inputs_[1] = right; |
681 } | 681 } |
682 | 682 |
683 LOperand* left() { return inputs_[0]; } | 683 LOperand* left() { return inputs_[0]; } |
684 LOperand* right() { return inputs_[1]; } | 684 LOperand* right() { return inputs_[1]; } |
685 | 685 |
686 DECLARE_CONCRETE_INSTRUCTION(CmpIDAndBranch, "cmp-id-and-branch") | 686 DECLARE_CONCRETE_INSTRUCTION(CompareNumericAndBranch, |
687 DECLARE_HYDROGEN_ACCESSOR(CompareIDAndBranch) | 687 "compare-numeric-and-branch") |
| 688 DECLARE_HYDROGEN_ACCESSOR(CompareNumericAndBranch) |
688 | 689 |
689 Token::Value op() const { return hydrogen()->token(); } | 690 Token::Value op() const { return hydrogen()->token(); } |
690 bool is_double() const { | 691 bool is_double() const { |
691 return hydrogen()->representation().IsDouble(); | 692 return hydrogen()->representation().IsDouble(); |
692 } | 693 } |
693 | 694 |
694 virtual void PrintDataTo(StringStream* stream); | 695 virtual void PrintDataTo(StringStream* stream); |
695 }; | 696 }; |
696 | 697 |
697 | 698 |
(...skipping 2053 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2751 | 2752 |
2752 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2753 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
2753 }; | 2754 }; |
2754 | 2755 |
2755 #undef DECLARE_HYDROGEN_ACCESSOR | 2756 #undef DECLARE_HYDROGEN_ACCESSOR |
2756 #undef DECLARE_CONCRETE_INSTRUCTION | 2757 #undef DECLARE_CONCRETE_INSTRUCTION |
2757 | 2758 |
2758 } } // namespace v8::int | 2759 } } // namespace v8::int |
2759 | 2760 |
2760 #endif // V8_X64_LITHIUM_X64_H_ | 2761 #endif // V8_X64_LITHIUM_X64_H_ |
OLD | NEW |