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 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
155 V(StoreNamedGeneric) \ | 155 V(StoreNamedGeneric) \ |
156 V(StringAdd) \ | 156 V(StringAdd) \ |
157 V(StringCharCodeAt) \ | 157 V(StringCharCodeAt) \ |
158 V(StringCharFromCode) \ | 158 V(StringCharFromCode) \ |
159 V(StringLength) \ | 159 V(StringLength) \ |
160 V(SubI) \ | 160 V(SubI) \ |
161 V(TaggedToI) \ | 161 V(TaggedToI) \ |
162 V(ThisFunction) \ | 162 V(ThisFunction) \ |
163 V(Throw) \ | 163 V(Throw) \ |
164 V(ToFastProperties) \ | 164 V(ToFastProperties) \ |
| 165 V(TransitionElementsKind) \ |
165 V(Typeof) \ | 166 V(Typeof) \ |
166 V(TypeofIsAndBranch) \ | 167 V(TypeofIsAndBranch) \ |
167 V(UnaryMathOperation) \ | 168 V(UnaryMathOperation) \ |
168 V(UnknownOSRValue) \ | 169 V(UnknownOSRValue) \ |
169 V(ValueOf) | 170 V(ValueOf) |
170 | 171 |
171 | 172 |
172 #define DECLARE_CONCRETE_INSTRUCTION(type, mnemonic) \ | 173 #define DECLARE_CONCRETE_INSTRUCTION(type, mnemonic) \ |
173 virtual Opcode opcode() const { return LInstruction::k##type; } \ | 174 virtual Opcode opcode() const { return LInstruction::k##type; } \ |
174 virtual void CompileToNative(LCodeGen* generator); \ | 175 virtual void CompileToNative(LCodeGen* generator); \ |
(...skipping 1487 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1662 | 1663 |
1663 LOperand* external_pointer() { return inputs_[0]; } | 1664 LOperand* external_pointer() { return inputs_[0]; } |
1664 LOperand* key() { return inputs_[1]; } | 1665 LOperand* key() { return inputs_[1]; } |
1665 LOperand* value() { return inputs_[2]; } | 1666 LOperand* value() { return inputs_[2]; } |
1666 ElementsKind elements_kind() const { | 1667 ElementsKind elements_kind() const { |
1667 return hydrogen()->elements_kind(); | 1668 return hydrogen()->elements_kind(); |
1668 } | 1669 } |
1669 }; | 1670 }; |
1670 | 1671 |
1671 | 1672 |
| 1673 class LTransitionElementsKind: public LTemplateInstruction<1, 1, 2> { |
| 1674 public: |
| 1675 LTransitionElementsKind(LOperand* object, |
| 1676 LOperand* new_map_temp, |
| 1677 LOperand* temp_reg) { |
| 1678 inputs_[0] = object; |
| 1679 temps_[0] = new_map_temp; |
| 1680 temps_[1] = temp_reg; |
| 1681 } |
| 1682 |
| 1683 DECLARE_CONCRETE_INSTRUCTION(TransitionElementsKind, |
| 1684 "transition-elements-kind") |
| 1685 DECLARE_HYDROGEN_ACCESSOR(TransitionElementsKind) |
| 1686 |
| 1687 virtual void PrintDataTo(StringStream* stream); |
| 1688 |
| 1689 LOperand* object() { return inputs_[0]; } |
| 1690 LOperand* new_map_reg() { return temps_[0]; } |
| 1691 LOperand* temp_reg() { return temps_[1]; } |
| 1692 Handle<Map> original_map() { return hydrogen()->original_map(); } |
| 1693 Handle<Map> transitioned_map() { return hydrogen()->transitioned_map(); } |
| 1694 }; |
| 1695 |
| 1696 |
1672 class LStringAdd: public LTemplateInstruction<1, 2, 0> { | 1697 class LStringAdd: public LTemplateInstruction<1, 2, 0> { |
1673 public: | 1698 public: |
1674 LStringAdd(LOperand* left, LOperand* right) { | 1699 LStringAdd(LOperand* left, LOperand* right) { |
1675 inputs_[0] = left; | 1700 inputs_[0] = left; |
1676 inputs_[1] = right; | 1701 inputs_[1] = right; |
1677 } | 1702 } |
1678 | 1703 |
1679 DECLARE_CONCRETE_INSTRUCTION(StringAdd, "string-add") | 1704 DECLARE_CONCRETE_INSTRUCTION(StringAdd, "string-add") |
1680 DECLARE_HYDROGEN_ACCESSOR(StringAdd) | 1705 DECLARE_HYDROGEN_ACCESSOR(StringAdd) |
1681 | 1706 |
(...skipping 506 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2188 | 2213 |
2189 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2214 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
2190 }; | 2215 }; |
2191 | 2216 |
2192 #undef DECLARE_HYDROGEN_ACCESSOR | 2217 #undef DECLARE_HYDROGEN_ACCESSOR |
2193 #undef DECLARE_CONCRETE_INSTRUCTION | 2218 #undef DECLARE_CONCRETE_INSTRUCTION |
2194 | 2219 |
2195 } } // namespace v8::internal | 2220 } } // namespace v8::internal |
2196 | 2221 |
2197 #endif // V8_ARM_LITHIUM_ARM_H_ | 2222 #endif // V8_ARM_LITHIUM_ARM_H_ |
OLD | NEW |