OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 #include "src/crankshaft/arm/lithium-codegen-arm.h" | 5 #include "src/crankshaft/arm/lithium-codegen-arm.h" |
6 | 6 |
7 #include "src/base/bits.h" | 7 #include "src/base/bits.h" |
8 #include "src/code-factory.h" | 8 #include "src/code-factory.h" |
9 #include "src/code-stubs.h" | 9 #include "src/code-stubs.h" |
10 #include "src/crankshaft/arm/lithium-gap-resolver-arm.h" | 10 #include "src/crankshaft/arm/lithium-gap-resolver-arm.h" |
(...skipping 4196 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4207 __ RecordWriteForMap(object_reg, | 4207 __ RecordWriteForMap(object_reg, |
4208 new_map_reg, | 4208 new_map_reg, |
4209 scratch, | 4209 scratch, |
4210 GetLinkRegisterState(), | 4210 GetLinkRegisterState(), |
4211 kDontSaveFPRegs); | 4211 kDontSaveFPRegs); |
4212 } else { | 4212 } else { |
4213 DCHECK(ToRegister(instr->context()).is(cp)); | 4213 DCHECK(ToRegister(instr->context()).is(cp)); |
4214 DCHECK(object_reg.is(r0)); | 4214 DCHECK(object_reg.is(r0)); |
4215 PushSafepointRegistersScope scope(this); | 4215 PushSafepointRegistersScope scope(this); |
4216 __ Move(r1, to_map); | 4216 __ Move(r1, to_map); |
4217 bool is_js_array = from_map->instance_type() == JS_ARRAY_TYPE; | 4217 TransitionElementsKindStub stub(isolate(), from_kind, to_kind); |
4218 TransitionElementsKindStub stub(isolate(), from_kind, to_kind, is_js_array); | |
4219 __ CallStub(&stub); | 4218 __ CallStub(&stub); |
4220 RecordSafepointWithRegisters( | 4219 RecordSafepointWithRegisters( |
4221 instr->pointer_map(), 0, Safepoint::kLazyDeopt); | 4220 instr->pointer_map(), 0, Safepoint::kLazyDeopt); |
4222 } | 4221 } |
4223 __ bind(¬_applicable); | 4222 __ bind(¬_applicable); |
4224 } | 4223 } |
4225 | 4224 |
4226 | 4225 |
4227 void LCodeGen::DoTrapAllocationMemento(LTrapAllocationMemento* instr) { | 4226 void LCodeGen::DoTrapAllocationMemento(LTrapAllocationMemento* instr) { |
4228 Register object = ToRegister(instr->object()); | 4227 Register object = ToRegister(instr->object()); |
(...skipping 1323 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5552 __ ldr(result, FieldMemOperand(scratch, | 5551 __ ldr(result, FieldMemOperand(scratch, |
5553 FixedArray::kHeaderSize - kPointerSize)); | 5552 FixedArray::kHeaderSize - kPointerSize)); |
5554 __ bind(deferred->exit()); | 5553 __ bind(deferred->exit()); |
5555 __ bind(&done); | 5554 __ bind(&done); |
5556 } | 5555 } |
5557 | 5556 |
5558 #undef __ | 5557 #undef __ |
5559 | 5558 |
5560 } // namespace internal | 5559 } // namespace internal |
5561 } // namespace v8 | 5560 } // namespace v8 |
OLD | NEW |