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 "v8.h" | 5 #include "v8.h" |
6 | 6 |
7 #include "arm64/lithium-codegen-arm64.h" | 7 #include "arm64/lithium-codegen-arm64.h" |
8 #include "arm64/lithium-gap-resolver-arm64.h" | 8 #include "arm64/lithium-gap-resolver-arm64.h" |
9 #include "code-stubs.h" | 9 #include "code-stubs.h" |
10 #include "stub-cache.h" | 10 #include "stub-cache.h" |
(...skipping 653 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
664 __ Ldr(x10, FieldMemOperand(x10, GlobalObject::kGlobalReceiverOffset)); | 664 __ Ldr(x10, FieldMemOperand(x10, GlobalObject::kGlobalReceiverOffset)); |
665 __ Poke(x10, receiver_offset); | 665 __ Poke(x10, receiver_offset); |
666 | 666 |
667 __ Bind(&ok); | 667 __ Bind(&ok); |
668 } | 668 } |
669 } | 669 } |
670 | 670 |
671 ASSERT(__ StackPointer().Is(jssp)); | 671 ASSERT(__ StackPointer().Is(jssp)); |
672 info()->set_prologue_offset(masm_->pc_offset()); | 672 info()->set_prologue_offset(masm_->pc_offset()); |
673 if (NeedsEagerFrame()) { | 673 if (NeedsEagerFrame()) { |
674 __ Prologue(info()); | 674 if (info()->IsStub()) { |
| 675 __ StubPrologue(); |
| 676 } else { |
| 677 __ Prologue(info()->IsCodePreAgingActive()); |
| 678 } |
675 frame_is_built_ = true; | 679 frame_is_built_ = true; |
676 info_->AddNoFrameRange(0, masm_->pc_offset()); | 680 info_->AddNoFrameRange(0, masm_->pc_offset()); |
677 } | 681 } |
678 | 682 |
679 // Reserve space for the stack slots needed by the code. | 683 // Reserve space for the stack slots needed by the code. |
680 int slots = GetStackSlotCount(); | 684 int slots = GetStackSlotCount(); |
681 if (slots > 0) { | 685 if (slots > 0) { |
682 __ Claim(slots, kPointerSize); | 686 __ Claim(slots, kPointerSize); |
683 } | 687 } |
684 | 688 |
(...skipping 5322 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6007 __ Ldr(result, FieldMemOperand(object, JSObject::kPropertiesOffset)); | 6011 __ Ldr(result, FieldMemOperand(object, JSObject::kPropertiesOffset)); |
6008 // Index is equal to negated out of object property index plus 1. | 6012 // Index is equal to negated out of object property index plus 1. |
6009 __ Sub(result, result, Operand::UntagSmiAndScale(index, kPointerSizeLog2)); | 6013 __ Sub(result, result, Operand::UntagSmiAndScale(index, kPointerSizeLog2)); |
6010 __ Ldr(result, FieldMemOperand(result, | 6014 __ Ldr(result, FieldMemOperand(result, |
6011 FixedArray::kHeaderSize - kPointerSize)); | 6015 FixedArray::kHeaderSize - kPointerSize)); |
6012 __ Bind(deferred->exit()); | 6016 __ Bind(deferred->exit()); |
6013 __ Bind(&done); | 6017 __ Bind(&done); |
6014 } | 6018 } |
6015 | 6019 |
6016 } } // namespace v8::internal | 6020 } } // namespace v8::internal |
OLD | NEW |