| 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 4827 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4838 if (is_simple_map_transition) { | 4838 if (is_simple_map_transition) { |
| 4839 Register new_map_reg = ToRegister(instr->new_map_temp()); | 4839 Register new_map_reg = ToRegister(instr->new_map_temp()); |
| 4840 __ mov(FieldOperand(object_reg, HeapObject::kMapOffset), | 4840 __ mov(FieldOperand(object_reg, HeapObject::kMapOffset), |
| 4841 Immediate(to_map)); | 4841 Immediate(to_map)); |
| 4842 // Write barrier. | 4842 // Write barrier. |
| 4843 ASSERT_NE(instr->temp(), NULL); | 4843 ASSERT_NE(instr->temp(), NULL); |
| 4844 __ RecordWriteForMap(object_reg, to_map, new_map_reg, | 4844 __ RecordWriteForMap(object_reg, to_map, new_map_reg, |
| 4845 ToRegister(instr->temp()), | 4845 ToRegister(instr->temp()), |
| 4846 kDontSaveFPRegs); | 4846 kDontSaveFPRegs); |
| 4847 } else { | 4847 } else { |
| 4848 ASSERT(ToRegister(instr->context()).is(esi)); |
| 4848 PushSafepointRegistersScope scope(this); | 4849 PushSafepointRegistersScope scope(this); |
| 4849 if (!object_reg.is(eax)) { | 4850 if (!object_reg.is(eax)) { |
| 4850 __ push(object_reg); | 4851 __ mov(eax, object_reg); |
| 4851 } | |
| 4852 LoadContextFromDeferred(instr->context()); | |
| 4853 if (!object_reg.is(eax)) { | |
| 4854 __ pop(eax); | |
| 4855 } | 4852 } |
| 4856 __ mov(ebx, to_map); | 4853 __ mov(ebx, to_map); |
| 4857 TransitionElementsKindStub stub(from_kind, to_kind); | 4854 TransitionElementsKindStub stub(from_kind, to_kind); |
| 4858 __ CallStub(&stub); | 4855 __ CallStub(&stub); |
| 4859 RecordSafepointWithRegisters( | 4856 RecordSafepointWithRegisters( |
| 4860 instr->pointer_map(), 0, Safepoint::kNoLazyDeopt); | 4857 instr->pointer_map(), 0, Safepoint::kNoLazyDeopt); |
| 4861 } | 4858 } |
| 4862 __ bind(¬_applicable); | 4859 __ bind(¬_applicable); |
| 4863 } | 4860 } |
| 4864 | 4861 |
| (...skipping 1566 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6431 FixedArray::kHeaderSize - kPointerSize)); | 6428 FixedArray::kHeaderSize - kPointerSize)); |
| 6432 __ bind(&done); | 6429 __ bind(&done); |
| 6433 } | 6430 } |
| 6434 | 6431 |
| 6435 | 6432 |
| 6436 #undef __ | 6433 #undef __ |
| 6437 | 6434 |
| 6438 } } // namespace v8::internal | 6435 } } // namespace v8::internal |
| 6439 | 6436 |
| 6440 #endif // V8_TARGET_ARCH_IA32 | 6437 #endif // V8_TARGET_ARCH_IA32 |
| OLD | NEW |