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 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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(CmpIDAndBranch) \ |
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(ConstantT) \ | 91 V(ConstantT) \ |
91 V(Context) \ | 92 V(Context) \ |
92 V(DebugBreak) \ | 93 V(DebugBreak) \ |
93 V(DeclareGlobals) \ | 94 V(DeclareGlobals) \ |
94 V(DeleteProperty) \ | 95 V(DeleteProperty) \ |
95 V(Deoptimize) \ | 96 V(Deoptimize) \ |
96 V(DivI) \ | 97 V(DivI) \ |
97 V(DoubleToI) \ | 98 V(DoubleToI) \ |
98 V(DoubleToSmi) \ | 99 V(DoubleToSmi) \ |
99 V(DummyUse) \ | 100 V(DummyUse) \ |
(...skipping 1046 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1146 | 1147 |
1147 class LConstantI: public LTemplateInstruction<1, 0, 0> { | 1148 class LConstantI: public LTemplateInstruction<1, 0, 0> { |
1148 public: | 1149 public: |
1149 DECLARE_CONCRETE_INSTRUCTION(ConstantI, "constant-i") | 1150 DECLARE_CONCRETE_INSTRUCTION(ConstantI, "constant-i") |
1150 DECLARE_HYDROGEN_ACCESSOR(Constant) | 1151 DECLARE_HYDROGEN_ACCESSOR(Constant) |
1151 | 1152 |
1152 int32_t value() const { return hydrogen()->Integer32Value(); } | 1153 int32_t value() const { return hydrogen()->Integer32Value(); } |
1153 }; | 1154 }; |
1154 | 1155 |
1155 | 1156 |
| 1157 class LConstantS: public LTemplateInstruction<1, 0, 0> { |
| 1158 public: |
| 1159 DECLARE_CONCRETE_INSTRUCTION(ConstantS, "constant-s") |
| 1160 DECLARE_HYDROGEN_ACCESSOR(Constant) |
| 1161 |
| 1162 Smi* value() const { return Smi::FromInt(hydrogen()->Integer32Value()); } |
| 1163 }; |
| 1164 |
| 1165 |
1156 class LConstantD: public LTemplateInstruction<1, 0, 0> { | 1166 class LConstantD: public LTemplateInstruction<1, 0, 0> { |
1157 public: | 1167 public: |
1158 DECLARE_CONCRETE_INSTRUCTION(ConstantD, "constant-d") | 1168 DECLARE_CONCRETE_INSTRUCTION(ConstantD, "constant-d") |
1159 DECLARE_HYDROGEN_ACCESSOR(Constant) | 1169 DECLARE_HYDROGEN_ACCESSOR(Constant) |
1160 | 1170 |
1161 double value() const { return hydrogen()->DoubleValue(); } | 1171 double value() const { return hydrogen()->DoubleValue(); } |
1162 }; | 1172 }; |
1163 | 1173 |
1164 | 1174 |
1165 class LConstantT: public LTemplateInstruction<1, 0, 0> { | 1175 class LConstantT: public LTemplateInstruction<1, 0, 0> { |
(...skipping 1621 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2787 | 2797 |
2788 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2798 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
2789 }; | 2799 }; |
2790 | 2800 |
2791 #undef DECLARE_HYDROGEN_ACCESSOR | 2801 #undef DECLARE_HYDROGEN_ACCESSOR |
2792 #undef DECLARE_CONCRETE_INSTRUCTION | 2802 #undef DECLARE_CONCRETE_INSTRUCTION |
2793 | 2803 |
2794 } } // namespace v8::internal | 2804 } } // namespace v8::internal |
2795 | 2805 |
2796 #endif // V8_MIPS_LITHIUM_MIPS_H_ | 2806 #endif // V8_MIPS_LITHIUM_MIPS_H_ |
OLD | NEW |