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 610 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
705 DECLARE_CONCRETE_INSTRUCTION(MultiplyAddD, "multiply-add-d") | 705 DECLARE_CONCRETE_INSTRUCTION(MultiplyAddD, "multiply-add-d") |
706 }; | 706 }; |
707 | 707 |
708 | 708 |
709 class LDebugBreak: public LTemplateInstruction<0, 0, 0> { | 709 class LDebugBreak: public LTemplateInstruction<0, 0, 0> { |
710 public: | 710 public: |
711 DECLARE_CONCRETE_INSTRUCTION(DebugBreak, "break") | 711 DECLARE_CONCRETE_INSTRUCTION(DebugBreak, "break") |
712 }; | 712 }; |
713 | 713 |
714 | 714 |
715 class LCmpIDAndBranch: public LControlInstruction<2, 0> { | 715 class LCompareNumericAndBranch: public LControlInstruction<2, 0> { |
716 public: | 716 public: |
717 LCmpIDAndBranch(LOperand* left, LOperand* right) { | 717 LCompareNumericAndBranch(LOperand* left, LOperand* right) { |
718 inputs_[0] = left; | 718 inputs_[0] = left; |
719 inputs_[1] = right; | 719 inputs_[1] = right; |
720 } | 720 } |
721 | 721 |
722 LOperand* left() { return inputs_[0]; } | 722 LOperand* left() { return inputs_[0]; } |
723 LOperand* right() { return inputs_[1]; } | 723 LOperand* right() { return inputs_[1]; } |
724 | 724 |
725 DECLARE_CONCRETE_INSTRUCTION(CmpIDAndBranch, "cmp-id-and-branch") | 725 DECLARE_CONCRETE_INSTRUCTION(CompareNumericAndBranch, |
726 DECLARE_HYDROGEN_ACCESSOR(CompareIDAndBranch) | 726 "compare-numeric-and-branch") |
| 727 DECLARE_HYDROGEN_ACCESSOR(CompareNumericAndBranch) |
727 | 728 |
728 Token::Value op() const { return hydrogen()->token(); } | 729 Token::Value op() const { return hydrogen()->token(); } |
729 bool is_double() const { | 730 bool is_double() const { |
730 return hydrogen()->representation().IsDouble(); | 731 return hydrogen()->representation().IsDouble(); |
731 } | 732 } |
732 | 733 |
733 virtual void PrintDataTo(StringStream* stream); | 734 virtual void PrintDataTo(StringStream* stream); |
734 }; | 735 }; |
735 | 736 |
736 | 737 |
(...skipping 2086 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2823 | 2824 |
2824 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2825 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
2825 }; | 2826 }; |
2826 | 2827 |
2827 #undef DECLARE_HYDROGEN_ACCESSOR | 2828 #undef DECLARE_HYDROGEN_ACCESSOR |
2828 #undef DECLARE_CONCRETE_INSTRUCTION | 2829 #undef DECLARE_CONCRETE_INSTRUCTION |
2829 | 2830 |
2830 } } // namespace v8::internal | 2831 } } // namespace v8::internal |
2831 | 2832 |
2832 #endif // V8_MIPS_LITHIUM_MIPS_H_ | 2833 #endif // V8_MIPS_LITHIUM_MIPS_H_ |
OLD | NEW |