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 1242 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1253 inputs_[0] = context; | 1253 inputs_[0] = context; |
1254 inputs_[1] = value; | 1254 inputs_[1] = value; |
1255 } | 1255 } |
1256 | 1256 |
1257 DECLARE_CONCRETE_INSTRUCTION(StoreContextSlot, "store-context-slot") | 1257 DECLARE_CONCRETE_INSTRUCTION(StoreContextSlot, "store-context-slot") |
1258 DECLARE_HYDROGEN_ACCESSOR(StoreContextSlot) | 1258 DECLARE_HYDROGEN_ACCESSOR(StoreContextSlot) |
1259 | 1259 |
1260 LOperand* context() { return InputAt(0); } | 1260 LOperand* context() { return InputAt(0); } |
1261 LOperand* value() { return InputAt(1); } | 1261 LOperand* value() { return InputAt(1); } |
1262 int slot_index() { return hydrogen()->slot_index(); } | 1262 int slot_index() { return hydrogen()->slot_index(); } |
1263 int needs_write_barrier() { return hydrogen()->NeedsWriteBarrier(); } | |
1264 | 1263 |
1265 virtual void PrintDataTo(StringStream* stream); | 1264 virtual void PrintDataTo(StringStream* stream); |
1266 }; | 1265 }; |
1267 | 1266 |
1268 | 1267 |
1269 class LPushArgument: public LTemplateInstruction<0, 1, 0> { | 1268 class LPushArgument: public LTemplateInstruction<0, 1, 0> { |
1270 public: | 1269 public: |
1271 explicit LPushArgument(LOperand* value) { | 1270 explicit LPushArgument(LOperand* value) { |
1272 inputs_[0] = value; | 1271 inputs_[0] = value; |
1273 } | 1272 } |
(...skipping 280 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1554 DECLARE_HYDROGEN_ACCESSOR(StoreNamedField) | 1553 DECLARE_HYDROGEN_ACCESSOR(StoreNamedField) |
1555 | 1554 |
1556 virtual void PrintDataTo(StringStream* stream); | 1555 virtual void PrintDataTo(StringStream* stream); |
1557 | 1556 |
1558 LOperand* object() { return inputs_[0]; } | 1557 LOperand* object() { return inputs_[0]; } |
1559 LOperand* value() { return inputs_[1]; } | 1558 LOperand* value() { return inputs_[1]; } |
1560 | 1559 |
1561 Handle<Object> name() const { return hydrogen()->name(); } | 1560 Handle<Object> name() const { return hydrogen()->name(); } |
1562 bool is_in_object() { return hydrogen()->is_in_object(); } | 1561 bool is_in_object() { return hydrogen()->is_in_object(); } |
1563 int offset() { return hydrogen()->offset(); } | 1562 int offset() { return hydrogen()->offset(); } |
1564 bool needs_write_barrier() { return hydrogen()->NeedsWriteBarrier(); } | |
1565 Handle<Map> transition() const { return hydrogen()->transition(); } | 1563 Handle<Map> transition() const { return hydrogen()->transition(); } |
1566 }; | 1564 }; |
1567 | 1565 |
1568 | 1566 |
1569 class LStoreNamedGeneric: public LTemplateInstruction<0, 2, 0> { | 1567 class LStoreNamedGeneric: public LTemplateInstruction<0, 2, 0> { |
1570 public: | 1568 public: |
1571 LStoreNamedGeneric(LOperand* obj, LOperand* val) { | 1569 LStoreNamedGeneric(LOperand* obj, LOperand* val) { |
1572 inputs_[0] = obj; | 1570 inputs_[0] = obj; |
1573 inputs_[1] = val; | 1571 inputs_[1] = val; |
1574 } | 1572 } |
(...skipping 613 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2188 | 2186 |
2189 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2187 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
2190 }; | 2188 }; |
2191 | 2189 |
2192 #undef DECLARE_HYDROGEN_ACCESSOR | 2190 #undef DECLARE_HYDROGEN_ACCESSOR |
2193 #undef DECLARE_CONCRETE_INSTRUCTION | 2191 #undef DECLARE_CONCRETE_INSTRUCTION |
2194 | 2192 |
2195 } } // namespace v8::internal | 2193 } } // namespace v8::internal |
2196 | 2194 |
2197 #endif // V8_ARM_LITHIUM_ARM_H_ | 2195 #endif // V8_ARM_LITHIUM_ARM_H_ |
OLD | NEW |