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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
65 V(CheckInstanceType) \ | 65 V(CheckInstanceType) \ |
66 V(CheckMaps) \ | 66 V(CheckMaps) \ |
67 V(CheckMapValue) \ | 67 V(CheckMapValue) \ |
68 V(CheckNonSmi) \ | 68 V(CheckNonSmi) \ |
69 V(CheckSmi) \ | 69 V(CheckSmi) \ |
70 V(CheckValue) \ | 70 V(CheckValue) \ |
71 V(ClampDToUint8) \ | 71 V(ClampDToUint8) \ |
72 V(ClampIToUint8) \ | 72 V(ClampIToUint8) \ |
73 V(ClampTToUint8) \ | 73 V(ClampTToUint8) \ |
74 V(ClassOfTestAndBranch) \ | 74 V(ClassOfTestAndBranch) \ |
| 75 V(CompareMinusZeroAndBranch) \ |
75 V(CompareNumericAndBranch) \ | 76 V(CompareNumericAndBranch) \ |
76 V(CmpObjectEqAndBranch) \ | 77 V(CmpObjectEqAndBranch) \ |
77 V(CmpHoleAndBranch) \ | 78 V(CmpHoleAndBranch) \ |
78 V(CmpMapAndBranch) \ | 79 V(CmpMapAndBranch) \ |
79 V(CmpT) \ | 80 V(CmpT) \ |
80 V(ConstantD) \ | 81 V(ConstantD) \ |
81 V(ConstantE) \ | 82 V(ConstantE) \ |
82 V(ConstantI) \ | 83 V(ConstantI) \ |
83 V(ConstantS) \ | 84 V(ConstantS) \ |
84 V(ConstantT) \ | 85 V(ConstantT) \ |
(...skipping 831 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
916 inputs_[0] = object; | 917 inputs_[0] = object; |
917 } | 918 } |
918 | 919 |
919 LOperand* object() { return inputs_[0]; } | 920 LOperand* object() { return inputs_[0]; } |
920 | 921 |
921 DECLARE_CONCRETE_INSTRUCTION(CmpHoleAndBranch, "cmp-hole-and-branch") | 922 DECLARE_CONCRETE_INSTRUCTION(CmpHoleAndBranch, "cmp-hole-and-branch") |
922 DECLARE_HYDROGEN_ACCESSOR(CompareHoleAndBranch) | 923 DECLARE_HYDROGEN_ACCESSOR(CompareHoleAndBranch) |
923 }; | 924 }; |
924 | 925 |
925 | 926 |
| 927 class LCompareMinusZeroAndBranch V8_FINAL : public LControlInstruction<1, 1> { |
| 928 public: |
| 929 LCompareMinusZeroAndBranch(LOperand* value, LOperand* temp) { |
| 930 inputs_[0] = value; |
| 931 temps_[0] = temp; |
| 932 } |
| 933 |
| 934 LOperand* value() { return inputs_[0]; } |
| 935 LOperand* temp() { return temps_[0]; } |
| 936 |
| 937 DECLARE_CONCRETE_INSTRUCTION(CompareMinusZeroAndBranch, |
| 938 "cmp-minus-zero-and-branch") |
| 939 DECLARE_HYDROGEN_ACCESSOR(CompareMinusZeroAndBranch) |
| 940 }; |
| 941 |
| 942 |
926 class LIsObjectAndBranch V8_FINAL : public LControlInstruction<1, 1> { | 943 class LIsObjectAndBranch V8_FINAL : public LControlInstruction<1, 1> { |
927 public: | 944 public: |
928 LIsObjectAndBranch(LOperand* value, LOperand* temp) { | 945 LIsObjectAndBranch(LOperand* value, LOperand* temp) { |
929 inputs_[0] = value; | 946 inputs_[0] = value; |
930 temps_[0] = temp; | 947 temps_[0] = temp; |
931 } | 948 } |
932 | 949 |
933 LOperand* value() { return inputs_[0]; } | 950 LOperand* value() { return inputs_[0]; } |
934 LOperand* temp() { return temps_[0]; } | 951 LOperand* temp() { return temps_[0]; } |
935 | 952 |
(...skipping 1956 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2892 | 2909 |
2893 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2910 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
2894 }; | 2911 }; |
2895 | 2912 |
2896 #undef DECLARE_HYDROGEN_ACCESSOR | 2913 #undef DECLARE_HYDROGEN_ACCESSOR |
2897 #undef DECLARE_CONCRETE_INSTRUCTION | 2914 #undef DECLARE_CONCRETE_INSTRUCTION |
2898 | 2915 |
2899 } } // namespace v8::internal | 2916 } } // namespace v8::internal |
2900 | 2917 |
2901 #endif // V8_MIPS_LITHIUM_MIPS_H_ | 2918 #endif // V8_MIPS_LITHIUM_MIPS_H_ |
OLD | NEW |