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 251 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
262 __ Cmp(x1, Smi::FromInt(StackFrame::ARGUMENTS_ADAPTOR)); | 262 __ Cmp(x1, Smi::FromInt(StackFrame::ARGUMENTS_ADAPTOR)); |
263 __ B(ne, &check_frame_marker); | 263 __ B(ne, &check_frame_marker); |
264 __ Ldr(x2, MemOperand(x2, StandardFrameConstants::kCallerFPOffset)); | 264 __ Ldr(x2, MemOperand(x2, StandardFrameConstants::kCallerFPOffset)); |
265 __ Bind(&check_frame_marker); | 265 __ Bind(&check_frame_marker); |
266 __ Ldr(x1, MemOperand(x2, StandardFrameConstants::kMarkerOffset)); | 266 __ Ldr(x1, MemOperand(x2, StandardFrameConstants::kMarkerOffset)); |
267 __ Cmp(x1, Smi::FromInt(StackFrame::CONSTRUCT)); | 267 __ Cmp(x1, Smi::FromInt(StackFrame::CONSTRUCT)); |
268 | 268 |
269 Label non_construct_frame, done; | 269 Label non_construct_frame, done; |
270 | 270 |
271 __ B(ne, &non_construct_frame); | 271 __ B(ne, &non_construct_frame); |
272 __ Ldr(x0, MemOperand(x2, StandardFrameConstants::kExpressionsOffset - | 272 __ Ldr(x0, |
273 2 * kPointerSize)); | 273 MemOperand(x2, ConstructFrameConstants::kOriginalConstructorOffset)); |
274 __ B(&done); | 274 __ B(&done); |
275 | 275 |
276 __ Bind(&non_construct_frame); | 276 __ Bind(&non_construct_frame); |
277 __ LoadRoot(x0, Heap::kUndefinedValueRootIndex); | 277 __ LoadRoot(x0, Heap::kUndefinedValueRootIndex); |
278 | 278 |
279 __ Bind(&done); | 279 __ Bind(&done); |
280 | 280 |
281 SetVar(new_target_var, x0, x2, x3); | 281 SetVar(new_target_var, x0, x2, x3); |
282 } | 282 } |
283 | 283 |
(...skipping 5306 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5590 } | 5590 } |
5591 | 5591 |
5592 return INTERRUPT; | 5592 return INTERRUPT; |
5593 } | 5593 } |
5594 | 5594 |
5595 | 5595 |
5596 } // namespace internal | 5596 } // namespace internal |
5597 } // namespace v8 | 5597 } // namespace v8 |
5598 | 5598 |
5599 #endif // V8_TARGET_ARCH_ARM64 | 5599 #endif // V8_TARGET_ARCH_ARM64 |
OLD | NEW |