| 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 255 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 266 | 266 |
| 267 __ B(ne, &non_construct_frame); | 267 __ B(ne, &non_construct_frame); |
| 268 __ Ldr(x0, MemOperand(x2, StandardFrameConstants::kExpressionsOffset - | 268 __ Ldr(x0, MemOperand(x2, StandardFrameConstants::kExpressionsOffset - |
| 269 2 * kPointerSize)); | 269 2 * kPointerSize)); |
| 270 __ B(&done); | 270 __ B(&done); |
| 271 | 271 |
| 272 __ Bind(&non_construct_frame); | 272 __ Bind(&non_construct_frame); |
| 273 __ LoadRoot(x0, Heap::kUndefinedValueRootIndex); | 273 __ LoadRoot(x0, Heap::kUndefinedValueRootIndex); |
| 274 | 274 |
| 275 __ Bind(&done); | 275 __ Bind(&done); |
| 276 // new.target is parameter -2. | 276 |
| 277 SetVar(new_target_var, x0, x2, x3); | 277 SetVar(new_target_var, x0, x2, x3); |
| 278 } | 278 } |
| 279 | 279 |
| 280 // Possibly allocate RestParameters | 280 // Possibly allocate RestParameters |
| 281 int rest_index; | 281 int rest_index; |
| 282 Variable* rest_param = scope()->rest_parameter(&rest_index); | 282 Variable* rest_param = scope()->rest_parameter(&rest_index); |
| 283 if (rest_param) { | 283 if (rest_param) { |
| 284 Comment cmnt(masm_, "[ Allocate rest parameter array"); | 284 Comment cmnt(masm_, "[ Allocate rest parameter array"); |
| 285 | 285 |
| 286 int num_parameters = info->scope()->num_parameters(); | 286 int num_parameters = info->scope()->num_parameters(); |
| (...skipping 5310 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5597 } | 5597 } |
| 5598 | 5598 |
| 5599 return INTERRUPT; | 5599 return INTERRUPT; |
| 5600 } | 5600 } |
| 5601 | 5601 |
| 5602 | 5602 |
| 5603 } // namespace internal | 5603 } // namespace internal |
| 5604 } // namespace v8 | 5604 } // namespace v8 |
| 5605 | 5605 |
| 5606 #endif // V8_TARGET_ARCH_ARM64 | 5606 #endif // V8_TARGET_ARCH_ARM64 |
| OLD | NEW |