| 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 306 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 317 int offset = num_parameters * kPointerSize; | 317 int offset = num_parameters * kPointerSize; |
| 318 __ Add(x2, fp, StandardFrameConstants::kCallerSPOffset + offset); | 318 __ Add(x2, fp, StandardFrameConstants::kCallerSPOffset + offset); |
| 319 __ Mov(x1, Smi::FromInt(num_parameters)); | 319 __ Mov(x1, Smi::FromInt(num_parameters)); |
| 320 __ Push(x3, x2, x1); | 320 __ Push(x3, x2, x1); |
| 321 | 321 |
| 322 // Arguments to ArgumentsAccessStub: | 322 // Arguments to ArgumentsAccessStub: |
| 323 // function, receiver address, parameter count. | 323 // function, receiver address, parameter count. |
| 324 // The stub will rewrite receiver and parameter count if the previous | 324 // The stub will rewrite receiver and parameter count if the previous |
| 325 // stack frame was an arguments adapter frame. | 325 // stack frame was an arguments adapter frame. |
| 326 ArgumentsAccessStub::Type type; | 326 ArgumentsAccessStub::Type type; |
| 327 if (is_strict(language_mode()) || !is_simple_parameter_list()) { | 327 if (is_strict(language_mode()) || !has_simple_parameters()) { |
| 328 type = ArgumentsAccessStub::NEW_STRICT; | 328 type = ArgumentsAccessStub::NEW_STRICT; |
| 329 } else if (function()->has_duplicate_parameters()) { | 329 } else if (function()->has_duplicate_parameters()) { |
| 330 type = ArgumentsAccessStub::NEW_SLOPPY_SLOW; | 330 type = ArgumentsAccessStub::NEW_SLOPPY_SLOW; |
| 331 } else { | 331 } else { |
| 332 type = ArgumentsAccessStub::NEW_SLOPPY_FAST; | 332 type = ArgumentsAccessStub::NEW_SLOPPY_FAST; |
| 333 } | 333 } |
| 334 ArgumentsAccessStub stub(isolate(), type); | 334 ArgumentsAccessStub stub(isolate(), type); |
| 335 __ CallStub(&stub); | 335 __ CallStub(&stub); |
| 336 | 336 |
| 337 SetVar(arguments, x0, x1, x2); | 337 SetVar(arguments, x0, x1, x2); |
| (...skipping 5122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5460 } | 5460 } |
| 5461 | 5461 |
| 5462 return INTERRUPT; | 5462 return INTERRUPT; |
| 5463 } | 5463 } |
| 5464 | 5464 |
| 5465 | 5465 |
| 5466 } // namespace internal | 5466 } // namespace internal |
| 5467 } // namespace v8 | 5467 } // namespace v8 |
| 5468 | 5468 |
| 5469 #endif // V8_TARGET_ARCH_ARM64 | 5469 #endif // V8_TARGET_ARCH_ARM64 |
| OLD | NEW |