| 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 2158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2169 LOperand* key() { return inputs_[1]; } | 2169 LOperand* key() { return inputs_[1]; } |
| 2170 LOperand* value() { return inputs_[2]; } | 2170 LOperand* value() { return inputs_[2]; } |
| 2171 ElementsKind elements_kind() const { | 2171 ElementsKind elements_kind() const { |
| 2172 return hydrogen()->elements_kind(); | 2172 return hydrogen()->elements_kind(); |
| 2173 } | 2173 } |
| 2174 | 2174 |
| 2175 DECLARE_CONCRETE_INSTRUCTION(StoreKeyed, "store-keyed") | 2175 DECLARE_CONCRETE_INSTRUCTION(StoreKeyed, "store-keyed") |
| 2176 DECLARE_HYDROGEN_ACCESSOR(StoreKeyed) | 2176 DECLARE_HYDROGEN_ACCESSOR(StoreKeyed) |
| 2177 | 2177 |
| 2178 virtual void PrintDataTo(StringStream* stream); | 2178 virtual void PrintDataTo(StringStream* stream); |
| 2179 bool NeedsCanonicalization() { return hydrogen()->NeedsCanonicalization(); } | 2179 bool NeedsCanonicalization() { |
| 2180 if (hydrogen()->value()->IsAdd() || hydrogen()->value()->IsSub() || |
| 2181 hydrogen()->value()->IsMul() || hydrogen()->value()->IsDiv()) { |
| 2182 return false; |
| 2183 } |
| 2184 return hydrogen()->NeedsCanonicalization(); |
| 2185 } |
| 2180 uint32_t additional_index() const { return hydrogen()->index_offset(); } | 2186 uint32_t additional_index() const { return hydrogen()->index_offset(); } |
| 2181 }; | 2187 }; |
| 2182 | 2188 |
| 2183 | 2189 |
| 2184 class LStoreKeyedGeneric: public LTemplateInstruction<0, 3, 0> { | 2190 class LStoreKeyedGeneric: public LTemplateInstruction<0, 3, 0> { |
| 2185 public: | 2191 public: |
| 2186 LStoreKeyedGeneric(LOperand* obj, LOperand* key, LOperand* value) { | 2192 LStoreKeyedGeneric(LOperand* obj, LOperand* key, LOperand* value) { |
| 2187 inputs_[0] = obj; | 2193 inputs_[0] = obj; |
| 2188 inputs_[1] = key; | 2194 inputs_[1] = key; |
| 2189 inputs_[2] = value; | 2195 inputs_[2] = value; |
| (...skipping 651 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2841 | 2847 |
| 2842 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2848 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
| 2843 }; | 2849 }; |
| 2844 | 2850 |
| 2845 #undef DECLARE_HYDROGEN_ACCESSOR | 2851 #undef DECLARE_HYDROGEN_ACCESSOR |
| 2846 #undef DECLARE_CONCRETE_INSTRUCTION | 2852 #undef DECLARE_CONCRETE_INSTRUCTION |
| 2847 | 2853 |
| 2848 } } // namespace v8::internal | 2854 } } // namespace v8::internal |
| 2849 | 2855 |
| 2850 #endif // V8_ARM_LITHIUM_ARM_H_ | 2856 #endif // V8_ARM_LITHIUM_ARM_H_ |
| OLD | NEW |