| 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 #include "src/crankshaft/arm64/lithium-codegen-arm64.h" | 5 #include "src/crankshaft/arm64/lithium-codegen-arm64.h" |
| 6 | 6 |
| 7 #include "src/arm64/frames-arm64.h" | 7 #include "src/arm64/frames-arm64.h" |
| 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 5439 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5450 UseScratchRegisterScope temps(masm()); | 5450 UseScratchRegisterScope temps(masm()); |
| 5451 // Use the temp register only in a restricted scope - the codegen checks | 5451 // Use the temp register only in a restricted scope - the codegen checks |
| 5452 // that we do not use any register across a call. | 5452 // that we do not use any register across a call. |
| 5453 __ CheckMap(object, temps.AcquireX(), from_map, ¬_applicable, | 5453 __ CheckMap(object, temps.AcquireX(), from_map, ¬_applicable, |
| 5454 DONT_DO_SMI_CHECK); | 5454 DONT_DO_SMI_CHECK); |
| 5455 } | 5455 } |
| 5456 DCHECK(object.is(x0)); | 5456 DCHECK(object.is(x0)); |
| 5457 DCHECK(ToRegister(instr->context()).is(cp)); | 5457 DCHECK(ToRegister(instr->context()).is(cp)); |
| 5458 PushSafepointRegistersScope scope(this); | 5458 PushSafepointRegistersScope scope(this); |
| 5459 __ Mov(x1, Operand(to_map)); | 5459 __ Mov(x1, Operand(to_map)); |
| 5460 bool is_js_array = from_map->instance_type() == JS_ARRAY_TYPE; | 5460 TransitionElementsKindStub stub(isolate(), from_kind, to_kind); |
| 5461 TransitionElementsKindStub stub(isolate(), from_kind, to_kind, is_js_array); | |
| 5462 __ CallStub(&stub); | 5461 __ CallStub(&stub); |
| 5463 RecordSafepointWithRegisters( | 5462 RecordSafepointWithRegisters( |
| 5464 instr->pointer_map(), 0, Safepoint::kLazyDeopt); | 5463 instr->pointer_map(), 0, Safepoint::kLazyDeopt); |
| 5465 } | 5464 } |
| 5466 __ Bind(¬_applicable); | 5465 __ Bind(¬_applicable); |
| 5467 } | 5466 } |
| 5468 | 5467 |
| 5469 | 5468 |
| 5470 void LCodeGen::DoTrapAllocationMemento(LTrapAllocationMemento* instr) { | 5469 void LCodeGen::DoTrapAllocationMemento(LTrapAllocationMemento* instr) { |
| 5471 Register object = ToRegister(instr->object()); | 5470 Register object = ToRegister(instr->object()); |
| (...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5741 // Index is equal to negated out of object property index plus 1. | 5740 // Index is equal to negated out of object property index plus 1. |
| 5742 __ Sub(result, result, Operand::UntagSmiAndScale(index, kPointerSizeLog2)); | 5741 __ Sub(result, result, Operand::UntagSmiAndScale(index, kPointerSizeLog2)); |
| 5743 __ Ldr(result, FieldMemOperand(result, | 5742 __ Ldr(result, FieldMemOperand(result, |
| 5744 FixedArray::kHeaderSize - kPointerSize)); | 5743 FixedArray::kHeaderSize - kPointerSize)); |
| 5745 __ Bind(deferred->exit()); | 5744 __ Bind(deferred->exit()); |
| 5746 __ Bind(&done); | 5745 __ Bind(&done); |
| 5747 } | 5746 } |
| 5748 | 5747 |
| 5749 } // namespace internal | 5748 } // namespace internal |
| 5750 } // namespace v8 | 5749 } // namespace v8 |
| OLD | NEW |