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 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
169 V(ThisFunction) \ | 169 V(ThisFunction) \ |
170 V(Throw) \ | 170 V(Throw) \ |
171 V(ToFastProperties) \ | 171 V(ToFastProperties) \ |
172 V(TransitionElementsKind) \ | 172 V(TransitionElementsKind) \ |
173 V(TrapAllocationMemento) \ | 173 V(TrapAllocationMemento) \ |
174 V(Typeof) \ | 174 V(Typeof) \ |
175 V(TypeofIsAndBranch) \ | 175 V(TypeofIsAndBranch) \ |
176 V(Uint32ToDouble) \ | 176 V(Uint32ToDouble) \ |
177 V(Uint32ToSmi) \ | 177 V(Uint32ToSmi) \ |
178 V(UnknownOSRValue) \ | 178 V(UnknownOSRValue) \ |
179 V(ValueOf) \ | |
180 V(WrapReceiver) | 179 V(WrapReceiver) |
181 | 180 |
182 | 181 |
183 #define DECLARE_CONCRETE_INSTRUCTION(type, mnemonic) \ | 182 #define DECLARE_CONCRETE_INSTRUCTION(type, mnemonic) \ |
184 virtual Opcode opcode() const V8_FINAL V8_OVERRIDE { \ | 183 virtual Opcode opcode() const V8_FINAL V8_OVERRIDE { \ |
185 return LInstruction::k##type; \ | 184 return LInstruction::k##type; \ |
186 } \ | 185 } \ |
187 virtual void CompileToNative(LCodeGen* generator) V8_FINAL V8_OVERRIDE; \ | 186 virtual void CompileToNative(LCodeGen* generator) V8_FINAL V8_OVERRIDE; \ |
188 virtual const char* Mnemonic() const V8_FINAL V8_OVERRIDE { \ | 187 virtual const char* Mnemonic() const V8_FINAL V8_OVERRIDE { \ |
189 return mnemonic; \ | 188 return mnemonic; \ |
(...skipping 1084 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1274 inputs_[0] = value; | 1273 inputs_[0] = value; |
1275 } | 1274 } |
1276 | 1275 |
1277 LOperand* value() { return inputs_[0]; } | 1276 LOperand* value() { return inputs_[0]; } |
1278 | 1277 |
1279 DECLARE_CONCRETE_INSTRUCTION(ElementsKind, "elements-kind") | 1278 DECLARE_CONCRETE_INSTRUCTION(ElementsKind, "elements-kind") |
1280 DECLARE_HYDROGEN_ACCESSOR(ElementsKind) | 1279 DECLARE_HYDROGEN_ACCESSOR(ElementsKind) |
1281 }; | 1280 }; |
1282 | 1281 |
1283 | 1282 |
1284 class LValueOf V8_FINAL : public LTemplateInstruction<1, 1, 1> { | |
1285 public: | |
1286 LValueOf(LOperand* value, LOperand* temp) { | |
1287 inputs_[0] = value; | |
1288 temps_[0] = temp; | |
1289 } | |
1290 | |
1291 LOperand* value() { return inputs_[0]; } | |
1292 LOperand* temp() { return temps_[0]; } | |
1293 | |
1294 DECLARE_CONCRETE_INSTRUCTION(ValueOf, "value-of") | |
1295 DECLARE_HYDROGEN_ACCESSOR(ValueOf) | |
1296 }; | |
1297 | |
1298 | |
1299 class LDateField V8_FINAL : public LTemplateInstruction<1, 1, 1> { | 1283 class LDateField V8_FINAL : public LTemplateInstruction<1, 1, 1> { |
1300 public: | 1284 public: |
1301 LDateField(LOperand* date, LOperand* temp, Smi* index) | 1285 LDateField(LOperand* date, LOperand* temp, Smi* index) |
1302 : index_(index) { | 1286 : index_(index) { |
1303 inputs_[0] = date; | 1287 inputs_[0] = date; |
1304 temps_[0] = temp; | 1288 temps_[0] = temp; |
1305 } | 1289 } |
1306 | 1290 |
1307 LOperand* date() { return inputs_[0]; } | 1291 LOperand* date() { return inputs_[0]; } |
1308 LOperand* temp() { return temps_[0]; } | 1292 LOperand* temp() { return temps_[0]; } |
(...skipping 1476 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2785 | 2769 |
2786 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2770 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
2787 }; | 2771 }; |
2788 | 2772 |
2789 #undef DECLARE_HYDROGEN_ACCESSOR | 2773 #undef DECLARE_HYDROGEN_ACCESSOR |
2790 #undef DECLARE_CONCRETE_INSTRUCTION | 2774 #undef DECLARE_CONCRETE_INSTRUCTION |
2791 | 2775 |
2792 } } // namespace v8::internal | 2776 } } // namespace v8::internal |
2793 | 2777 |
2794 #endif // V8_IA32_LITHIUM_IA32_H_ | 2778 #endif // V8_IA32_LITHIUM_IA32_H_ |
OLD | NEW |