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 "v8.h" | 5 #include "v8.h" |
6 | 6 |
7 #include "arm/lithium-codegen-arm.h" | 7 #include "arm/lithium-codegen-arm.h" |
8 #include "arm/lithium-gap-resolver-arm.h" | 8 #include "arm/lithium-gap-resolver-arm.h" |
9 #include "code-stubs.h" | 9 #include "code-stubs.h" |
10 #include "stub-cache.h" | 10 #include "stub-cache.h" |
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
133 __ ldr(r2, FieldMemOperand(r2, GlobalObject::kGlobalReceiverOffset)); | 133 __ ldr(r2, FieldMemOperand(r2, GlobalObject::kGlobalReceiverOffset)); |
134 | 134 |
135 __ str(r2, MemOperand(sp, receiver_offset)); | 135 __ str(r2, MemOperand(sp, receiver_offset)); |
136 | 136 |
137 __ bind(&ok); | 137 __ bind(&ok); |
138 } | 138 } |
139 } | 139 } |
140 | 140 |
141 info()->set_prologue_offset(masm_->pc_offset()); | 141 info()->set_prologue_offset(masm_->pc_offset()); |
142 if (NeedsEagerFrame()) { | 142 if (NeedsEagerFrame()) { |
143 __ Prologue(info()); | 143 if (info()->IsStub()) { |
| 144 __ StubPrologue(); |
| 145 } else { |
| 146 __ Prologue(info()->IsCodePreAgingActive()); |
| 147 } |
144 frame_is_built_ = true; | 148 frame_is_built_ = true; |
145 info_->AddNoFrameRange(0, masm_->pc_offset()); | 149 info_->AddNoFrameRange(0, masm_->pc_offset()); |
146 } | 150 } |
147 | 151 |
148 // Reserve space for the stack slots needed by the code. | 152 // Reserve space for the stack slots needed by the code. |
149 int slots = GetStackSlotCount(); | 153 int slots = GetStackSlotCount(); |
150 if (slots > 0) { | 154 if (slots > 0) { |
151 if (FLAG_debug_code) { | 155 if (FLAG_debug_code) { |
152 __ sub(sp, sp, Operand(slots * kPointerSize)); | 156 __ sub(sp, sp, Operand(slots * kPointerSize)); |
153 __ push(r0); | 157 __ push(r0); |
(...skipping 5704 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5858 __ ldr(result, FieldMemOperand(scratch, | 5862 __ ldr(result, FieldMemOperand(scratch, |
5859 FixedArray::kHeaderSize - kPointerSize)); | 5863 FixedArray::kHeaderSize - kPointerSize)); |
5860 __ bind(deferred->exit()); | 5864 __ bind(deferred->exit()); |
5861 __ bind(&done); | 5865 __ bind(&done); |
5862 } | 5866 } |
5863 | 5867 |
5864 | 5868 |
5865 #undef __ | 5869 #undef __ |
5866 | 5870 |
5867 } } // namespace v8::internal | 5871 } } // namespace v8::internal |
OLD | NEW |