| 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 2315 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2326 instr->field_representation().IsDouble()) { | 2326 instr->field_representation().IsDouble()) { |
| 2327 val = UseRegisterAtStart(instr->value()); | 2327 val = UseRegisterAtStart(instr->value()); |
| 2328 } else { | 2328 } else { |
| 2329 val = UseRegister(instr->value()); | 2329 val = UseRegister(instr->value()); |
| 2330 } | 2330 } |
| 2331 | 2331 |
| 2332 // We need a temporary register for write barrier of the map field. | 2332 // We need a temporary register for write barrier of the map field. |
| 2333 LOperand* temp = needs_write_barrier_for_map ? TempRegister() : NULL; | 2333 LOperand* temp = needs_write_barrier_for_map ? TempRegister() : NULL; |
| 2334 | 2334 |
| 2335 LStoreNamedField* result = new(zone()) LStoreNamedField(obj, val, temp); | 2335 LStoreNamedField* result = new(zone()) LStoreNamedField(obj, val, temp); |
| 2336 if (FLAG_track_fields && instr->field_representation().IsSmi()) { | 2336 if ((FLAG_track_fields && instr->field_representation().IsSmi()) || |
| 2337 (FLAG_track_heap_object_fields && |
| 2338 instr->field_representation().IsHeapObject())) { |
| 2337 return AssignEnvironment(result); | 2339 return AssignEnvironment(result); |
| 2338 } | 2340 } |
| 2339 return result; | 2341 return result; |
| 2340 } | 2342 } |
| 2341 | 2343 |
| 2342 | 2344 |
| 2343 LInstruction* LChunkBuilder::DoStoreNamedGeneric(HStoreNamedGeneric* instr) { | 2345 LInstruction* LChunkBuilder::DoStoreNamedGeneric(HStoreNamedGeneric* instr) { |
| 2344 LOperand* obj = UseFixed(instr->object(), r1); | 2346 LOperand* obj = UseFixed(instr->object(), r1); |
| 2345 LOperand* val = UseFixed(instr->value(), r0); | 2347 LOperand* val = UseFixed(instr->value(), r0); |
| 2346 | 2348 |
| (...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2616 | 2618 |
| 2617 | 2619 |
| 2618 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { | 2620 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { |
| 2619 LOperand* object = UseRegister(instr->object()); | 2621 LOperand* object = UseRegister(instr->object()); |
| 2620 LOperand* index = UseRegister(instr->index()); | 2622 LOperand* index = UseRegister(instr->index()); |
| 2621 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); | 2623 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); |
| 2622 } | 2624 } |
| 2623 | 2625 |
| 2624 | 2626 |
| 2625 } } // namespace v8::internal | 2627 } } // namespace v8::internal |
| OLD | NEW |