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 2227 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2238 LOperand* temp = TempRegister(); | 2238 LOperand* temp = TempRegister(); |
2239 LTrapAllocationMemento* result = | 2239 LTrapAllocationMemento* result = |
2240 new(zone()) LTrapAllocationMemento(object, temp); | 2240 new(zone()) LTrapAllocationMemento(object, temp); |
2241 return AssignEnvironment(result); | 2241 return AssignEnvironment(result); |
2242 } | 2242 } |
2243 | 2243 |
2244 | 2244 |
2245 LInstruction* LChunkBuilder::DoStoreNamedField(HStoreNamedField* instr) { | 2245 LInstruction* LChunkBuilder::DoStoreNamedField(HStoreNamedField* instr) { |
2246 bool is_in_object = instr->access().IsInobject(); | 2246 bool is_in_object = instr->access().IsInobject(); |
2247 bool needs_write_barrier = instr->NeedsWriteBarrier(); | 2247 bool needs_write_barrier = instr->NeedsWriteBarrier(); |
2248 bool needs_write_barrier_for_map = !instr->transition().is_null() && | 2248 bool needs_write_barrier_for_map = instr->has_transition() && |
2249 instr->NeedsWriteBarrierForMap(); | 2249 instr->NeedsWriteBarrierForMap(); |
2250 | 2250 |
2251 LOperand* obj; | 2251 LOperand* obj; |
2252 if (needs_write_barrier) { | 2252 if (needs_write_barrier) { |
2253 obj = is_in_object | 2253 obj = is_in_object |
2254 ? UseRegister(instr->object()) | 2254 ? UseRegister(instr->object()) |
2255 : UseTempRegister(instr->object()); | 2255 : UseTempRegister(instr->object()); |
2256 } else { | 2256 } else { |
2257 obj = needs_write_barrier_for_map | 2257 obj = needs_write_barrier_for_map |
2258 ? UseRegister(instr->object()) | 2258 ? UseRegister(instr->object()) |
(...skipping 272 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2531 | 2531 |
2532 | 2532 |
2533 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { | 2533 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { |
2534 LOperand* object = UseRegister(instr->object()); | 2534 LOperand* object = UseRegister(instr->object()); |
2535 LOperand* index = UseRegister(instr->index()); | 2535 LOperand* index = UseRegister(instr->index()); |
2536 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); | 2536 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); |
2537 } | 2537 } |
2538 | 2538 |
2539 | 2539 |
2540 } } // namespace v8::internal | 2540 } } // namespace v8::internal |
OLD | NEW |