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 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
170 V(ThisFunction) \ | 170 V(ThisFunction) \ |
171 V(Throw) \ | 171 V(Throw) \ |
172 V(ToFastProperties) \ | 172 V(ToFastProperties) \ |
173 V(TransitionElementsKind) \ | 173 V(TransitionElementsKind) \ |
174 V(TrapAllocationMemento) \ | 174 V(TrapAllocationMemento) \ |
175 V(Typeof) \ | 175 V(Typeof) \ |
176 V(TypeofIsAndBranch) \ | 176 V(TypeofIsAndBranch) \ |
177 V(Uint32ToDouble) \ | 177 V(Uint32ToDouble) \ |
178 V(Uint32ToSmi) \ | 178 V(Uint32ToSmi) \ |
179 V(UnknownOSRValue) \ | 179 V(UnknownOSRValue) \ |
180 V(ValueOf) \ | |
181 V(WrapReceiver) | 180 V(WrapReceiver) |
182 | 181 |
183 | 182 |
184 #define DECLARE_CONCRETE_INSTRUCTION(type, mnemonic) \ | 183 #define DECLARE_CONCRETE_INSTRUCTION(type, mnemonic) \ |
185 virtual Opcode opcode() const V8_FINAL V8_OVERRIDE { \ | 184 virtual Opcode opcode() const V8_FINAL V8_OVERRIDE { \ |
186 return LInstruction::k##type; \ | 185 return LInstruction::k##type; \ |
187 } \ | 186 } \ |
188 virtual void CompileToNative(LCodeGen* generator) V8_FINAL V8_OVERRIDE; \ | 187 virtual void CompileToNative(LCodeGen* generator) V8_FINAL V8_OVERRIDE; \ |
189 virtual const char* Mnemonic() const V8_FINAL V8_OVERRIDE { \ | 188 virtual const char* Mnemonic() const V8_FINAL V8_OVERRIDE { \ |
190 return mnemonic; \ | 189 return mnemonic; \ |
(...skipping 1110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1301 inputs_[0] = value; | 1300 inputs_[0] = value; |
1302 } | 1301 } |
1303 | 1302 |
1304 LOperand* value() { return inputs_[0]; } | 1303 LOperand* value() { return inputs_[0]; } |
1305 | 1304 |
1306 DECLARE_CONCRETE_INSTRUCTION(ElementsKind, "elements-kind") | 1305 DECLARE_CONCRETE_INSTRUCTION(ElementsKind, "elements-kind") |
1307 DECLARE_HYDROGEN_ACCESSOR(ElementsKind) | 1306 DECLARE_HYDROGEN_ACCESSOR(ElementsKind) |
1308 }; | 1307 }; |
1309 | 1308 |
1310 | 1309 |
1311 class LValueOf V8_FINAL : public LTemplateInstruction<1, 1, 1> { | |
1312 public: | |
1313 LValueOf(LOperand* value, LOperand* temp) { | |
1314 inputs_[0] = value; | |
1315 temps_[0] = temp; | |
1316 } | |
1317 | |
1318 LOperand* value() { return inputs_[0]; } | |
1319 LOperand* temp() { return temps_[0]; } | |
1320 | |
1321 DECLARE_CONCRETE_INSTRUCTION(ValueOf, "value-of") | |
1322 DECLARE_HYDROGEN_ACCESSOR(ValueOf) | |
1323 }; | |
1324 | |
1325 | |
1326 class LDateField V8_FINAL : public LTemplateInstruction<1, 1, 1> { | 1310 class LDateField V8_FINAL : public LTemplateInstruction<1, 1, 1> { |
1327 public: | 1311 public: |
1328 LDateField(LOperand* date, LOperand* temp, Smi* index) : index_(index) { | 1312 LDateField(LOperand* date, LOperand* temp, Smi* index) : index_(index) { |
1329 inputs_[0] = date; | 1313 inputs_[0] = date; |
1330 temps_[0] = temp; | 1314 temps_[0] = temp; |
1331 } | 1315 } |
1332 | 1316 |
1333 LOperand* date() { return inputs_[0]; } | 1317 LOperand* date() { return inputs_[0]; } |
1334 LOperand* temp() { return temps_[0]; } | 1318 LOperand* temp() { return temps_[0]; } |
1335 Smi* index() const { return index_; } | 1319 Smi* index() const { return index_; } |
(...skipping 1431 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2767 | 2751 |
2768 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2752 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
2769 }; | 2753 }; |
2770 | 2754 |
2771 #undef DECLARE_HYDROGEN_ACCESSOR | 2755 #undef DECLARE_HYDROGEN_ACCESSOR |
2772 #undef DECLARE_CONCRETE_INSTRUCTION | 2756 #undef DECLARE_CONCRETE_INSTRUCTION |
2773 | 2757 |
2774 } } // namespace v8::internal | 2758 } } // namespace v8::internal |
2775 | 2759 |
2776 #endif // V8_ARM_LITHIUM_ARM_H_ | 2760 #endif // V8_ARM_LITHIUM_ARM_H_ |
OLD | NEW |