OLD | NEW |
1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 the V8 project authors. All rights reserved. |
2 // | 2 // |
3 // Use of this source code is governed by a BSD-style license that can be | 3 // Use of this source code is governed by a BSD-style license that can be |
4 // found in the LICENSE file. | 4 // found in the LICENSE file. |
5 | 5 |
6 #include "src/crankshaft/s390/lithium-codegen-s390.h" | 6 #include "src/crankshaft/s390/lithium-codegen-s390.h" |
7 | 7 |
8 #include "src/base/bits.h" | 8 #include "src/base/bits.h" |
9 #include "src/code-factory.h" | 9 #include "src/code-factory.h" |
10 #include "src/code-stubs.h" | 10 #include "src/code-stubs.h" |
(...skipping 4400 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4411 __ mov(new_map_reg, Operand(to_map)); | 4411 __ mov(new_map_reg, Operand(to_map)); |
4412 __ StoreP(new_map_reg, FieldMemOperand(object_reg, HeapObject::kMapOffset)); | 4412 __ StoreP(new_map_reg, FieldMemOperand(object_reg, HeapObject::kMapOffset)); |
4413 // Write barrier. | 4413 // Write barrier. |
4414 __ RecordWriteForMap(object_reg, new_map_reg, scratch, | 4414 __ RecordWriteForMap(object_reg, new_map_reg, scratch, |
4415 GetLinkRegisterState(), kDontSaveFPRegs); | 4415 GetLinkRegisterState(), kDontSaveFPRegs); |
4416 } else { | 4416 } else { |
4417 DCHECK(ToRegister(instr->context()).is(cp)); | 4417 DCHECK(ToRegister(instr->context()).is(cp)); |
4418 DCHECK(object_reg.is(r2)); | 4418 DCHECK(object_reg.is(r2)); |
4419 PushSafepointRegistersScope scope(this); | 4419 PushSafepointRegistersScope scope(this); |
4420 __ Move(r3, to_map); | 4420 __ Move(r3, to_map); |
4421 bool is_js_array = from_map->instance_type() == JS_ARRAY_TYPE; | 4421 TransitionElementsKindStub stub(isolate(), from_kind, to_kind); |
4422 TransitionElementsKindStub stub(isolate(), from_kind, to_kind, is_js_array); | |
4423 __ CallStub(&stub); | 4422 __ CallStub(&stub); |
4424 RecordSafepointWithRegisters(instr->pointer_map(), 0, | 4423 RecordSafepointWithRegisters(instr->pointer_map(), 0, |
4425 Safepoint::kLazyDeopt); | 4424 Safepoint::kLazyDeopt); |
4426 } | 4425 } |
4427 __ bind(¬_applicable); | 4426 __ bind(¬_applicable); |
4428 } | 4427 } |
4429 | 4428 |
4430 void LCodeGen::DoTrapAllocationMemento(LTrapAllocationMemento* instr) { | 4429 void LCodeGen::DoTrapAllocationMemento(LTrapAllocationMemento* instr) { |
4431 Register object = ToRegister(instr->object()); | 4430 Register object = ToRegister(instr->object()); |
4432 Register temp1 = ToRegister(instr->temp1()); | 4431 Register temp1 = ToRegister(instr->temp1()); |
(...skipping 1262 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5695 __ LoadP(result, | 5694 __ LoadP(result, |
5696 FieldMemOperand(scratch, FixedArray::kHeaderSize - kPointerSize)); | 5695 FieldMemOperand(scratch, FixedArray::kHeaderSize - kPointerSize)); |
5697 __ bind(deferred->exit()); | 5696 __ bind(deferred->exit()); |
5698 __ bind(&done); | 5697 __ bind(&done); |
5699 } | 5698 } |
5700 | 5699 |
5701 #undef __ | 5700 #undef __ |
5702 | 5701 |
5703 } // namespace internal | 5702 } // namespace internal |
5704 } // namespace v8 | 5703 } // namespace v8 |
OLD | NEW |