| 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 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 155 V(Power) \ | 155 V(Power) \ |
| 156 V(PushArgument) \ | 156 V(PushArgument) \ |
| 157 V(Random) \ | 157 V(Random) \ |
| 158 V(RegExpLiteral) \ | 158 V(RegExpLiteral) \ |
| 159 V(Return) \ | 159 V(Return) \ |
| 160 V(SeqStringSetChar) \ | 160 V(SeqStringSetChar) \ |
| 161 V(ShiftI) \ | 161 V(ShiftI) \ |
| 162 V(SmiTag) \ | 162 V(SmiTag) \ |
| 163 V(SmiUntag) \ | 163 V(SmiUntag) \ |
| 164 V(StackCheck) \ | 164 V(StackCheck) \ |
| 165 V(StoreCodeEntry) \ |
| 165 V(StoreContextSlot) \ | 166 V(StoreContextSlot) \ |
| 166 V(StoreGlobalCell) \ | 167 V(StoreGlobalCell) \ |
| 167 V(StoreGlobalGeneric) \ | 168 V(StoreGlobalGeneric) \ |
| 168 V(StoreKeyed) \ | 169 V(StoreKeyed) \ |
| 169 V(StoreKeyedGeneric) \ | 170 V(StoreKeyedGeneric) \ |
| 170 V(StoreNamedField) \ | 171 V(StoreNamedField) \ |
| 171 V(StoreNamedGeneric) \ | 172 V(StoreNamedGeneric) \ |
| 172 V(StringAdd) \ | 173 V(StringAdd) \ |
| 173 V(StringCharCodeAt) \ | 174 V(StringCharCodeAt) \ |
| 174 V(StringCharFromCode) \ | 175 V(StringCharFromCode) \ |
| (...skipping 1571 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1746 | 1747 |
| 1747 int count() const { return count_; } | 1748 int count() const { return count_; } |
| 1748 | 1749 |
| 1749 DECLARE_CONCRETE_INSTRUCTION(Drop, "drop") | 1750 DECLARE_CONCRETE_INSTRUCTION(Drop, "drop") |
| 1750 | 1751 |
| 1751 private: | 1752 private: |
| 1752 int count_; | 1753 int count_; |
| 1753 }; | 1754 }; |
| 1754 | 1755 |
| 1755 | 1756 |
| 1756 class LInnerAllocatedObject V8_FINAL : public LTemplateInstruction<1, 1, 0> { | 1757 class LStoreCodeEntry V8_FINAL: public LTemplateInstruction<0, 1, 1> { |
| 1758 public: |
| 1759 LStoreCodeEntry(LOperand* function, LOperand* code_object) { |
| 1760 inputs_[0] = function; |
| 1761 temps_[0] = code_object; |
| 1762 } |
| 1763 |
| 1764 LOperand* function() { return inputs_[0]; } |
| 1765 LOperand* code_object() { return temps_[0]; } |
| 1766 |
| 1767 virtual void PrintDataTo(StringStream* stream); |
| 1768 |
| 1769 DECLARE_CONCRETE_INSTRUCTION(StoreCodeEntry, "store-code-entry") |
| 1770 DECLARE_HYDROGEN_ACCESSOR(StoreCodeEntry) |
| 1771 }; |
| 1772 |
| 1773 |
| 1774 class LInnerAllocatedObject V8_FINAL: public LTemplateInstruction<1, 1, 0> { |
| 1757 public: | 1775 public: |
| 1758 explicit LInnerAllocatedObject(LOperand* base_object) { | 1776 explicit LInnerAllocatedObject(LOperand* base_object) { |
| 1759 inputs_[0] = base_object; | 1777 inputs_[0] = base_object; |
| 1760 } | 1778 } |
| 1761 | 1779 |
| 1762 LOperand* base_object() { return inputs_[0]; } | 1780 LOperand* base_object() { return inputs_[0]; } |
| 1763 int offset() { return hydrogen()->offset(); } | 1781 int offset() { return hydrogen()->offset(); } |
| 1764 | 1782 |
| 1765 virtual void PrintDataTo(StringStream* stream) V8_OVERRIDE; | 1783 virtual void PrintDataTo(StringStream* stream) V8_OVERRIDE; |
| 1766 | 1784 |
| (...skipping 271 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2038 | 2056 |
| 2039 LOperand* value() { return inputs_[0]; } | 2057 LOperand* value() { return inputs_[0]; } |
| 2040 LOperand* temp() { return temps_[0]; } | 2058 LOperand* temp() { return temps_[0]; } |
| 2041 LOperand* temp2() { return temps_[1]; } | 2059 LOperand* temp2() { return temps_[1]; } |
| 2042 | 2060 |
| 2043 DECLARE_CONCRETE_INSTRUCTION(NumberTagD, "number-tag-d") | 2061 DECLARE_CONCRETE_INSTRUCTION(NumberTagD, "number-tag-d") |
| 2044 DECLARE_HYDROGEN_ACCESSOR(Change) | 2062 DECLARE_HYDROGEN_ACCESSOR(Change) |
| 2045 }; | 2063 }; |
| 2046 | 2064 |
| 2047 | 2065 |
| 2048 class LDoubleToSmi V8_FINAL : public LTemplateInstruction<1, 1, 2> { | 2066 class LDoubleToSmi V8_FINAL : public LTemplateInstruction<1, 1, 0> { |
| 2049 public: | 2067 public: |
| 2050 LDoubleToSmi(LOperand* value, LOperand* temp, LOperand* temp2) { | 2068 explicit LDoubleToSmi(LOperand* value) { |
| 2051 inputs_[0] = value; | 2069 inputs_[0] = value; |
| 2052 temps_[0] = temp; | |
| 2053 temps_[1] = temp2; | |
| 2054 } | 2070 } |
| 2055 | 2071 |
| 2056 LOperand* value() { return inputs_[0]; } | 2072 LOperand* value() { return inputs_[0]; } |
| 2057 LOperand* temp() { return temps_[0]; } | |
| 2058 LOperand* temp2() { return temps_[1]; } | |
| 2059 | 2073 |
| 2060 DECLARE_CONCRETE_INSTRUCTION(DoubleToSmi, "double-to-smi") | 2074 DECLARE_CONCRETE_INSTRUCTION(DoubleToSmi, "double-to-smi") |
| 2061 DECLARE_HYDROGEN_ACCESSOR(UnaryOperation) | 2075 DECLARE_HYDROGEN_ACCESSOR(UnaryOperation) |
| 2062 | 2076 |
| 2063 bool truncating() { return hydrogen()->CanTruncateToInt32(); } | 2077 bool truncating() { return hydrogen()->CanTruncateToInt32(); } |
| 2064 }; | 2078 }; |
| 2065 | 2079 |
| 2066 | 2080 |
| 2067 // Sometimes truncating conversion from a tagged value to an int32. | 2081 // Sometimes truncating conversion from a tagged value to an int32. |
| 2068 class LDoubleToI V8_FINAL : public LTemplateInstruction<1, 1, 2> { | 2082 class LDoubleToI V8_FINAL : public LTemplateInstruction<1, 1, 0> { |
| 2069 public: | 2083 public: |
| 2070 LDoubleToI(LOperand* value, LOperand* temp, LOperand* temp2) { | 2084 explicit LDoubleToI(LOperand* value) { |
| 2071 inputs_[0] = value; | 2085 inputs_[0] = value; |
| 2072 temps_[0] = temp; | |
| 2073 temps_[1] = temp2; | |
| 2074 } | 2086 } |
| 2075 | 2087 |
| 2076 LOperand* value() { return inputs_[0]; } | 2088 LOperand* value() { return inputs_[0]; } |
| 2077 LOperand* temp() { return temps_[0]; } | |
| 2078 LOperand* temp2() { return temps_[1]; } | |
| 2079 | 2089 |
| 2080 DECLARE_CONCRETE_INSTRUCTION(DoubleToI, "double-to-i") | 2090 DECLARE_CONCRETE_INSTRUCTION(DoubleToI, "double-to-i") |
| 2081 DECLARE_HYDROGEN_ACCESSOR(UnaryOperation) | 2091 DECLARE_HYDROGEN_ACCESSOR(UnaryOperation) |
| 2082 | 2092 |
| 2083 bool truncating() { return hydrogen()->CanTruncateToInt32(); } | 2093 bool truncating() { return hydrogen()->CanTruncateToInt32(); } |
| 2084 }; | 2094 }; |
| 2085 | 2095 |
| 2086 | 2096 |
| 2087 // Truncating conversion from a tagged value to an int32. | 2097 // Truncating conversion from a tagged value to an int32. |
| 2088 class LTaggedToI V8_FINAL : public LTemplateInstruction<1, 1, 3> { | 2098 class LTaggedToI V8_FINAL : public LTemplateInstruction<1, 1, 2> { |
| 2089 public: | 2099 public: |
| 2090 LTaggedToI(LOperand* value, | 2100 LTaggedToI(LOperand* value, |
| 2091 LOperand* temp, | 2101 LOperand* temp, |
| 2092 LOperand* temp2, | 2102 LOperand* temp2) { |
| 2093 LOperand* temp3) { | |
| 2094 inputs_[0] = value; | 2103 inputs_[0] = value; |
| 2095 temps_[0] = temp; | 2104 temps_[0] = temp; |
| 2096 temps_[1] = temp2; | 2105 temps_[1] = temp2; |
| 2097 temps_[2] = temp3; | |
| 2098 } | 2106 } |
| 2099 | 2107 |
| 2100 LOperand* value() { return inputs_[0]; } | 2108 LOperand* value() { return inputs_[0]; } |
| 2101 LOperand* temp() { return temps_[0]; } | 2109 LOperand* temp() { return temps_[0]; } |
| 2102 LOperand* temp2() { return temps_[1]; } | 2110 LOperand* temp2() { return temps_[1]; } |
| 2103 LOperand* temp3() { return temps_[2]; } | |
| 2104 | 2111 |
| 2105 DECLARE_CONCRETE_INSTRUCTION(TaggedToI, "tagged-to-i") | 2112 DECLARE_CONCRETE_INSTRUCTION(TaggedToI, "tagged-to-i") |
| 2106 DECLARE_HYDROGEN_ACCESSOR(UnaryOperation) | 2113 DECLARE_HYDROGEN_ACCESSOR(UnaryOperation) |
| 2107 | 2114 |
| 2108 bool truncating() { return hydrogen()->CanTruncateToInt32(); } | 2115 bool truncating() { return hydrogen()->CanTruncateToInt32(); } |
| 2109 }; | 2116 }; |
| 2110 | 2117 |
| 2111 | 2118 |
| 2112 class LSmiTag V8_FINAL : public LTemplateInstruction<1, 1, 0> { | 2119 class LSmiTag V8_FINAL : public LTemplateInstruction<1, 1, 0> { |
| 2113 public: | 2120 public: |
| (...skipping 666 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2780 | 2787 |
| 2781 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2788 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
| 2782 }; | 2789 }; |
| 2783 | 2790 |
| 2784 #undef DECLARE_HYDROGEN_ACCESSOR | 2791 #undef DECLARE_HYDROGEN_ACCESSOR |
| 2785 #undef DECLARE_CONCRETE_INSTRUCTION | 2792 #undef DECLARE_CONCRETE_INSTRUCTION |
| 2786 | 2793 |
| 2787 } } // namespace v8::internal | 2794 } } // namespace v8::internal |
| 2788 | 2795 |
| 2789 #endif // V8_ARM_LITHIUM_ARM_H_ | 2796 #endif // V8_ARM_LITHIUM_ARM_H_ |
| OLD | NEW |