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 #if V8_TARGET_ARCH_ARM64 | 7 #if V8_TARGET_ARCH_ARM64 |
8 | 8 |
9 #include "code-stubs.h" | 9 #include "code-stubs.h" |
10 #include "codegen.h" | 10 #include "codegen.h" |
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
163 // Open a frame scope to indicate that there is a frame on the stack. | 163 // Open a frame scope to indicate that there is a frame on the stack. |
164 // The MANUAL indicates that the scope shouldn't actually generate code | 164 // The MANUAL indicates that the scope shouldn't actually generate code |
165 // to set up the frame because we do it manually below. | 165 // to set up the frame because we do it manually below. |
166 FrameScope frame_scope(masm_, StackFrame::MANUAL); | 166 FrameScope frame_scope(masm_, StackFrame::MANUAL); |
167 | 167 |
168 // This call emits the following sequence in a way that can be patched for | 168 // This call emits the following sequence in a way that can be patched for |
169 // code ageing support: | 169 // code ageing support: |
170 // Push(lr, fp, cp, x1); | 170 // Push(lr, fp, cp, x1); |
171 // Add(fp, jssp, 2 * kPointerSize); | 171 // Add(fp, jssp, 2 * kPointerSize); |
172 info->set_prologue_offset(masm_->pc_offset()); | 172 info->set_prologue_offset(masm_->pc_offset()); |
173 ASSERT(!info->IsStub()); | 173 __ Prologue(info->IsCodePreAgingActive()); |
174 __ Prologue(info); | |
175 info->AddNoFrameRange(0, masm_->pc_offset()); | 174 info->AddNoFrameRange(0, masm_->pc_offset()); |
176 | 175 |
177 // Reserve space on the stack for locals. | 176 // Reserve space on the stack for locals. |
178 { Comment cmnt(masm_, "[ Allocate locals"); | 177 { Comment cmnt(masm_, "[ Allocate locals"); |
179 int locals_count = info->scope()->num_stack_slots(); | 178 int locals_count = info->scope()->num_stack_slots(); |
180 // Generators allocate locals, if any, in context slots. | 179 // Generators allocate locals, if any, in context slots. |
181 ASSERT(!info->function()->is_generator() || locals_count == 0); | 180 ASSERT(!info->function()->is_generator() || locals_count == 0); |
182 | 181 |
183 if (locals_count > 0) { | 182 if (locals_count > 0) { |
184 if (locals_count >= 128) { | 183 if (locals_count >= 128) { |
(...skipping 4702 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4887 return previous_; | 4886 return previous_; |
4888 } | 4887 } |
4889 | 4888 |
4890 | 4889 |
4891 #undef __ | 4890 #undef __ |
4892 | 4891 |
4893 | 4892 |
4894 } } // namespace v8::internal | 4893 } } // namespace v8::internal |
4895 | 4894 |
4896 #endif // V8_TARGET_ARCH_ARM64 | 4895 #endif // V8_TARGET_ARCH_ARM64 |
OLD | NEW |