| 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 2183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2194 | 2194 |
| 2195 DECLARE_CONCRETE_INSTRUCTION(SmiUntag, "smi-untag") | 2195 DECLARE_CONCRETE_INSTRUCTION(SmiUntag, "smi-untag") |
| 2196 | 2196 |
| 2197 bool needs_check() const { return needs_check_; } | 2197 bool needs_check() const { return needs_check_; } |
| 2198 | 2198 |
| 2199 private: | 2199 private: |
| 2200 bool needs_check_; | 2200 bool needs_check_; |
| 2201 }; | 2201 }; |
| 2202 | 2202 |
| 2203 | 2203 |
| 2204 class LStoreNamedField V8_FINAL : public LTemplateInstruction<0, 2, 2> { | 2204 class LStoreNamedField V8_FINAL : public LTemplateInstruction<0, 2, 1> { |
| 2205 public: | 2205 public: |
| 2206 LStoreNamedField(LOperand* obj, | 2206 LStoreNamedField(LOperand* obj, |
| 2207 LOperand* val, | 2207 LOperand* val, |
| 2208 LOperand* temp, | 2208 LOperand* temp) { |
| 2209 LOperand* temp_map) { | |
| 2210 inputs_[0] = obj; | 2209 inputs_[0] = obj; |
| 2211 inputs_[1] = val; | 2210 inputs_[1] = val; |
| 2212 temps_[0] = temp; | 2211 temps_[0] = temp; |
| 2213 temps_[1] = temp_map; | |
| 2214 } | 2212 } |
| 2215 | 2213 |
| 2216 LOperand* object() { return inputs_[0]; } | 2214 LOperand* object() { return inputs_[0]; } |
| 2217 LOperand* value() { return inputs_[1]; } | 2215 LOperand* value() { return inputs_[1]; } |
| 2218 LOperand* temp() { return temps_[0]; } | 2216 LOperand* temp() { return temps_[0]; } |
| 2219 LOperand* temp_map() { return temps_[1]; } | |
| 2220 | 2217 |
| 2221 DECLARE_CONCRETE_INSTRUCTION(StoreNamedField, "store-named-field") | 2218 DECLARE_CONCRETE_INSTRUCTION(StoreNamedField, "store-named-field") |
| 2222 DECLARE_HYDROGEN_ACCESSOR(StoreNamedField) | 2219 DECLARE_HYDROGEN_ACCESSOR(StoreNamedField) |
| 2223 | 2220 |
| 2224 virtual void PrintDataTo(StringStream* stream) V8_OVERRIDE; | 2221 virtual void PrintDataTo(StringStream* stream) V8_OVERRIDE; |
| 2225 | 2222 |
| 2226 Handle<Map> transition() const { return hydrogen()->transition_map(); } | |
| 2227 Representation representation() const { | 2223 Representation representation() const { |
| 2228 return hydrogen()->field_representation(); | 2224 return hydrogen()->field_representation(); |
| 2229 } | 2225 } |
| 2230 }; | 2226 }; |
| 2231 | 2227 |
| 2232 | 2228 |
| 2233 class LStoreNamedGeneric V8_FINAL : public LTemplateInstruction<0, 3, 0> { | 2229 class LStoreNamedGeneric V8_FINAL : public LTemplateInstruction<0, 3, 0> { |
| 2234 public: | 2230 public: |
| 2235 LStoreNamedGeneric(LOperand* context, LOperand* object, LOperand* value) { | 2231 LStoreNamedGeneric(LOperand* context, LOperand* object, LOperand* value) { |
| 2236 inputs_[0] = context; | 2232 inputs_[0] = context; |
| (...skipping 657 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2894 | 2890 |
| 2895 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2891 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
| 2896 }; | 2892 }; |
| 2897 | 2893 |
| 2898 #undef DECLARE_HYDROGEN_ACCESSOR | 2894 #undef DECLARE_HYDROGEN_ACCESSOR |
| 2899 #undef DECLARE_CONCRETE_INSTRUCTION | 2895 #undef DECLARE_CONCRETE_INSTRUCTION |
| 2900 | 2896 |
| 2901 } } // namespace v8::internal | 2897 } } // namespace v8::internal |
| 2902 | 2898 |
| 2903 #endif // V8_IA32_LITHIUM_IA32_H_ | 2899 #endif // V8_IA32_LITHIUM_IA32_H_ |
| OLD | NEW |