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 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
178 __ CallRuntime(Runtime::kNewScriptContext); | 178 __ CallRuntime(Runtime::kNewScriptContext); |
179 PrepareForBailoutForId(BailoutId::ScriptContext(), | 179 PrepareForBailoutForId(BailoutId::ScriptContext(), |
180 BailoutState::TOS_REGISTER); | 180 BailoutState::TOS_REGISTER); |
181 // The new target value is not used, clobbering is safe. | 181 // The new target value is not used, clobbering is safe. |
182 DCHECK_NULL(info->scope()->new_target_var()); | 182 DCHECK_NULL(info->scope()->new_target_var()); |
183 } else { | 183 } else { |
184 if (info->scope()->new_target_var() != nullptr) { | 184 if (info->scope()->new_target_var() != nullptr) { |
185 __ push(r3); // Preserve new target. | 185 __ push(r3); // Preserve new target. |
186 } | 186 } |
187 if (slots <= FastNewFunctionContextStub::kMaximumSlots) { | 187 if (slots <= FastNewFunctionContextStub::kMaximumSlots) { |
188 FastNewFunctionContextStub stub(isolate(), slots); | 188 FastNewFunctionContextStub stub(isolate()); |
| 189 __ mov(FastNewFunctionContextDescriptor::SlotsRegister(), |
| 190 Operand(slots)); |
189 __ CallStub(&stub); | 191 __ CallStub(&stub); |
190 // Result of FastNewFunctionContextStub is always in new space. | 192 // Result of FastNewFunctionContextStub is always in new space. |
191 need_write_barrier = false; | 193 need_write_barrier = false; |
192 } else { | 194 } else { |
193 __ push(r1); | 195 __ push(r1); |
194 __ CallRuntime(Runtime::kNewFunctionContext); | 196 __ CallRuntime(Runtime::kNewFunctionContext); |
195 } | 197 } |
196 if (info->scope()->new_target_var() != nullptr) { | 198 if (info->scope()->new_target_var() != nullptr) { |
197 __ pop(r3); // Preserve new target. | 199 __ pop(r3); // Preserve new target. |
198 } | 200 } |
(...skipping 3645 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3844 DCHECK(interrupt_address == | 3846 DCHECK(interrupt_address == |
3845 isolate->builtins()->OnStackReplacement()->entry()); | 3847 isolate->builtins()->OnStackReplacement()->entry()); |
3846 return ON_STACK_REPLACEMENT; | 3848 return ON_STACK_REPLACEMENT; |
3847 } | 3849 } |
3848 | 3850 |
3849 | 3851 |
3850 } // namespace internal | 3852 } // namespace internal |
3851 } // namespace v8 | 3853 } // namespace v8 |
3852 | 3854 |
3853 #endif // V8_TARGET_ARCH_ARM | 3855 #endif // V8_TARGET_ARCH_ARM |
OLD | NEW |