| 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 #if V8_TARGET_ARCH_ARM64 | 5 #if V8_TARGET_ARCH_ARM64 |
| 6 | 6 |
| 7 #include "src/ast/scopes.h" | 7 #include "src/ast/scopes.h" |
| 8 #include "src/code-factory.h" | 8 #include "src/code-factory.h" |
| 9 #include "src/code-stubs.h" | 9 #include "src/code-stubs.h" |
| 10 #include "src/codegen.h" | 10 #include "src/codegen.h" |
| (...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 127 // Open a frame scope to indicate that there is a frame on the stack. | 127 // Open a frame scope to indicate that there is a frame on the stack. |
| 128 // The MANUAL indicates that the scope shouldn't actually generate code | 128 // The MANUAL indicates that the scope shouldn't actually generate code |
| 129 // to set up the frame because we do it manually below. | 129 // to set up the frame because we do it manually below. |
| 130 FrameScope frame_scope(masm_, StackFrame::MANUAL); | 130 FrameScope frame_scope(masm_, StackFrame::MANUAL); |
| 131 | 131 |
| 132 // This call emits the following sequence in a way that can be patched for | 132 // This call emits the following sequence in a way that can be patched for |
| 133 // code ageing support: | 133 // code ageing support: |
| 134 // Push(lr, fp, cp, x1); | 134 // Push(lr, fp, cp, x1); |
| 135 // Add(fp, jssp, 2 * kPointerSize); | 135 // Add(fp, jssp, 2 * kPointerSize); |
| 136 info->set_prologue_offset(masm_->pc_offset()); | 136 info->set_prologue_offset(masm_->pc_offset()); |
| 137 __ Prologue(info->IsCodePreAgingActive()); | 137 __ Prologue(info->GeneratePreagedPrologue()); |
| 138 | 138 |
| 139 // Reserve space on the stack for locals. | 139 // Reserve space on the stack for locals. |
| 140 { Comment cmnt(masm_, "[ Allocate locals"); | 140 { Comment cmnt(masm_, "[ Allocate locals"); |
| 141 int locals_count = info->scope()->num_stack_slots(); | 141 int locals_count = info->scope()->num_stack_slots(); |
| 142 // Generators allocate locals, if any, in context slots. | 142 // Generators allocate locals, if any, in context slots. |
| 143 DCHECK(!IsGeneratorFunction(info->literal()->kind()) || locals_count == 0); | 143 DCHECK(!IsGeneratorFunction(info->literal()->kind()) || locals_count == 0); |
| 144 | 144 |
| 145 if (locals_count > 0) { | 145 if (locals_count > 0) { |
| 146 if (locals_count >= 128) { | 146 if (locals_count >= 128) { |
| 147 Label ok; | 147 Label ok; |
| (...skipping 4710 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4858 } | 4858 } |
| 4859 | 4859 |
| 4860 return INTERRUPT; | 4860 return INTERRUPT; |
| 4861 } | 4861 } |
| 4862 | 4862 |
| 4863 | 4863 |
| 4864 } // namespace internal | 4864 } // namespace internal |
| 4865 } // namespace v8 | 4865 } // namespace v8 |
| 4866 | 4866 |
| 4867 #endif // V8_TARGET_ARCH_ARM64 | 4867 #endif // V8_TARGET_ARCH_ARM64 |
| OLD | NEW |