OLD | NEW |
1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 1277 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1288 inputs_[1] = value; | 1288 inputs_[1] = value; |
1289 temps_[0] = temp; | 1289 temps_[0] = temp; |
1290 } | 1290 } |
1291 | 1291 |
1292 DECLARE_CONCRETE_INSTRUCTION(StoreContextSlot, "store-context-slot") | 1292 DECLARE_CONCRETE_INSTRUCTION(StoreContextSlot, "store-context-slot") |
1293 DECLARE_HYDROGEN_ACCESSOR(StoreContextSlot) | 1293 DECLARE_HYDROGEN_ACCESSOR(StoreContextSlot) |
1294 | 1294 |
1295 LOperand* context() { return InputAt(0); } | 1295 LOperand* context() { return InputAt(0); } |
1296 LOperand* value() { return InputAt(1); } | 1296 LOperand* value() { return InputAt(1); } |
1297 int slot_index() { return hydrogen()->slot_index(); } | 1297 int slot_index() { return hydrogen()->slot_index(); } |
1298 int needs_write_barrier() { return hydrogen()->NeedsWriteBarrier(); } | |
1299 | 1298 |
1300 virtual void PrintDataTo(StringStream* stream); | 1299 virtual void PrintDataTo(StringStream* stream); |
1301 }; | 1300 }; |
1302 | 1301 |
1303 | 1302 |
1304 class LPushArgument: public LTemplateInstruction<0, 1, 0> { | 1303 class LPushArgument: public LTemplateInstruction<0, 1, 0> { |
1305 public: | 1304 public: |
1306 explicit LPushArgument(LOperand* value) { | 1305 explicit LPushArgument(LOperand* value) { |
1307 inputs_[0] = value; | 1306 inputs_[0] = value; |
1308 } | 1307 } |
(...skipping 301 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1610 DECLARE_HYDROGEN_ACCESSOR(StoreNamedField) | 1609 DECLARE_HYDROGEN_ACCESSOR(StoreNamedField) |
1611 | 1610 |
1612 virtual void PrintDataTo(StringStream* stream); | 1611 virtual void PrintDataTo(StringStream* stream); |
1613 | 1612 |
1614 LOperand* object() { return inputs_[0]; } | 1613 LOperand* object() { return inputs_[0]; } |
1615 LOperand* value() { return inputs_[1]; } | 1614 LOperand* value() { return inputs_[1]; } |
1616 | 1615 |
1617 Handle<Object> name() const { return hydrogen()->name(); } | 1616 Handle<Object> name() const { return hydrogen()->name(); } |
1618 bool is_in_object() { return hydrogen()->is_in_object(); } | 1617 bool is_in_object() { return hydrogen()->is_in_object(); } |
1619 int offset() { return hydrogen()->offset(); } | 1618 int offset() { return hydrogen()->offset(); } |
1620 bool needs_write_barrier() { return hydrogen()->NeedsWriteBarrier(); } | |
1621 Handle<Map> transition() const { return hydrogen()->transition(); } | 1619 Handle<Map> transition() const { return hydrogen()->transition(); } |
1622 }; | 1620 }; |
1623 | 1621 |
1624 | 1622 |
1625 class LStoreNamedGeneric: public LTemplateInstruction<0, 3, 0> { | 1623 class LStoreNamedGeneric: public LTemplateInstruction<0, 3, 0> { |
1626 public: | 1624 public: |
1627 LStoreNamedGeneric(LOperand* context, LOperand* object, LOperand* value) { | 1625 LStoreNamedGeneric(LOperand* context, LOperand* object, LOperand* value) { |
1628 inputs_[0] = context; | 1626 inputs_[0] = context; |
1629 inputs_[1] = object; | 1627 inputs_[1] = object; |
1630 inputs_[2] = value; | 1628 inputs_[2] = value; |
(...skipping 665 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2296 | 2294 |
2297 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2295 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
2298 }; | 2296 }; |
2299 | 2297 |
2300 #undef DECLARE_HYDROGEN_ACCESSOR | 2298 #undef DECLARE_HYDROGEN_ACCESSOR |
2301 #undef DECLARE_CONCRETE_INSTRUCTION | 2299 #undef DECLARE_CONCRETE_INSTRUCTION |
2302 | 2300 |
2303 } } // namespace v8::internal | 2301 } } // namespace v8::internal |
2304 | 2302 |
2305 #endif // V8_IA32_LITHIUM_IA32_H_ | 2303 #endif // V8_IA32_LITHIUM_IA32_H_ |
OLD | NEW |