| 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_ARM_LITHIUM_ARM_H_ | 5 #ifndef V8_ARM_LITHIUM_ARM_H_ |
| 6 #define V8_ARM_LITHIUM_ARM_H_ | 6 #define V8_ARM_LITHIUM_ARM_H_ |
| 7 | 7 |
| 8 #include "hydrogen.h" | 8 #include "hydrogen.h" |
| 9 #include "lithium-allocator.h" | 9 #include "lithium-allocator.h" |
| 10 #include "lithium.h" | 10 #include "lithium.h" |
| (...skipping 2127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2138 LOperand* value() { return inputs_[0]; } | 2138 LOperand* value() { return inputs_[0]; } |
| 2139 bool needs_check() const { return needs_check_; } | 2139 bool needs_check() const { return needs_check_; } |
| 2140 | 2140 |
| 2141 DECLARE_CONCRETE_INSTRUCTION(SmiUntag, "smi-untag") | 2141 DECLARE_CONCRETE_INSTRUCTION(SmiUntag, "smi-untag") |
| 2142 | 2142 |
| 2143 private: | 2143 private: |
| 2144 bool needs_check_; | 2144 bool needs_check_; |
| 2145 }; | 2145 }; |
| 2146 | 2146 |
| 2147 | 2147 |
| 2148 class LStoreNamedField V8_FINAL : public LTemplateInstruction<0, 2, 0> { | 2148 class LStoreNamedField V8_FINAL : public LTemplateInstruction<0, 2, 1> { |
| 2149 public: | 2149 public: |
| 2150 LStoreNamedField(LOperand* object, LOperand* value) { | 2150 LStoreNamedField(LOperand* object, LOperand* value, LOperand* temp) { |
| 2151 inputs_[0] = object; | 2151 inputs_[0] = object; |
| 2152 inputs_[1] = value; | 2152 inputs_[1] = value; |
| 2153 temps_[0] = temp; |
| 2153 } | 2154 } |
| 2154 | 2155 |
| 2155 LOperand* object() { return inputs_[0]; } | 2156 LOperand* object() { return inputs_[0]; } |
| 2156 LOperand* value() { return inputs_[1]; } | 2157 LOperand* value() { return inputs_[1]; } |
| 2158 LOperand* temp() { return temps_[0]; } |
| 2157 | 2159 |
| 2158 DECLARE_CONCRETE_INSTRUCTION(StoreNamedField, "store-named-field") | 2160 DECLARE_CONCRETE_INSTRUCTION(StoreNamedField, "store-named-field") |
| 2159 DECLARE_HYDROGEN_ACCESSOR(StoreNamedField) | 2161 DECLARE_HYDROGEN_ACCESSOR(StoreNamedField) |
| 2160 | 2162 |
| 2161 virtual void PrintDataTo(StringStream* stream) V8_OVERRIDE; | 2163 virtual void PrintDataTo(StringStream* stream) V8_OVERRIDE; |
| 2162 | 2164 |
| 2163 Representation representation() const { | 2165 Representation representation() const { |
| 2164 return hydrogen()->field_representation(); | 2166 return hydrogen()->field_representation(); |
| 2165 } | 2167 } |
| 2166 }; | 2168 }; |
| (...skipping 687 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2854 | 2856 |
| 2855 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2857 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
| 2856 }; | 2858 }; |
| 2857 | 2859 |
| 2858 #undef DECLARE_HYDROGEN_ACCESSOR | 2860 #undef DECLARE_HYDROGEN_ACCESSOR |
| 2859 #undef DECLARE_CONCRETE_INSTRUCTION | 2861 #undef DECLARE_CONCRETE_INSTRUCTION |
| 2860 | 2862 |
| 2861 } } // namespace v8::internal | 2863 } } // namespace v8::internal |
| 2862 | 2864 |
| 2863 #endif // V8_ARM_LITHIUM_ARM_H_ | 2865 #endif // V8_ARM_LITHIUM_ARM_H_ |
| OLD | NEW |