| 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 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 153 V(Return) \ | 153 V(Return) \ |
| 154 V(SeqStringGetChar) \ | 154 V(SeqStringGetChar) \ |
| 155 V(SeqStringSetChar) \ | 155 V(SeqStringSetChar) \ |
| 156 V(ShiftI) \ | 156 V(ShiftI) \ |
| 157 V(SmiTag) \ | 157 V(SmiTag) \ |
| 158 V(SmiUntag) \ | 158 V(SmiUntag) \ |
| 159 V(StackCheck) \ | 159 V(StackCheck) \ |
| 160 V(StoreCodeEntry) \ | 160 V(StoreCodeEntry) \ |
| 161 V(StoreContextSlot) \ | 161 V(StoreContextSlot) \ |
| 162 V(StoreGlobalCell) \ | 162 V(StoreGlobalCell) \ |
| 163 V(StoreGlobalGeneric) \ | |
| 164 V(StoreKeyed) \ | 163 V(StoreKeyed) \ |
| 165 V(StoreKeyedGeneric) \ | 164 V(StoreKeyedGeneric) \ |
| 166 V(StoreNamedField) \ | 165 V(StoreNamedField) \ |
| 167 V(StoreNamedGeneric) \ | 166 V(StoreNamedGeneric) \ |
| 168 V(StringAdd) \ | 167 V(StringAdd) \ |
| 169 V(StringCharCodeAt) \ | 168 V(StringCharCodeAt) \ |
| 170 V(StringCharFromCode) \ | 169 V(StringCharFromCode) \ |
| 171 V(StringCompareAndBranch) \ | 170 V(StringCompareAndBranch) \ |
| 172 V(SubI) \ | 171 V(SubI) \ |
| 173 V(RSubI) \ | 172 V(RSubI) \ |
| (...skipping 1414 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1588 } | 1587 } |
| 1589 | 1588 |
| 1590 LOperand* elements() { return inputs_[0]; } | 1589 LOperand* elements() { return inputs_[0]; } |
| 1591 LOperand* key() { return inputs_[1]; } | 1590 LOperand* key() { return inputs_[1]; } |
| 1592 ElementsKind elements_kind() const { | 1591 ElementsKind elements_kind() const { |
| 1593 return hydrogen()->elements_kind(); | 1592 return hydrogen()->elements_kind(); |
| 1594 } | 1593 } |
| 1595 bool is_external() const { | 1594 bool is_external() const { |
| 1596 return hydrogen()->is_external(); | 1595 return hydrogen()->is_external(); |
| 1597 } | 1596 } |
| 1597 bool is_fixed_typed_array() const { |
| 1598 return hydrogen()->is_fixed_typed_array(); |
| 1599 } |
| 1600 bool is_typed_elements() const { |
| 1601 return is_external() || is_fixed_typed_array(); |
| 1602 } |
| 1598 | 1603 |
| 1599 DECLARE_CONCRETE_INSTRUCTION(LoadKeyed, "load-keyed") | 1604 DECLARE_CONCRETE_INSTRUCTION(LoadKeyed, "load-keyed") |
| 1600 DECLARE_HYDROGEN_ACCESSOR(LoadKeyed) | 1605 DECLARE_HYDROGEN_ACCESSOR(LoadKeyed) |
| 1601 | 1606 |
| 1602 virtual void PrintDataTo(StringStream* stream) V8_OVERRIDE; | 1607 virtual void PrintDataTo(StringStream* stream) V8_OVERRIDE; |
| 1603 uint32_t additional_index() const { return hydrogen()->index_offset(); } | 1608 uint32_t additional_index() const { return hydrogen()->index_offset(); } |
| 1604 }; | 1609 }; |
| 1605 | 1610 |
| 1606 | 1611 |
| 1607 class LLoadKeyedGeneric V8_FINAL : public LTemplateInstruction<1, 3, 0> { | 1612 class LLoadKeyedGeneric V8_FINAL : public LTemplateInstruction<1, 3, 0> { |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1653 } | 1658 } |
| 1654 | 1659 |
| 1655 LOperand* value() { return inputs_[0]; } | 1660 LOperand* value() { return inputs_[0]; } |
| 1656 LOperand* temp() { return temps_[0]; } | 1661 LOperand* temp() { return temps_[0]; } |
| 1657 | 1662 |
| 1658 DECLARE_CONCRETE_INSTRUCTION(StoreGlobalCell, "store-global-cell") | 1663 DECLARE_CONCRETE_INSTRUCTION(StoreGlobalCell, "store-global-cell") |
| 1659 DECLARE_HYDROGEN_ACCESSOR(StoreGlobalCell) | 1664 DECLARE_HYDROGEN_ACCESSOR(StoreGlobalCell) |
| 1660 }; | 1665 }; |
| 1661 | 1666 |
| 1662 | 1667 |
| 1663 class LStoreGlobalGeneric V8_FINAL : public LTemplateInstruction<0, 3, 0> { | |
| 1664 public: | |
| 1665 LStoreGlobalGeneric(LOperand* context, | |
| 1666 LOperand* global_object, | |
| 1667 LOperand* value) { | |
| 1668 inputs_[0] = context; | |
| 1669 inputs_[1] = global_object; | |
| 1670 inputs_[2] = value; | |
| 1671 } | |
| 1672 | |
| 1673 LOperand* context() { return inputs_[0]; } | |
| 1674 LOperand* global_object() { return inputs_[1]; } | |
| 1675 LOperand* value() { return inputs_[2]; } | |
| 1676 | |
| 1677 DECLARE_CONCRETE_INSTRUCTION(StoreGlobalGeneric, "store-global-generic") | |
| 1678 DECLARE_HYDROGEN_ACCESSOR(StoreGlobalGeneric) | |
| 1679 | |
| 1680 Handle<Object> name() const { return hydrogen()->name(); } | |
| 1681 StrictModeFlag strict_mode_flag() { return hydrogen()->strict_mode_flag(); } | |
| 1682 }; | |
| 1683 | |
| 1684 | |
| 1685 class LLoadContextSlot V8_FINAL : public LTemplateInstruction<1, 1, 0> { | 1668 class LLoadContextSlot V8_FINAL : public LTemplateInstruction<1, 1, 0> { |
| 1686 public: | 1669 public: |
| 1687 explicit LLoadContextSlot(LOperand* context) { | 1670 explicit LLoadContextSlot(LOperand* context) { |
| 1688 inputs_[0] = context; | 1671 inputs_[0] = context; |
| 1689 } | 1672 } |
| 1690 | 1673 |
| 1691 LOperand* context() { return inputs_[0]; } | 1674 LOperand* context() { return inputs_[0]; } |
| 1692 | 1675 |
| 1693 DECLARE_CONCRETE_INSTRUCTION(LoadContextSlot, "load-context-slot") | 1676 DECLARE_CONCRETE_INSTRUCTION(LoadContextSlot, "load-context-slot") |
| 1694 DECLARE_HYDROGEN_ACCESSOR(LoadContextSlot) | 1677 DECLARE_HYDROGEN_ACCESSOR(LoadContextSlot) |
| (...skipping 525 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2220 | 2203 |
| 2221 class LStoreKeyed V8_FINAL : public LTemplateInstruction<0, 3, 0> { | 2204 class LStoreKeyed V8_FINAL : public LTemplateInstruction<0, 3, 0> { |
| 2222 public: | 2205 public: |
| 2223 LStoreKeyed(LOperand* object, LOperand* key, LOperand* value) { | 2206 LStoreKeyed(LOperand* object, LOperand* key, LOperand* value) { |
| 2224 inputs_[0] = object; | 2207 inputs_[0] = object; |
| 2225 inputs_[1] = key; | 2208 inputs_[1] = key; |
| 2226 inputs_[2] = value; | 2209 inputs_[2] = value; |
| 2227 } | 2210 } |
| 2228 | 2211 |
| 2229 bool is_external() const { return hydrogen()->is_external(); } | 2212 bool is_external() const { return hydrogen()->is_external(); } |
| 2213 bool is_fixed_typed_array() const { |
| 2214 return hydrogen()->is_fixed_typed_array(); |
| 2215 } |
| 2216 bool is_typed_elements() const { |
| 2217 return is_external() || is_fixed_typed_array(); |
| 2218 } |
| 2230 LOperand* elements() { return inputs_[0]; } | 2219 LOperand* elements() { return inputs_[0]; } |
| 2231 LOperand* key() { return inputs_[1]; } | 2220 LOperand* key() { return inputs_[1]; } |
| 2232 LOperand* value() { return inputs_[2]; } | 2221 LOperand* value() { return inputs_[2]; } |
| 2233 ElementsKind elements_kind() const { | 2222 ElementsKind elements_kind() const { |
| 2234 return hydrogen()->elements_kind(); | 2223 return hydrogen()->elements_kind(); |
| 2235 } | 2224 } |
| 2236 | 2225 |
| 2237 DECLARE_CONCRETE_INSTRUCTION(StoreKeyed, "store-keyed") | 2226 DECLARE_CONCRETE_INSTRUCTION(StoreKeyed, "store-keyed") |
| 2238 DECLARE_HYDROGEN_ACCESSOR(StoreKeyed) | 2227 DECLARE_HYDROGEN_ACCESSOR(StoreKeyed) |
| 2239 | 2228 |
| (...skipping 591 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2831 | 2820 |
| 2832 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2821 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
| 2833 }; | 2822 }; |
| 2834 | 2823 |
| 2835 #undef DECLARE_HYDROGEN_ACCESSOR | 2824 #undef DECLARE_HYDROGEN_ACCESSOR |
| 2836 #undef DECLARE_CONCRETE_INSTRUCTION | 2825 #undef DECLARE_CONCRETE_INSTRUCTION |
| 2837 | 2826 |
| 2838 } } // namespace v8::internal | 2827 } } // namespace v8::internal |
| 2839 | 2828 |
| 2840 #endif // V8_ARM_LITHIUM_ARM_H_ | 2829 #endif // V8_ARM_LITHIUM_ARM_H_ |
| OLD | NEW |