| 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 "src/v8.h" | 5 #include "src/v8.h" |
| 6 | 6 |
| 7 #if V8_TARGET_ARCH_ARM | 7 #if V8_TARGET_ARCH_ARM |
| 8 | 8 |
| 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 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 146 // the frame (that is done below). | 146 // the frame (that is done below). |
| 147 FrameScope frame_scope(masm_, StackFrame::MANUAL); | 147 FrameScope frame_scope(masm_, StackFrame::MANUAL); |
| 148 | 148 |
| 149 info->set_prologue_offset(masm_->pc_offset()); | 149 info->set_prologue_offset(masm_->pc_offset()); |
| 150 __ Prologue(info->IsCodePreAgingActive()); | 150 __ Prologue(info->IsCodePreAgingActive()); |
| 151 info->AddNoFrameRange(0, masm_->pc_offset()); | 151 info->AddNoFrameRange(0, masm_->pc_offset()); |
| 152 | 152 |
| 153 { Comment cmnt(masm_, "[ Allocate locals"); | 153 { Comment cmnt(masm_, "[ Allocate locals"); |
| 154 int locals_count = info->scope()->num_stack_slots(); | 154 int locals_count = info->scope()->num_stack_slots(); |
| 155 // Generators allocate locals, if any, in context slots. | 155 // Generators allocate locals, if any, in context slots. |
| 156 DCHECK(!info->function()->is_generator() || locals_count == 0); | 156 DCHECK(!IsGeneratorFunction(info->function()->kind()) || locals_count == 0); |
| 157 if (locals_count > 0) { | 157 if (locals_count > 0) { |
| 158 if (locals_count >= 128) { | 158 if (locals_count >= 128) { |
| 159 Label ok; | 159 Label ok; |
| 160 __ sub(r9, sp, Operand(locals_count * kPointerSize)); | 160 __ sub(r9, sp, Operand(locals_count * kPointerSize)); |
| 161 __ LoadRoot(r2, Heap::kRealStackLimitRootIndex); | 161 __ LoadRoot(r2, Heap::kRealStackLimitRootIndex); |
| 162 __ cmp(r9, Operand(r2)); | 162 __ cmp(r9, Operand(r2)); |
| 163 __ b(hs, &ok); | 163 __ b(hs, &ok); |
| 164 __ InvokeBuiltin(Builtins::STACK_OVERFLOW, CALL_FUNCTION); | 164 __ InvokeBuiltin(Builtins::STACK_OVERFLOW, CALL_FUNCTION); |
| 165 __ bind(&ok); | 165 __ bind(&ok); |
| 166 } | 166 } |
| (...skipping 5259 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5426 | 5426 |
| 5427 DCHECK(interrupt_address == | 5427 DCHECK(interrupt_address == |
| 5428 isolate->builtins()->OsrAfterStackCheck()->entry()); | 5428 isolate->builtins()->OsrAfterStackCheck()->entry()); |
| 5429 return OSR_AFTER_STACK_CHECK; | 5429 return OSR_AFTER_STACK_CHECK; |
| 5430 } | 5430 } |
| 5431 | 5431 |
| 5432 | 5432 |
| 5433 } } // namespace v8::internal | 5433 } } // namespace v8::internal |
| 5434 | 5434 |
| 5435 #endif // V8_TARGET_ARCH_ARM | 5435 #endif // V8_TARGET_ARCH_ARM |
| OLD | NEW |