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 2191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2202 instr->field_representation().IsDouble()) { | 2202 instr->field_representation().IsDouble()) { |
2203 val = UseRegisterAtStart(instr->value()); | 2203 val = UseRegisterAtStart(instr->value()); |
2204 } else { | 2204 } else { |
2205 val = UseRegister(instr->value()); | 2205 val = UseRegister(instr->value()); |
2206 } | 2206 } |
2207 | 2207 |
2208 // We need a temporary register for write barrier of the map field. | 2208 // We need a temporary register for write barrier of the map field. |
2209 LOperand* temp = needs_write_barrier_for_map ? TempRegister() : NULL; | 2209 LOperand* temp = needs_write_barrier_for_map ? TempRegister() : NULL; |
2210 | 2210 |
2211 LStoreNamedField* result = new(zone()) LStoreNamedField(obj, val, temp); | 2211 LStoreNamedField* result = new(zone()) LStoreNamedField(obj, val, temp); |
2212 if (FLAG_track_fields && instr->field_representation().IsSmi()) { | 2212 if ((FLAG_track_fields && instr->field_representation().IsSmi()) || |
| 2213 (FLAG_track_heap_object_fields && |
| 2214 instr->field_representation().IsHeapObject())) { |
2213 return AssignEnvironment(result); | 2215 return AssignEnvironment(result); |
2214 } | 2216 } |
2215 return result; | 2217 return result; |
2216 } | 2218 } |
2217 | 2219 |
2218 | 2220 |
2219 LInstruction* LChunkBuilder::DoStoreNamedGeneric(HStoreNamedGeneric* instr) { | 2221 LInstruction* LChunkBuilder::DoStoreNamedGeneric(HStoreNamedGeneric* instr) { |
2220 LOperand* obj = UseFixed(instr->object(), a1); | 2222 LOperand* obj = UseFixed(instr->object(), a1); |
2221 LOperand* val = UseFixed(instr->value(), a0); | 2223 LOperand* val = UseFixed(instr->value(), a0); |
2222 | 2224 |
(...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2492 | 2494 |
2493 | 2495 |
2494 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { | 2496 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { |
2495 LOperand* object = UseRegister(instr->object()); | 2497 LOperand* object = UseRegister(instr->object()); |
2496 LOperand* index = UseRegister(instr->index()); | 2498 LOperand* index = UseRegister(instr->index()); |
2497 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); | 2499 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); |
2498 } | 2500 } |
2499 | 2501 |
2500 | 2502 |
2501 } } // namespace v8::internal | 2503 } } // namespace v8::internal |
OLD | NEW |