| OLD | NEW |
| 1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #if V8_TARGET_ARCH_X64 | 5 #if V8_TARGET_ARCH_X64 |
| 6 | 6 |
| 7 #include "src/crankshaft/x64/lithium-codegen-x64.h" | 7 #include "src/crankshaft/x64/lithium-codegen-x64.h" |
| 8 | 8 |
| 9 #include "src/base/bits.h" | 9 #include "src/base/bits.h" |
| 10 #include "src/code-factory.h" | 10 #include "src/code-factory.h" |
| (...skipping 4278 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4289 __ Move(new_map_reg, to_map, RelocInfo::EMBEDDED_OBJECT); | 4289 __ Move(new_map_reg, to_map, RelocInfo::EMBEDDED_OBJECT); |
| 4290 __ movp(FieldOperand(object_reg, HeapObject::kMapOffset), new_map_reg); | 4290 __ movp(FieldOperand(object_reg, HeapObject::kMapOffset), new_map_reg); |
| 4291 // Write barrier. | 4291 // Write barrier. |
| 4292 __ RecordWriteForMap(object_reg, new_map_reg, ToRegister(instr->temp()), | 4292 __ RecordWriteForMap(object_reg, new_map_reg, ToRegister(instr->temp()), |
| 4293 kDontSaveFPRegs); | 4293 kDontSaveFPRegs); |
| 4294 } else { | 4294 } else { |
| 4295 DCHECK(object_reg.is(rax)); | 4295 DCHECK(object_reg.is(rax)); |
| 4296 DCHECK(ToRegister(instr->context()).is(rsi)); | 4296 DCHECK(ToRegister(instr->context()).is(rsi)); |
| 4297 PushSafepointRegistersScope scope(this); | 4297 PushSafepointRegistersScope scope(this); |
| 4298 __ Move(rbx, to_map); | 4298 __ Move(rbx, to_map); |
| 4299 bool is_js_array = from_map->instance_type() == JS_ARRAY_TYPE; | 4299 TransitionElementsKindStub stub(isolate(), from_kind, to_kind); |
| 4300 TransitionElementsKindStub stub(isolate(), from_kind, to_kind, is_js_array); | |
| 4301 __ CallStub(&stub); | 4300 __ CallStub(&stub); |
| 4302 RecordSafepointWithLazyDeopt(instr, RECORD_SAFEPOINT_WITH_REGISTERS, 0); | 4301 RecordSafepointWithLazyDeopt(instr, RECORD_SAFEPOINT_WITH_REGISTERS, 0); |
| 4303 } | 4302 } |
| 4304 __ bind(¬_applicable); | 4303 __ bind(¬_applicable); |
| 4305 } | 4304 } |
| 4306 | 4305 |
| 4307 | 4306 |
| 4308 void LCodeGen::DoTrapAllocationMemento(LTrapAllocationMemento* instr) { | 4307 void LCodeGen::DoTrapAllocationMemento(LTrapAllocationMemento* instr) { |
| 4309 Register object = ToRegister(instr->object()); | 4308 Register object = ToRegister(instr->object()); |
| 4310 Register temp = ToRegister(instr->temp()); | 4309 Register temp = ToRegister(instr->temp()); |
| (...skipping 1283 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5594 __ bind(deferred->exit()); | 5593 __ bind(deferred->exit()); |
| 5595 __ bind(&done); | 5594 __ bind(&done); |
| 5596 } | 5595 } |
| 5597 | 5596 |
| 5598 #undef __ | 5597 #undef __ |
| 5599 | 5598 |
| 5600 } // namespace internal | 5599 } // namespace internal |
| 5601 } // namespace v8 | 5600 } // namespace v8 |
| 5602 | 5601 |
| 5603 #endif // V8_TARGET_ARCH_X64 | 5602 #endif // V8_TARGET_ARCH_X64 |
| OLD | NEW |