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 #if V8_TARGET_ARCH_ARM | 5 #if V8_TARGET_ARCH_ARM |
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 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
124 __ CompareObjectType(r2, r2, no_reg, FIRST_JS_RECEIVER_TYPE); | 124 __ CompareObjectType(r2, r2, no_reg, FIRST_JS_RECEIVER_TYPE); |
125 __ Assert(ge, kSloppyFunctionExpectsJSReceiverReceiver); | 125 __ Assert(ge, kSloppyFunctionExpectsJSReceiverReceiver); |
126 } | 126 } |
127 | 127 |
128 // Open a frame scope to indicate that there is a frame on the stack. The | 128 // Open a frame scope to indicate that there is a frame on the stack. The |
129 // MANUAL indicates that the scope shouldn't actually generate code to set up | 129 // MANUAL indicates that the scope shouldn't actually generate code to set up |
130 // the frame (that is done below). | 130 // the frame (that is done below). |
131 FrameScope frame_scope(masm_, StackFrame::MANUAL); | 131 FrameScope frame_scope(masm_, StackFrame::MANUAL); |
132 | 132 |
133 info->set_prologue_offset(masm_->pc_offset()); | 133 info->set_prologue_offset(masm_->pc_offset()); |
134 __ Prologue(info->IsCodePreAgingActive()); | 134 __ Prologue(info->GeneratePreagedPrologue()); |
135 | 135 |
136 { Comment cmnt(masm_, "[ Allocate locals"); | 136 { Comment cmnt(masm_, "[ Allocate locals"); |
137 int locals_count = info->scope()->num_stack_slots(); | 137 int locals_count = info->scope()->num_stack_slots(); |
138 // Generators allocate locals, if any, in context slots. | 138 // Generators allocate locals, if any, in context slots. |
139 DCHECK(!IsGeneratorFunction(info->literal()->kind()) || locals_count == 0); | 139 DCHECK(!IsGeneratorFunction(info->literal()->kind()) || locals_count == 0); |
140 if (locals_count > 0) { | 140 if (locals_count > 0) { |
141 if (locals_count >= 128) { | 141 if (locals_count >= 128) { |
142 Label ok; | 142 Label ok; |
143 __ sub(r9, sp, Operand(locals_count * kPointerSize)); | 143 __ sub(r9, sp, Operand(locals_count * kPointerSize)); |
144 __ LoadRoot(r2, Heap::kRealStackLimitRootIndex); | 144 __ LoadRoot(r2, Heap::kRealStackLimitRootIndex); |
(...skipping 4738 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4883 DCHECK(interrupt_address == | 4883 DCHECK(interrupt_address == |
4884 isolate->builtins()->OsrAfterStackCheck()->entry()); | 4884 isolate->builtins()->OsrAfterStackCheck()->entry()); |
4885 return OSR_AFTER_STACK_CHECK; | 4885 return OSR_AFTER_STACK_CHECK; |
4886 } | 4886 } |
4887 | 4887 |
4888 | 4888 |
4889 } // namespace internal | 4889 } // namespace internal |
4890 } // namespace v8 | 4890 } // namespace v8 |
4891 | 4891 |
4892 #endif // V8_TARGET_ARCH_ARM | 4892 #endif // V8_TARGET_ARCH_ARM |
OLD | NEW |