OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef V8_MIPS_LITHIUM_MIPS_H_ | 5 #ifndef V8_MIPS_LITHIUM_MIPS_H_ |
6 #define V8_MIPS_LITHIUM_MIPS_H_ | 6 #define V8_MIPS_LITHIUM_MIPS_H_ |
7 | 7 |
8 #include "src/hydrogen.h" | 8 #include "src/hydrogen.h" |
9 #include "src/lithium.h" | 9 #include "src/lithium.h" |
10 #include "src/lithium-allocator.h" | 10 #include "src/lithium-allocator.h" |
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
93 V(IsObjectAndBranch) \ | 93 V(IsObjectAndBranch) \ |
94 V(IsStringAndBranch) \ | 94 V(IsStringAndBranch) \ |
95 V(IsSmiAndBranch) \ | 95 V(IsSmiAndBranch) \ |
96 V(IsUndetectableAndBranch) \ | 96 V(IsUndetectableAndBranch) \ |
97 V(Label) \ | 97 V(Label) \ |
98 V(LazyBailout) \ | 98 V(LazyBailout) \ |
99 V(LoadContextSlot) \ | 99 V(LoadContextSlot) \ |
100 V(LoadRoot) \ | 100 V(LoadRoot) \ |
101 V(LoadFieldByIndex) \ | 101 V(LoadFieldByIndex) \ |
102 V(LoadFunctionPrototype) \ | 102 V(LoadFunctionPrototype) \ |
103 V(LoadGlobalCell) \ | |
104 V(LoadGlobalGeneric) \ | 103 V(LoadGlobalGeneric) \ |
105 V(LoadKeyed) \ | 104 V(LoadKeyed) \ |
106 V(LoadKeyedGeneric) \ | 105 V(LoadKeyedGeneric) \ |
107 V(LoadNamedField) \ | 106 V(LoadNamedField) \ |
108 V(LoadNamedGeneric) \ | 107 V(LoadNamedGeneric) \ |
109 V(MapEnumLength) \ | 108 V(MapEnumLength) \ |
110 V(MathAbs) \ | 109 V(MathAbs) \ |
111 V(MathExp) \ | 110 V(MathExp) \ |
112 V(MathClz32) \ | 111 V(MathClz32) \ |
113 V(MathFloor) \ | 112 V(MathFloor) \ |
(...skipping 20 matching lines...) Expand all Loading... |
134 V(Return) \ | 133 V(Return) \ |
135 V(SeqStringGetChar) \ | 134 V(SeqStringGetChar) \ |
136 V(SeqStringSetChar) \ | 135 V(SeqStringSetChar) \ |
137 V(ShiftI) \ | 136 V(ShiftI) \ |
138 V(SmiTag) \ | 137 V(SmiTag) \ |
139 V(SmiUntag) \ | 138 V(SmiUntag) \ |
140 V(StackCheck) \ | 139 V(StackCheck) \ |
141 V(StoreCodeEntry) \ | 140 V(StoreCodeEntry) \ |
142 V(StoreContextSlot) \ | 141 V(StoreContextSlot) \ |
143 V(StoreFrameContext) \ | 142 V(StoreFrameContext) \ |
144 V(StoreGlobalCell) \ | |
145 V(StoreKeyed) \ | 143 V(StoreKeyed) \ |
146 V(StoreKeyedGeneric) \ | 144 V(StoreKeyedGeneric) \ |
147 V(StoreNamedField) \ | 145 V(StoreNamedField) \ |
148 V(StoreNamedGeneric) \ | 146 V(StoreNamedGeneric) \ |
149 V(StringAdd) \ | 147 V(StringAdd) \ |
150 V(StringCharCodeAt) \ | 148 V(StringCharCodeAt) \ |
151 V(StringCharFromCode) \ | 149 V(StringCharFromCode) \ |
152 V(StringCompareAndBranch) \ | 150 V(StringCompareAndBranch) \ |
153 V(SubI) \ | 151 V(SubI) \ |
154 V(TaggedToI) \ | 152 V(TaggedToI) \ |
(...skipping 1505 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1660 LOperand* context() { return inputs_[0]; } | 1658 LOperand* context() { return inputs_[0]; } |
1661 LOperand* object() { return inputs_[1]; } | 1659 LOperand* object() { return inputs_[1]; } |
1662 LOperand* key() { return inputs_[2]; } | 1660 LOperand* key() { return inputs_[2]; } |
1663 LOperand* temp_vector() { return temps_[0]; } | 1661 LOperand* temp_vector() { return temps_[0]; } |
1664 | 1662 |
1665 DECLARE_CONCRETE_INSTRUCTION(LoadKeyedGeneric, "load-keyed-generic") | 1663 DECLARE_CONCRETE_INSTRUCTION(LoadKeyedGeneric, "load-keyed-generic") |
1666 DECLARE_HYDROGEN_ACCESSOR(LoadKeyedGeneric) | 1664 DECLARE_HYDROGEN_ACCESSOR(LoadKeyedGeneric) |
1667 }; | 1665 }; |
1668 | 1666 |
1669 | 1667 |
1670 class LLoadGlobalCell FINAL : public LTemplateInstruction<1, 0, 0> { | |
1671 public: | |
1672 DECLARE_CONCRETE_INSTRUCTION(LoadGlobalCell, "load-global-cell") | |
1673 DECLARE_HYDROGEN_ACCESSOR(LoadGlobalCell) | |
1674 }; | |
1675 | |
1676 | |
1677 class LLoadGlobalGeneric FINAL : public LTemplateInstruction<1, 2, 1> { | 1668 class LLoadGlobalGeneric FINAL : public LTemplateInstruction<1, 2, 1> { |
1678 public: | 1669 public: |
1679 LLoadGlobalGeneric(LOperand* context, LOperand* global_object, | 1670 LLoadGlobalGeneric(LOperand* context, LOperand* global_object, |
1680 LOperand* vector) { | 1671 LOperand* vector) { |
1681 inputs_[0] = context; | 1672 inputs_[0] = context; |
1682 inputs_[1] = global_object; | 1673 inputs_[1] = global_object; |
1683 temps_[0] = vector; | 1674 temps_[0] = vector; |
1684 } | 1675 } |
1685 | 1676 |
1686 LOperand* context() { return inputs_[0]; } | 1677 LOperand* context() { return inputs_[0]; } |
1687 LOperand* global_object() { return inputs_[1]; } | 1678 LOperand* global_object() { return inputs_[1]; } |
1688 LOperand* temp_vector() { return temps_[0]; } | 1679 LOperand* temp_vector() { return temps_[0]; } |
1689 | 1680 |
1690 DECLARE_CONCRETE_INSTRUCTION(LoadGlobalGeneric, "load-global-generic") | 1681 DECLARE_CONCRETE_INSTRUCTION(LoadGlobalGeneric, "load-global-generic") |
1691 DECLARE_HYDROGEN_ACCESSOR(LoadGlobalGeneric) | 1682 DECLARE_HYDROGEN_ACCESSOR(LoadGlobalGeneric) |
1692 | 1683 |
1693 Handle<Object> name() const { return hydrogen()->name(); } | 1684 Handle<Object> name() const { return hydrogen()->name(); } |
1694 bool for_typeof() const { return hydrogen()->for_typeof(); } | 1685 bool for_typeof() const { return hydrogen()->for_typeof(); } |
1695 }; | 1686 }; |
1696 | 1687 |
1697 | 1688 |
1698 class LStoreGlobalCell FINAL : public LTemplateInstruction<0, 1, 1> { | |
1699 public: | |
1700 LStoreGlobalCell(LOperand* value, LOperand* temp) { | |
1701 inputs_[0] = value; | |
1702 temps_[0] = temp; | |
1703 } | |
1704 | |
1705 LOperand* value() { return inputs_[0]; } | |
1706 LOperand* temp() { return temps_[0]; } | |
1707 | |
1708 DECLARE_CONCRETE_INSTRUCTION(StoreGlobalCell, "store-global-cell") | |
1709 DECLARE_HYDROGEN_ACCESSOR(StoreGlobalCell) | |
1710 }; | |
1711 | |
1712 | |
1713 class LLoadContextSlot FINAL : public LTemplateInstruction<1, 1, 0> { | 1689 class LLoadContextSlot FINAL : public LTemplateInstruction<1, 1, 0> { |
1714 public: | 1690 public: |
1715 explicit LLoadContextSlot(LOperand* context) { | 1691 explicit LLoadContextSlot(LOperand* context) { |
1716 inputs_[0] = context; | 1692 inputs_[0] = context; |
1717 } | 1693 } |
1718 | 1694 |
1719 LOperand* context() { return inputs_[0]; } | 1695 LOperand* context() { return inputs_[0]; } |
1720 | 1696 |
1721 DECLARE_CONCRETE_INSTRUCTION(LoadContextSlot, "load-context-slot") | 1697 DECLARE_CONCRETE_INSTRUCTION(LoadContextSlot, "load-context-slot") |
1722 DECLARE_HYDROGEN_ACCESSOR(LoadContextSlot) | 1698 DECLARE_HYDROGEN_ACCESSOR(LoadContextSlot) |
(...skipping 1121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2844 | 2820 |
2845 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2821 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
2846 }; | 2822 }; |
2847 | 2823 |
2848 #undef DECLARE_HYDROGEN_ACCESSOR | 2824 #undef DECLARE_HYDROGEN_ACCESSOR |
2849 #undef DECLARE_CONCRETE_INSTRUCTION | 2825 #undef DECLARE_CONCRETE_INSTRUCTION |
2850 | 2826 |
2851 } } // namespace v8::internal | 2827 } } // namespace v8::internal |
2852 | 2828 |
2853 #endif // V8_MIPS_LITHIUM_MIPS_H_ | 2829 #endif // V8_MIPS_LITHIUM_MIPS_H_ |
OLD | NEW |