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 4444 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4455 __ b(ne, ¬_applicable); | 4455 __ b(ne, ¬_applicable); |
4456 | 4456 |
4457 if (IsSimpleMapChangeTransition(from_kind, to_kind)) { | 4457 if (IsSimpleMapChangeTransition(from_kind, to_kind)) { |
4458 Register new_map_reg = ToRegister(instr->new_map_temp()); | 4458 Register new_map_reg = ToRegister(instr->new_map_temp()); |
4459 __ mov(new_map_reg, Operand(to_map)); | 4459 __ mov(new_map_reg, Operand(to_map)); |
4460 __ str(new_map_reg, FieldMemOperand(object_reg, HeapObject::kMapOffset)); | 4460 __ str(new_map_reg, FieldMemOperand(object_reg, HeapObject::kMapOffset)); |
4461 // Write barrier. | 4461 // Write barrier. |
4462 __ RecordWriteField(object_reg, HeapObject::kMapOffset, new_map_reg, | 4462 __ RecordWriteField(object_reg, HeapObject::kMapOffset, new_map_reg, |
4463 scratch, GetLinkRegisterState(), kDontSaveFPRegs); | 4463 scratch, GetLinkRegisterState(), kDontSaveFPRegs); |
4464 } else { | 4464 } else { |
4465 PushSafepointRegistersScope scope(this, Safepoint::kWithRegisters); | 4465 PushSafepointRegistersScope scope( |
| 4466 this, Safepoint::kWithRegistersAndDoubles); |
4466 __ Move(r0, object_reg); | 4467 __ Move(r0, object_reg); |
4467 __ Move(r1, to_map); | 4468 __ Move(r1, to_map); |
4468 TransitionElementsKindStub stub(from_kind, to_kind); | 4469 TransitionElementsKindStub stub(from_kind, to_kind); |
4469 __ CallStub(&stub); | 4470 __ CallStub(&stub); |
4470 RecordSafepointWithRegisters( | 4471 RecordSafepointWithRegistersAndDoubles( |
4471 instr->pointer_map(), 0, Safepoint::kNoLazyDeopt); | 4472 instr->pointer_map(), 0, Safepoint::kNoLazyDeopt); |
4472 } | 4473 } |
4473 __ bind(¬_applicable); | 4474 __ bind(¬_applicable); |
4474 } | 4475 } |
4475 | 4476 |
4476 | 4477 |
4477 void LCodeGen::DoTrapAllocationMemento(LTrapAllocationMemento* instr) { | 4478 void LCodeGen::DoTrapAllocationMemento(LTrapAllocationMemento* instr) { |
4478 Register object = ToRegister(instr->object()); | 4479 Register object = ToRegister(instr->object()); |
4479 Register temp = ToRegister(instr->temp()); | 4480 Register temp = ToRegister(instr->temp()); |
4480 __ TestJSArrayForAllocationMemento(object, temp); | 4481 __ TestJSArrayForAllocationMemento(object, temp); |
(...skipping 1306 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5787 __ sub(scratch, result, Operand::PointerOffsetFromSmiKey(index)); | 5788 __ sub(scratch, result, Operand::PointerOffsetFromSmiKey(index)); |
5788 __ ldr(result, FieldMemOperand(scratch, | 5789 __ ldr(result, FieldMemOperand(scratch, |
5789 FixedArray::kHeaderSize - kPointerSize)); | 5790 FixedArray::kHeaderSize - kPointerSize)); |
5790 __ bind(&done); | 5791 __ bind(&done); |
5791 } | 5792 } |
5792 | 5793 |
5793 | 5794 |
5794 #undef __ | 5795 #undef __ |
5795 | 5796 |
5796 } } // namespace v8::internal | 5797 } } // namespace v8::internal |
OLD | NEW |