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 1238 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1249 inputs_[2] = value; | 1249 inputs_[2] = value; |
1250 } | 1250 } |
1251 | 1251 |
1252 DECLARE_CONCRETE_INSTRUCTION(StoreGlobalGeneric, "store-global-generic") | 1252 DECLARE_CONCRETE_INSTRUCTION(StoreGlobalGeneric, "store-global-generic") |
1253 DECLARE_HYDROGEN_ACCESSOR(StoreGlobalGeneric) | 1253 DECLARE_HYDROGEN_ACCESSOR(StoreGlobalGeneric) |
1254 | 1254 |
1255 LOperand* context() { return InputAt(0); } | 1255 LOperand* context() { return InputAt(0); } |
1256 LOperand* global_object() { return InputAt(1); } | 1256 LOperand* global_object() { return InputAt(1); } |
1257 Handle<Object> name() const { return hydrogen()->name(); } | 1257 Handle<Object> name() const { return hydrogen()->name(); } |
1258 LOperand* value() { return InputAt(2); } | 1258 LOperand* value() { return InputAt(2); } |
1259 bool strict_mode() { return hydrogen()->strict_mode(); } | 1259 StrictModeFlag strict_mode_flag() { return hydrogen()->strict_mode_flag(); } |
1260 }; | 1260 }; |
1261 | 1261 |
1262 | 1262 |
1263 class LLoadContextSlot: public LTemplateInstruction<1, 1, 0> { | 1263 class LLoadContextSlot: public LTemplateInstruction<1, 1, 0> { |
1264 public: | 1264 public: |
1265 explicit LLoadContextSlot(LOperand* context) { | 1265 explicit LLoadContextSlot(LOperand* context) { |
1266 inputs_[0] = context; | 1266 inputs_[0] = context; |
1267 } | 1267 } |
1268 | 1268 |
1269 DECLARE_CONCRETE_INSTRUCTION(LoadContextSlot, "load-context-slot") | 1269 DECLARE_CONCRETE_INSTRUCTION(LoadContextSlot, "load-context-slot") |
(...skipping 358 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1628 DECLARE_CONCRETE_INSTRUCTION(StoreNamedGeneric, "store-named-generic") | 1628 DECLARE_CONCRETE_INSTRUCTION(StoreNamedGeneric, "store-named-generic") |
1629 DECLARE_HYDROGEN_ACCESSOR(StoreNamedGeneric) | 1629 DECLARE_HYDROGEN_ACCESSOR(StoreNamedGeneric) |
1630 | 1630 |
1631 virtual void PrintDataTo(StringStream* stream); | 1631 virtual void PrintDataTo(StringStream* stream); |
1632 | 1632 |
1633 LOperand* context() { return inputs_[0]; } | 1633 LOperand* context() { return inputs_[0]; } |
1634 LOperand* object() { return inputs_[1]; } | 1634 LOperand* object() { return inputs_[1]; } |
1635 LOperand* value() { return inputs_[2]; } | 1635 LOperand* value() { return inputs_[2]; } |
1636 Handle<Object> name() const { return hydrogen()->name(); } | 1636 Handle<Object> name() const { return hydrogen()->name(); } |
1637 StrictModeFlag strict_mode_flag() { return hydrogen()->strict_mode_flag(); } | 1637 StrictModeFlag strict_mode_flag() { return hydrogen()->strict_mode_flag(); } |
1638 bool strict_mode() { return strict_mode_flag() == kStrictMode; } | |
1639 }; | 1638 }; |
1640 | 1639 |
1641 | 1640 |
1642 class LStoreKeyedFastElement: public LTemplateInstruction<0, 3, 0> { | 1641 class LStoreKeyedFastElement: public LTemplateInstruction<0, 3, 0> { |
1643 public: | 1642 public: |
1644 LStoreKeyedFastElement(LOperand* obj, LOperand* key, LOperand* val) { | 1643 LStoreKeyedFastElement(LOperand* obj, LOperand* key, LOperand* val) { |
1645 inputs_[0] = obj; | 1644 inputs_[0] = obj; |
1646 inputs_[1] = key; | 1645 inputs_[1] = key; |
1647 inputs_[2] = val; | 1646 inputs_[2] = val; |
1648 } | 1647 } |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1718 | 1717 |
1719 DECLARE_CONCRETE_INSTRUCTION(StoreKeyedGeneric, "store-keyed-generic") | 1718 DECLARE_CONCRETE_INSTRUCTION(StoreKeyedGeneric, "store-keyed-generic") |
1720 DECLARE_HYDROGEN_ACCESSOR(StoreKeyedGeneric) | 1719 DECLARE_HYDROGEN_ACCESSOR(StoreKeyedGeneric) |
1721 | 1720 |
1722 virtual void PrintDataTo(StringStream* stream); | 1721 virtual void PrintDataTo(StringStream* stream); |
1723 | 1722 |
1724 LOperand* context() { return inputs_[0]; } | 1723 LOperand* context() { return inputs_[0]; } |
1725 LOperand* object() { return inputs_[1]; } | 1724 LOperand* object() { return inputs_[1]; } |
1726 LOperand* key() { return inputs_[2]; } | 1725 LOperand* key() { return inputs_[2]; } |
1727 LOperand* value() { return inputs_[3]; } | 1726 LOperand* value() { return inputs_[3]; } |
1728 bool strict_mode() { return hydrogen()->strict_mode(); } | 1727 StrictModeFlag strict_mode_flag() { return hydrogen()->strict_mode_flag(); } |
1729 }; | 1728 }; |
1730 | 1729 |
1731 | 1730 |
1732 class LTransitionElementsKind: public LTemplateInstruction<1, 1, 2> { | 1731 class LTransitionElementsKind: public LTemplateInstruction<1, 1, 2> { |
1733 public: | 1732 public: |
1734 LTransitionElementsKind(LOperand* object, | 1733 LTransitionElementsKind(LOperand* object, |
1735 LOperand* new_map_temp, | 1734 LOperand* new_map_temp, |
1736 LOperand* temp_reg) { | 1735 LOperand* temp_reg) { |
1737 inputs_[0] = object; | 1736 inputs_[0] = object; |
1738 temps_[0] = new_map_temp; | 1737 temps_[0] = new_map_temp; |
(...skipping 579 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2318 | 2317 |
2319 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2318 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
2320 }; | 2319 }; |
2321 | 2320 |
2322 #undef DECLARE_HYDROGEN_ACCESSOR | 2321 #undef DECLARE_HYDROGEN_ACCESSOR |
2323 #undef DECLARE_CONCRETE_INSTRUCTION | 2322 #undef DECLARE_CONCRETE_INSTRUCTION |
2324 | 2323 |
2325 } } // namespace v8::internal | 2324 } } // namespace v8::internal |
2326 | 2325 |
2327 #endif // V8_IA32_LITHIUM_IA32_H_ | 2326 #endif // V8_IA32_LITHIUM_IA32_H_ |
OLD | NEW |