| 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 #include "src/v8.h" | 5 #include "src/v8.h" |
| 6 | 6 |
| 7 #if V8_TARGET_ARCH_ARM64 | 7 #if V8_TARGET_ARCH_ARM64 |
| 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 246 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 257 int num_parameters = info->scope()->num_parameters(); | 257 int num_parameters = info->scope()->num_parameters(); |
| 258 int offset = num_parameters * kPointerSize; | 258 int offset = num_parameters * kPointerSize; |
| 259 if (has_new_target == ArgumentsAccessStub::HAS_NEW_TARGET) { | 259 if (has_new_target == ArgumentsAccessStub::HAS_NEW_TARGET) { |
| 260 --num_parameters; | 260 --num_parameters; |
| 261 ++rest_index; | 261 ++rest_index; |
| 262 } | 262 } |
| 263 | 263 |
| 264 __ Add(x3, fp, StandardFrameConstants::kCallerSPOffset + offset); | 264 __ Add(x3, fp, StandardFrameConstants::kCallerSPOffset + offset); |
| 265 __ Mov(x2, Smi::FromInt(num_parameters)); | 265 __ Mov(x2, Smi::FromInt(num_parameters)); |
| 266 __ Mov(x1, Smi::FromInt(rest_index)); | 266 __ Mov(x1, Smi::FromInt(rest_index)); |
| 267 __ Push(x3, x2, x1); | 267 __ Mov(x0, Smi::FromInt(language_mode())); |
| 268 __ Push(x3, x2, x1, x0); |
| 268 | 269 |
| 269 RestParamAccessStub stub(isolate()); | 270 RestParamAccessStub stub(isolate()); |
| 270 __ CallStub(&stub); | 271 __ CallStub(&stub); |
| 271 | 272 |
| 272 SetVar(rest_param, x0, x1, x2); | 273 SetVar(rest_param, x0, x1, x2); |
| 273 } | 274 } |
| 274 | 275 |
| 275 Variable* arguments = scope()->arguments(); | 276 Variable* arguments = scope()->arguments(); |
| 276 if (arguments != NULL) { | 277 if (arguments != NULL) { |
| 277 // Function uses arguments object. | 278 // Function uses arguments object. |
| (...skipping 5203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5481 } | 5482 } |
| 5482 } | 5483 } |
| 5483 | 5484 |
| 5484 return INTERRUPT; | 5485 return INTERRUPT; |
| 5485 } | 5486 } |
| 5486 | 5487 |
| 5487 | 5488 |
| 5488 } } // namespace v8::internal | 5489 } } // namespace v8::internal |
| 5489 | 5490 |
| 5490 #endif // V8_TARGET_ARCH_ARM64 | 5491 #endif // V8_TARGET_ARCH_ARM64 |
| OLD | NEW |