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 360 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1630 DECLARE_CONCRETE_INSTRUCTION(StoreNamedGeneric, "store-named-generic") | 1630 DECLARE_CONCRETE_INSTRUCTION(StoreNamedGeneric, "store-named-generic") |
1631 DECLARE_HYDROGEN_ACCESSOR(StoreNamedGeneric) | 1631 DECLARE_HYDROGEN_ACCESSOR(StoreNamedGeneric) |
1632 | 1632 |
1633 virtual void PrintDataTo(StringStream* stream); | 1633 virtual void PrintDataTo(StringStream* stream); |
1634 | 1634 |
1635 LOperand* context() { return inputs_[0]; } | 1635 LOperand* context() { return inputs_[0]; } |
1636 LOperand* object() { return inputs_[1]; } | 1636 LOperand* object() { return inputs_[1]; } |
1637 LOperand* value() { return inputs_[2]; } | 1637 LOperand* value() { return inputs_[2]; } |
1638 Handle<Object> name() const { return hydrogen()->name(); } | 1638 Handle<Object> name() const { return hydrogen()->name(); } |
1639 StrictModeFlag strict_mode_flag() { return hydrogen()->strict_mode_flag(); } | 1639 StrictModeFlag strict_mode_flag() { return hydrogen()->strict_mode_flag(); } |
1640 bool strict_mode() { return strict_mode_flag() == kStrictMode; } | |
1641 }; | 1640 }; |
1642 | 1641 |
1643 | 1642 |
1644 class LStoreKeyedFastElement: public LTemplateInstruction<0, 3, 0> { | 1643 class LStoreKeyedFastElement: public LTemplateInstruction<0, 3, 0> { |
1645 public: | 1644 public: |
1646 LStoreKeyedFastElement(LOperand* obj, LOperand* key, LOperand* val) { | 1645 LStoreKeyedFastElement(LOperand* obj, LOperand* key, LOperand* val) { |
1647 inputs_[0] = obj; | 1646 inputs_[0] = obj; |
1648 inputs_[1] = key; | 1647 inputs_[1] = key; |
1649 inputs_[2] = val; | 1648 inputs_[2] = val; |
1650 } | 1649 } |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1720 | 1719 |
1721 DECLARE_CONCRETE_INSTRUCTION(StoreKeyedGeneric, "store-keyed-generic") | 1720 DECLARE_CONCRETE_INSTRUCTION(StoreKeyedGeneric, "store-keyed-generic") |
1722 DECLARE_HYDROGEN_ACCESSOR(StoreKeyedGeneric) | 1721 DECLARE_HYDROGEN_ACCESSOR(StoreKeyedGeneric) |
1723 | 1722 |
1724 virtual void PrintDataTo(StringStream* stream); | 1723 virtual void PrintDataTo(StringStream* stream); |
1725 | 1724 |
1726 LOperand* context() { return inputs_[0]; } | 1725 LOperand* context() { return inputs_[0]; } |
1727 LOperand* object() { return inputs_[1]; } | 1726 LOperand* object() { return inputs_[1]; } |
1728 LOperand* key() { return inputs_[2]; } | 1727 LOperand* key() { return inputs_[2]; } |
1729 LOperand* value() { return inputs_[3]; } | 1728 LOperand* value() { return inputs_[3]; } |
1730 bool strict_mode() { return hydrogen()->strict_mode(); } | 1729 StrictModeFlag strict_mode_flag() { return hydrogen()->strict_mode_flag(); } |
1731 }; | 1730 }; |
1732 | 1731 |
1733 | 1732 |
1734 class LTransitionElementsKind: public LTemplateInstruction<1, 1, 2> { | 1733 class LTransitionElementsKind: public LTemplateInstruction<1, 1, 2> { |
1735 public: | 1734 public: |
1736 LTransitionElementsKind(LOperand* object, | 1735 LTransitionElementsKind(LOperand* object, |
1737 LOperand* new_map_temp, | 1736 LOperand* new_map_temp, |
1738 LOperand* temp_reg) { | 1737 LOperand* temp_reg) { |
1739 inputs_[0] = object; | 1738 inputs_[0] = object; |
1740 temps_[0] = new_map_temp; | 1739 temps_[0] = new_map_temp; |
(...skipping 579 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2320 | 2319 |
2321 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2320 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
2322 }; | 2321 }; |
2323 | 2322 |
2324 #undef DECLARE_HYDROGEN_ACCESSOR | 2323 #undef DECLARE_HYDROGEN_ACCESSOR |
2325 #undef DECLARE_CONCRETE_INSTRUCTION | 2324 #undef DECLARE_CONCRETE_INSTRUCTION |
2326 | 2325 |
2327 } } // namespace v8::internal | 2326 } } // namespace v8::internal |
2328 | 2327 |
2329 #endif // V8_IA32_LITHIUM_IA32_H_ | 2328 #endif // V8_IA32_LITHIUM_IA32_H_ |
OLD | NEW |