| 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 4531 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4542 __ str(new_map_reg, FieldMemOperand(object_reg, HeapObject::kMapOffset)); | 4542 __ str(new_map_reg, FieldMemOperand(object_reg, HeapObject::kMapOffset)); |
| 4543 // Write barrier. | 4543 // Write barrier. |
| 4544 __ RecordWriteField(object_reg, HeapObject::kMapOffset, new_map_reg, | 4544 __ RecordWriteField(object_reg, HeapObject::kMapOffset, new_map_reg, |
| 4545 scratch, GetLinkRegisterState(), kDontSaveFPRegs); | 4545 scratch, GetLinkRegisterState(), kDontSaveFPRegs); |
| 4546 } else { | 4546 } else { |
| 4547 ASSERT(ToRegister(instr->context()).is(cp)); | 4547 ASSERT(ToRegister(instr->context()).is(cp)); |
| 4548 PushSafepointRegistersScope scope( | 4548 PushSafepointRegistersScope scope( |
| 4549 this, Safepoint::kWithRegistersAndDoubles); | 4549 this, Safepoint::kWithRegistersAndDoubles); |
| 4550 __ Move(r0, object_reg); | 4550 __ Move(r0, object_reg); |
| 4551 __ Move(r1, to_map); | 4551 __ Move(r1, to_map); |
| 4552 TransitionElementsKindStub stub(from_kind, to_kind); | 4552 bool is_js_array = from_map->instance_type() == JS_ARRAY_TYPE; |
| 4553 TransitionElementsKindStub stub(from_kind, to_kind, is_js_array); |
| 4553 __ CallStub(&stub); | 4554 __ CallStub(&stub); |
| 4554 RecordSafepointWithRegistersAndDoubles( | 4555 RecordSafepointWithRegistersAndDoubles( |
| 4555 instr->pointer_map(), 0, Safepoint::kNoLazyDeopt); | 4556 instr->pointer_map(), 0, Safepoint::kNoLazyDeopt); |
| 4556 } | 4557 } |
| 4557 __ bind(¬_applicable); | 4558 __ bind(¬_applicable); |
| 4558 } | 4559 } |
| 4559 | 4560 |
| 4560 | 4561 |
| 4561 void LCodeGen::DoTrapAllocationMemento(LTrapAllocationMemento* instr) { | 4562 void LCodeGen::DoTrapAllocationMemento(LTrapAllocationMemento* instr) { |
| 4562 Register object = ToRegister(instr->object()); | 4563 Register object = ToRegister(instr->object()); |
| (...skipping 1338 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5901 __ sub(scratch, result, Operand::PointerOffsetFromSmiKey(index)); | 5902 __ sub(scratch, result, Operand::PointerOffsetFromSmiKey(index)); |
| 5902 __ ldr(result, FieldMemOperand(scratch, | 5903 __ ldr(result, FieldMemOperand(scratch, |
| 5903 FixedArray::kHeaderSize - kPointerSize)); | 5904 FixedArray::kHeaderSize - kPointerSize)); |
| 5904 __ bind(&done); | 5905 __ bind(&done); |
| 5905 } | 5906 } |
| 5906 | 5907 |
| 5907 | 5908 |
| 5908 #undef __ | 5909 #undef __ |
| 5909 | 5910 |
| 5910 } } // namespace v8::internal | 5911 } } // namespace v8::internal |
| OLD | NEW |