| 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 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 152 V(Return) \ | 152 V(Return) \ |
| 153 V(SeqStringGetChar) \ | 153 V(SeqStringGetChar) \ |
| 154 V(SeqStringSetChar) \ | 154 V(SeqStringSetChar) \ |
| 155 V(ShiftI) \ | 155 V(ShiftI) \ |
| 156 V(SmiTag) \ | 156 V(SmiTag) \ |
| 157 V(SmiUntag) \ | 157 V(SmiUntag) \ |
| 158 V(StackCheck) \ | 158 V(StackCheck) \ |
| 159 V(StoreCodeEntry) \ | 159 V(StoreCodeEntry) \ |
| 160 V(StoreContextSlot) \ | 160 V(StoreContextSlot) \ |
| 161 V(StoreGlobalCell) \ | 161 V(StoreGlobalCell) \ |
| 162 V(StoreGlobalGeneric) \ | |
| 163 V(StoreKeyed) \ | 162 V(StoreKeyed) \ |
| 164 V(StoreKeyedGeneric) \ | 163 V(StoreKeyedGeneric) \ |
| 165 V(StoreNamedField) \ | 164 V(StoreNamedField) \ |
| 166 V(StoreNamedGeneric) \ | 165 V(StoreNamedGeneric) \ |
| 167 V(StringAdd) \ | 166 V(StringAdd) \ |
| 168 V(StringCharCodeAt) \ | 167 V(StringCharCodeAt) \ |
| 169 V(StringCharFromCode) \ | 168 V(StringCharFromCode) \ |
| 170 V(StringCompareAndBranch) \ | 169 V(StringCompareAndBranch) \ |
| 171 V(SubI) \ | 170 V(SubI) \ |
| 172 V(TaggedToI) \ | 171 V(TaggedToI) \ |
| (...skipping 1466 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1639 } | 1638 } |
| 1640 | 1639 |
| 1641 LOperand* value() { return inputs_[0]; } | 1640 LOperand* value() { return inputs_[0]; } |
| 1642 LOperand* temp() { return temps_[0]; } | 1641 LOperand* temp() { return temps_[0]; } |
| 1643 | 1642 |
| 1644 DECLARE_CONCRETE_INSTRUCTION(StoreGlobalCell, "store-global-cell") | 1643 DECLARE_CONCRETE_INSTRUCTION(StoreGlobalCell, "store-global-cell") |
| 1645 DECLARE_HYDROGEN_ACCESSOR(StoreGlobalCell) | 1644 DECLARE_HYDROGEN_ACCESSOR(StoreGlobalCell) |
| 1646 }; | 1645 }; |
| 1647 | 1646 |
| 1648 | 1647 |
| 1649 class LStoreGlobalGeneric V8_FINAL : public LTemplateInstruction<0, 3, 0> { | |
| 1650 public: | |
| 1651 LStoreGlobalGeneric(LOperand* context, | |
| 1652 LOperand* global_object, | |
| 1653 LOperand* value) { | |
| 1654 inputs_[0] = context; | |
| 1655 inputs_[1] = global_object; | |
| 1656 inputs_[2] = value; | |
| 1657 } | |
| 1658 | |
| 1659 LOperand* context() { return inputs_[0]; } | |
| 1660 LOperand* global_object() { return inputs_[1]; } | |
| 1661 LOperand* value() { return inputs_[2]; } | |
| 1662 | |
| 1663 DECLARE_CONCRETE_INSTRUCTION(StoreGlobalGeneric, "store-global-generic") | |
| 1664 DECLARE_HYDROGEN_ACCESSOR(StoreGlobalGeneric) | |
| 1665 | |
| 1666 Handle<Object> name() const { return hydrogen()->name(); } | |
| 1667 StrictModeFlag strict_mode_flag() { return hydrogen()->strict_mode_flag(); } | |
| 1668 }; | |
| 1669 | |
| 1670 | |
| 1671 class LLoadContextSlot V8_FINAL : public LTemplateInstruction<1, 1, 0> { | 1648 class LLoadContextSlot V8_FINAL : public LTemplateInstruction<1, 1, 0> { |
| 1672 public: | 1649 public: |
| 1673 explicit LLoadContextSlot(LOperand* context) { | 1650 explicit LLoadContextSlot(LOperand* context) { |
| 1674 inputs_[0] = context; | 1651 inputs_[0] = context; |
| 1675 } | 1652 } |
| 1676 | 1653 |
| 1677 LOperand* context() { return inputs_[0]; } | 1654 LOperand* context() { return inputs_[0]; } |
| 1678 | 1655 |
| 1679 DECLARE_CONCRETE_INSTRUCTION(LoadContextSlot, "load-context-slot") | 1656 DECLARE_CONCRETE_INSTRUCTION(LoadContextSlot, "load-context-slot") |
| 1680 DECLARE_HYDROGEN_ACCESSOR(LoadContextSlot) | 1657 DECLARE_HYDROGEN_ACCESSOR(LoadContextSlot) |
| (...skipping 1137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2818 | 2795 |
| 2819 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2796 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
| 2820 }; | 2797 }; |
| 2821 | 2798 |
| 2822 #undef DECLARE_HYDROGEN_ACCESSOR | 2799 #undef DECLARE_HYDROGEN_ACCESSOR |
| 2823 #undef DECLARE_CONCRETE_INSTRUCTION | 2800 #undef DECLARE_CONCRETE_INSTRUCTION |
| 2824 | 2801 |
| 2825 } } // namespace v8::internal | 2802 } } // namespace v8::internal |
| 2826 | 2803 |
| 2827 #endif // V8_MIPS_LITHIUM_MIPS_H_ | 2804 #endif // V8_MIPS_LITHIUM_MIPS_H_ |
| OLD | NEW |