| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved.7 | 1 // Copyright 2012 the V8 project authors. All rights reserved.7 |
| 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 4325 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4336 __ sw(new_map_reg, FieldMemOperand(object_reg, HeapObject::kMapOffset)); | 4336 __ sw(new_map_reg, FieldMemOperand(object_reg, HeapObject::kMapOffset)); |
| 4337 // Write barrier. | 4337 // Write barrier. |
| 4338 __ RecordWriteField(object_reg, HeapObject::kMapOffset, new_map_reg, | 4338 __ RecordWriteField(object_reg, HeapObject::kMapOffset, new_map_reg, |
| 4339 scratch, GetRAState(), kDontSaveFPRegs); | 4339 scratch, GetRAState(), kDontSaveFPRegs); |
| 4340 } else { | 4340 } else { |
| 4341 ASSERT(ToRegister(instr->context()).is(cp)); | 4341 ASSERT(ToRegister(instr->context()).is(cp)); |
| 4342 PushSafepointRegistersScope scope( | 4342 PushSafepointRegistersScope scope( |
| 4343 this, Safepoint::kWithRegistersAndDoubles); | 4343 this, Safepoint::kWithRegistersAndDoubles); |
| 4344 __ mov(a0, object_reg); | 4344 __ mov(a0, object_reg); |
| 4345 __ li(a1, Operand(to_map)); | 4345 __ li(a1, Operand(to_map)); |
| 4346 TransitionElementsKindStub stub(from_kind, to_kind); | 4346 bool is_js_array = from_map->instance_type() == JS_ARRAY_TYPE; |
| 4347 TransitionElementsKindStub stub(from_kind, to_kind, is_js_array); |
| 4347 __ CallStub(&stub); | 4348 __ CallStub(&stub); |
| 4348 RecordSafepointWithRegistersAndDoubles( | 4349 RecordSafepointWithRegistersAndDoubles( |
| 4349 instr->pointer_map(), 0, Safepoint::kNoLazyDeopt); | 4350 instr->pointer_map(), 0, Safepoint::kNoLazyDeopt); |
| 4350 } | 4351 } |
| 4351 __ bind(¬_applicable); | 4352 __ bind(¬_applicable); |
| 4352 } | 4353 } |
| 4353 | 4354 |
| 4354 | 4355 |
| 4355 void LCodeGen::DoTrapAllocationMemento(LTrapAllocationMemento* instr) { | 4356 void LCodeGen::DoTrapAllocationMemento(LTrapAllocationMemento* instr) { |
| 4356 Register object = ToRegister(instr->object()); | 4357 Register object = ToRegister(instr->object()); |
| (...skipping 1384 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5741 __ Subu(scratch, result, scratch); | 5742 __ Subu(scratch, result, scratch); |
| 5742 __ lw(result, FieldMemOperand(scratch, | 5743 __ lw(result, FieldMemOperand(scratch, |
| 5743 FixedArray::kHeaderSize - kPointerSize)); | 5744 FixedArray::kHeaderSize - kPointerSize)); |
| 5744 __ bind(&done); | 5745 __ bind(&done); |
| 5745 } | 5746 } |
| 5746 | 5747 |
| 5747 | 5748 |
| 5748 #undef __ | 5749 #undef __ |
| 5749 | 5750 |
| 5750 } } // namespace v8::internal | 5751 } } // namespace v8::internal |
| OLD | NEW |