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 250 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
261 int num_parameters = info->scope()->num_parameters(); | 261 int num_parameters = info->scope()->num_parameters(); |
262 int offset = num_parameters * kPointerSize; | 262 int offset = num_parameters * kPointerSize; |
263 if (has_new_target == ArgumentsAccessStub::HAS_NEW_TARGET) { | 263 if (has_new_target == ArgumentsAccessStub::HAS_NEW_TARGET) { |
264 --num_parameters; | 264 --num_parameters; |
265 ++rest_index; | 265 ++rest_index; |
266 } | 266 } |
267 | 267 |
268 __ add(r3, fp, Operand(StandardFrameConstants::kCallerSPOffset + offset)); | 268 __ add(r3, fp, Operand(StandardFrameConstants::kCallerSPOffset + offset)); |
269 __ mov(r2, Operand(Smi::FromInt(num_parameters))); | 269 __ mov(r2, Operand(Smi::FromInt(num_parameters))); |
270 __ mov(r1, Operand(Smi::FromInt(rest_index))); | 270 __ mov(r1, Operand(Smi::FromInt(rest_index))); |
271 __ Push(r3, r2, r1); | 271 __ mov(r0, Operand(Smi::FromInt(language_mode()))); |
| 272 __ Push(r3, r2, r1, r0); |
272 | 273 |
273 RestParamAccessStub stub(isolate()); | 274 RestParamAccessStub stub(isolate()); |
274 __ CallStub(&stub); | 275 __ CallStub(&stub); |
275 | 276 |
276 SetVar(rest_param, r0, r1, r2); | 277 SetVar(rest_param, r0, r1, r2); |
277 } | 278 } |
278 | 279 |
279 Variable* arguments = scope()->arguments(); | 280 Variable* arguments = scope()->arguments(); |
280 if (arguments != NULL) { | 281 if (arguments != NULL) { |
281 // Function uses arguments object. | 282 // Function uses arguments object. |
(...skipping 5289 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5571 | 5572 |
5572 DCHECK(interrupt_address == | 5573 DCHECK(interrupt_address == |
5573 isolate->builtins()->OsrAfterStackCheck()->entry()); | 5574 isolate->builtins()->OsrAfterStackCheck()->entry()); |
5574 return OSR_AFTER_STACK_CHECK; | 5575 return OSR_AFTER_STACK_CHECK; |
5575 } | 5576 } |
5576 | 5577 |
5577 | 5578 |
5578 } } // namespace v8::internal | 5579 } } // namespace v8::internal |
5579 | 5580 |
5580 #endif // V8_TARGET_ARCH_ARM | 5581 #endif // V8_TARGET_ARCH_ARM |
OLD | NEW |