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 19 matching lines...) Expand all Loading... |
133 V(Return) \ | 132 V(Return) \ |
134 V(SeqStringGetChar) \ | 133 V(SeqStringGetChar) \ |
135 V(SeqStringSetChar) \ | 134 V(SeqStringSetChar) \ |
136 V(ShiftI) \ | 135 V(ShiftI) \ |
137 V(SmiTag) \ | 136 V(SmiTag) \ |
138 V(SmiUntag) \ | 137 V(SmiUntag) \ |
139 V(StackCheck) \ | 138 V(StackCheck) \ |
140 V(StoreCodeEntry) \ | 139 V(StoreCodeEntry) \ |
141 V(StoreContextSlot) \ | 140 V(StoreContextSlot) \ |
142 V(StoreFrameContext) \ | 141 V(StoreFrameContext) \ |
143 V(StoreGlobalCell) \ | |
144 V(StoreKeyed) \ | 142 V(StoreKeyed) \ |
145 V(StoreKeyedGeneric) \ | 143 V(StoreKeyedGeneric) \ |
146 V(StoreNamedField) \ | 144 V(StoreNamedField) \ |
147 V(StoreNamedGeneric) \ | 145 V(StoreNamedGeneric) \ |
148 V(StringAdd) \ | 146 V(StringAdd) \ |
149 V(StringCharCodeAt) \ | 147 V(StringCharCodeAt) \ |
150 V(StringCharFromCode) \ | 148 V(StringCharFromCode) \ |
151 V(StringCompareAndBranch) \ | 149 V(StringCompareAndBranch) \ |
152 V(SubI) \ | 150 V(SubI) \ |
153 V(TaggedToI) \ | 151 V(TaggedToI) \ |
(...skipping 1504 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1658 LOperand* context() { return inputs_[0]; } | 1656 LOperand* context() { return inputs_[0]; } |
1659 LOperand* object() { return inputs_[1]; } | 1657 LOperand* object() { return inputs_[1]; } |
1660 LOperand* key() { return inputs_[2]; } | 1658 LOperand* key() { return inputs_[2]; } |
1661 LOperand* temp_vector() { return temps_[0]; } | 1659 LOperand* temp_vector() { return temps_[0]; } |
1662 | 1660 |
1663 DECLARE_CONCRETE_INSTRUCTION(LoadKeyedGeneric, "load-keyed-generic") | 1661 DECLARE_CONCRETE_INSTRUCTION(LoadKeyedGeneric, "load-keyed-generic") |
1664 DECLARE_HYDROGEN_ACCESSOR(LoadKeyedGeneric) | 1662 DECLARE_HYDROGEN_ACCESSOR(LoadKeyedGeneric) |
1665 }; | 1663 }; |
1666 | 1664 |
1667 | 1665 |
1668 class LLoadGlobalCell FINAL : public LTemplateInstruction<1, 0, 0> { | |
1669 public: | |
1670 DECLARE_CONCRETE_INSTRUCTION(LoadGlobalCell, "load-global-cell") | |
1671 DECLARE_HYDROGEN_ACCESSOR(LoadGlobalCell) | |
1672 }; | |
1673 | |
1674 | |
1675 class LLoadGlobalGeneric FINAL : public LTemplateInstruction<1, 2, 1> { | 1666 class LLoadGlobalGeneric FINAL : public LTemplateInstruction<1, 2, 1> { |
1676 public: | 1667 public: |
1677 LLoadGlobalGeneric(LOperand* context, LOperand* global_object, | 1668 LLoadGlobalGeneric(LOperand* context, LOperand* global_object, |
1678 LOperand* vector) { | 1669 LOperand* vector) { |
1679 inputs_[0] = context; | 1670 inputs_[0] = context; |
1680 inputs_[1] = global_object; | 1671 inputs_[1] = global_object; |
1681 temps_[0] = vector; | 1672 temps_[0] = vector; |
1682 } | 1673 } |
1683 | 1674 |
1684 LOperand* context() { return inputs_[0]; } | 1675 LOperand* context() { return inputs_[0]; } |
1685 LOperand* global_object() { return inputs_[1]; } | 1676 LOperand* global_object() { return inputs_[1]; } |
1686 LOperand* temp_vector() { return temps_[0]; } | 1677 LOperand* temp_vector() { return temps_[0]; } |
1687 | 1678 |
1688 DECLARE_CONCRETE_INSTRUCTION(LoadGlobalGeneric, "load-global-generic") | 1679 DECLARE_CONCRETE_INSTRUCTION(LoadGlobalGeneric, "load-global-generic") |
1689 DECLARE_HYDROGEN_ACCESSOR(LoadGlobalGeneric) | 1680 DECLARE_HYDROGEN_ACCESSOR(LoadGlobalGeneric) |
1690 | 1681 |
1691 Handle<Object> name() const { return hydrogen()->name(); } | 1682 Handle<Object> name() const { return hydrogen()->name(); } |
1692 bool for_typeof() const { return hydrogen()->for_typeof(); } | 1683 bool for_typeof() const { return hydrogen()->for_typeof(); } |
1693 }; | 1684 }; |
1694 | 1685 |
1695 | 1686 |
1696 class LStoreGlobalCell FINAL : public LTemplateInstruction<0, 1, 1> { | |
1697 public: | |
1698 LStoreGlobalCell(LOperand* value, LOperand* temp) { | |
1699 inputs_[0] = value; | |
1700 temps_[0] = temp; | |
1701 } | |
1702 | |
1703 LOperand* value() { return inputs_[0]; } | |
1704 LOperand* temp() { return temps_[0]; } | |
1705 | |
1706 DECLARE_CONCRETE_INSTRUCTION(StoreGlobalCell, "store-global-cell") | |
1707 DECLARE_HYDROGEN_ACCESSOR(StoreGlobalCell) | |
1708 }; | |
1709 | |
1710 | |
1711 class LLoadContextSlot FINAL : public LTemplateInstruction<1, 1, 0> { | 1687 class LLoadContextSlot FINAL : public LTemplateInstruction<1, 1, 0> { |
1712 public: | 1688 public: |
1713 explicit LLoadContextSlot(LOperand* context) { | 1689 explicit LLoadContextSlot(LOperand* context) { |
1714 inputs_[0] = context; | 1690 inputs_[0] = context; |
1715 } | 1691 } |
1716 | 1692 |
1717 LOperand* context() { return inputs_[0]; } | 1693 LOperand* context() { return inputs_[0]; } |
1718 | 1694 |
1719 DECLARE_CONCRETE_INSTRUCTION(LoadContextSlot, "load-context-slot") | 1695 DECLARE_CONCRETE_INSTRUCTION(LoadContextSlot, "load-context-slot") |
1720 DECLARE_HYDROGEN_ACCESSOR(LoadContextSlot) | 1696 DECLARE_HYDROGEN_ACCESSOR(LoadContextSlot) |
(...skipping 1106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2827 | 2803 |
2828 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2804 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
2829 }; | 2805 }; |
2830 | 2806 |
2831 #undef DECLARE_HYDROGEN_ACCESSOR | 2807 #undef DECLARE_HYDROGEN_ACCESSOR |
2832 #undef DECLARE_CONCRETE_INSTRUCTION | 2808 #undef DECLARE_CONCRETE_INSTRUCTION |
2833 | 2809 |
2834 } } // namespace v8::internal | 2810 } } // namespace v8::internal |
2835 | 2811 |
2836 #endif // V8_MIPS_LITHIUM_MIPS_H_ | 2812 #endif // V8_MIPS_LITHIUM_MIPS_H_ |
OLD | NEW |