| 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 2254 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  2265   } else { |  2265   } else { | 
|  2266     val = UseRegister(instr->value()); |  2266     val = UseRegister(instr->value()); | 
|  2267   } |  2267   } | 
|  2268  |  2268  | 
|  2269   // We only need a scratch register if we have a write barrier or we |  2269   // We only need a scratch register if we have a write barrier or we | 
|  2270   // have a store into the properties array (not in-object-property). |  2270   // have a store into the properties array (not in-object-property). | 
|  2271   LOperand* temp = (!instr->is_in_object() || needs_write_barrier || |  2271   LOperand* temp = (!instr->is_in_object() || needs_write_barrier || | 
|  2272       needs_write_barrier_for_map) ? TempRegister() : NULL; |  2272       needs_write_barrier_for_map) ? TempRegister() : NULL; | 
|  2273  |  2273  | 
|  2274   LStoreNamedField* result = new(zone()) LStoreNamedField(obj, val, temp); |  2274   LStoreNamedField* result = new(zone()) LStoreNamedField(obj, val, temp); | 
|  2275   if (FLAG_track_fields && instr->field_representation().IsSmi()) { |  2275   if ((FLAG_track_fields && instr->field_representation().IsSmi()) || | 
 |  2276       (FLAG_track_heap_object_fields && | 
 |  2277        instr->field_representation().IsHeapObject())) { | 
|  2276     return AssignEnvironment(result); |  2278     return AssignEnvironment(result); | 
|  2277   } |  2279   } | 
|  2278   return result; |  2280   return result; | 
|  2279 } |  2281 } | 
|  2280  |  2282  | 
|  2281  |  2283  | 
|  2282 LInstruction* LChunkBuilder::DoStoreNamedGeneric(HStoreNamedGeneric* instr) { |  2284 LInstruction* LChunkBuilder::DoStoreNamedGeneric(HStoreNamedGeneric* instr) { | 
|  2283   LOperand* object = UseFixed(instr->object(), rdx); |  2285   LOperand* object = UseFixed(instr->object(), rdx); | 
|  2284   LOperand* value = UseFixed(instr->value(), rax); |  2286   LOperand* value = UseFixed(instr->value(), rax); | 
|  2285  |  2287  | 
| (...skipping 271 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  2557 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { |  2559 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { | 
|  2558   LOperand* object = UseRegister(instr->object()); |  2560   LOperand* object = UseRegister(instr->object()); | 
|  2559   LOperand* index = UseTempRegister(instr->index()); |  2561   LOperand* index = UseTempRegister(instr->index()); | 
|  2560   return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index)); |  2562   return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index)); | 
|  2561 } |  2563 } | 
|  2562  |  2564  | 
|  2563  |  2565  | 
|  2564 } }  // namespace v8::internal |  2566 } }  // namespace v8::internal | 
|  2565  |  2567  | 
|  2566 #endif  // V8_TARGET_ARCH_X64 |  2568 #endif  // V8_TARGET_ARCH_X64 | 
| OLD | NEW |