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 4577 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4588 | 4588 |
4589 | 4589 |
4590 void LCodeGen::DoDeclareGlobals(LDeclareGlobals* instr) { | 4590 void LCodeGen::DoDeclareGlobals(LDeclareGlobals* instr) { |
4591 DCHECK(ToRegister(instr->context()).is(cp)); | 4591 DCHECK(ToRegister(instr->context()).is(cp)); |
4592 Register scratch1 = x5; | 4592 Register scratch1 = x5; |
4593 Register scratch2 = x6; | 4593 Register scratch2 = x6; |
4594 DCHECK(instr->IsMarkedAsCall()); | 4594 DCHECK(instr->IsMarkedAsCall()); |
4595 | 4595 |
4596 // TODO(all): if Mov could handle object in new space then it could be used | 4596 // TODO(all): if Mov could handle object in new space then it could be used |
4597 // here. | 4597 // here. |
4598 __ LoadHeapObject(scratch1, instr->hydrogen()->pairs()); | 4598 __ LoadHeapObject(scratch1, instr->hydrogen()->declarations()); |
4599 __ Mov(scratch2, Smi::FromInt(instr->hydrogen()->flags())); | 4599 __ Mov(scratch2, Smi::FromInt(instr->hydrogen()->flags())); |
4600 __ Push(scratch1, scratch2); | 4600 __ Push(scratch1, scratch2); |
4601 __ LoadHeapObject(scratch1, instr->hydrogen()->feedback_vector()); | 4601 __ LoadHeapObject(scratch1, instr->hydrogen()->feedback_vector()); |
4602 __ Push(scratch1); | 4602 __ Push(scratch1); |
4603 CallRuntime(Runtime::kDeclareGlobals, instr); | 4603 CallRuntime(Runtime::kDeclareGlobals, instr); |
4604 } | 4604 } |
4605 | 4605 |
4606 | 4606 |
4607 void LCodeGen::DoDeferredStackCheck(LStackCheck* instr) { | 4607 void LCodeGen::DoDeferredStackCheck(LStackCheck* instr) { |
4608 PushSafepointRegistersScope scope(this); | 4608 PushSafepointRegistersScope scope(this); |
(...skipping 978 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5587 // Index is equal to negated out of object property index plus 1. | 5587 // Index is equal to negated out of object property index plus 1. |
5588 __ Sub(result, result, Operand::UntagSmiAndScale(index, kPointerSizeLog2)); | 5588 __ Sub(result, result, Operand::UntagSmiAndScale(index, kPointerSizeLog2)); |
5589 __ Ldr(result, FieldMemOperand(result, | 5589 __ Ldr(result, FieldMemOperand(result, |
5590 FixedArray::kHeaderSize - kPointerSize)); | 5590 FixedArray::kHeaderSize - kPointerSize)); |
5591 __ Bind(deferred->exit()); | 5591 __ Bind(deferred->exit()); |
5592 __ Bind(&done); | 5592 __ Bind(&done); |
5593 } | 5593 } |
5594 | 5594 |
5595 } // namespace internal | 5595 } // namespace internal |
5596 } // namespace v8 | 5596 } // namespace v8 |
OLD | NEW |