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 4681 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4692 DCHECK(ToRegister(instr->context()).is(cp)); | 4692 DCHECK(ToRegister(instr->context()).is(cp)); |
4693 Register scratch1 = x5; | 4693 Register scratch1 = x5; |
4694 Register scratch2 = x6; | 4694 Register scratch2 = x6; |
4695 DCHECK(instr->IsMarkedAsCall()); | 4695 DCHECK(instr->IsMarkedAsCall()); |
4696 | 4696 |
4697 // TODO(all): if Mov could handle object in new space then it could be used | 4697 // TODO(all): if Mov could handle object in new space then it could be used |
4698 // here. | 4698 // here. |
4699 __ LoadHeapObject(scratch1, instr->hydrogen()->pairs()); | 4699 __ LoadHeapObject(scratch1, instr->hydrogen()->pairs()); |
4700 __ Mov(scratch2, Smi::FromInt(instr->hydrogen()->flags())); | 4700 __ Mov(scratch2, Smi::FromInt(instr->hydrogen()->flags())); |
4701 __ Push(scratch1, scratch2); | 4701 __ Push(scratch1, scratch2); |
| 4702 __ LoadHeapObject(scratch1, instr->hydrogen()->feedback_vector()); |
| 4703 __ Push(scratch1); |
4702 CallRuntime(Runtime::kDeclareGlobals, instr); | 4704 CallRuntime(Runtime::kDeclareGlobals, instr); |
4703 } | 4705 } |
4704 | 4706 |
4705 | 4707 |
4706 void LCodeGen::DoDeferredStackCheck(LStackCheck* instr) { | 4708 void LCodeGen::DoDeferredStackCheck(LStackCheck* instr) { |
4707 PushSafepointRegistersScope scope(this); | 4709 PushSafepointRegistersScope scope(this); |
4708 LoadContextFromDeferred(instr->context()); | 4710 LoadContextFromDeferred(instr->context()); |
4709 __ CallRuntimeSaveDoubles(Runtime::kStackGuard); | 4711 __ CallRuntimeSaveDoubles(Runtime::kStackGuard); |
4710 RecordSafepointWithLazyDeopt( | 4712 RecordSafepointWithLazyDeopt( |
4711 instr, RECORD_SAFEPOINT_WITH_REGISTERS_AND_NO_ARGUMENTS); | 4713 instr, RECORD_SAFEPOINT_WITH_REGISTERS_AND_NO_ARGUMENTS); |
(...skipping 1017 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5729 // Index is equal to negated out of object property index plus 1. | 5731 // Index is equal to negated out of object property index plus 1. |
5730 __ Sub(result, result, Operand::UntagSmiAndScale(index, kPointerSizeLog2)); | 5732 __ Sub(result, result, Operand::UntagSmiAndScale(index, kPointerSizeLog2)); |
5731 __ Ldr(result, FieldMemOperand(result, | 5733 __ Ldr(result, FieldMemOperand(result, |
5732 FixedArray::kHeaderSize - kPointerSize)); | 5734 FixedArray::kHeaderSize - kPointerSize)); |
5733 __ Bind(deferred->exit()); | 5735 __ Bind(deferred->exit()); |
5734 __ Bind(&done); | 5736 __ Bind(&done); |
5735 } | 5737 } |
5736 | 5738 |
5737 } // namespace internal | 5739 } // namespace internal |
5738 } // namespace v8 | 5740 } // namespace v8 |
OLD | NEW |