| 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 #if V8_TARGET_ARCH_ARM64 | 5 #if V8_TARGET_ARCH_ARM64 |
| 6 | 6 |
| 7 #include "src/code-factory.h" | 7 #include "src/code-factory.h" |
| 8 #include "src/code-stubs.h" | 8 #include "src/code-stubs.h" |
| 9 #include "src/codegen.h" | 9 #include "src/codegen.h" |
| 10 #include "src/debug/debug.h" | 10 #include "src/debug/debug.h" |
| (...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 256 __ B(ne, &check_frame_marker); | 256 __ B(ne, &check_frame_marker); |
| 257 __ Ldr(x2, MemOperand(x2, StandardFrameConstants::kCallerFPOffset)); | 257 __ Ldr(x2, MemOperand(x2, StandardFrameConstants::kCallerFPOffset)); |
| 258 __ Bind(&check_frame_marker); | 258 __ Bind(&check_frame_marker); |
| 259 __ Ldr(x1, MemOperand(x2, StandardFrameConstants::kMarkerOffset)); | 259 __ Ldr(x1, MemOperand(x2, StandardFrameConstants::kMarkerOffset)); |
| 260 __ Cmp(x1, Smi::FromInt(StackFrame::CONSTRUCT)); | 260 __ Cmp(x1, Smi::FromInt(StackFrame::CONSTRUCT)); |
| 261 function_in_register_x1 = false; | 261 function_in_register_x1 = false; |
| 262 | 262 |
| 263 Label non_construct_frame, done; | 263 Label non_construct_frame, done; |
| 264 | 264 |
| 265 __ B(ne, &non_construct_frame); | 265 __ B(ne, &non_construct_frame); |
| 266 __ Ldr(x0, | 266 __ Ldr(x0, MemOperand(x2, ConstructFrameConstants::kNewTargetOffset)); |
| 267 MemOperand(x2, ConstructFrameConstants::kOriginalConstructorOffset)); | |
| 268 __ B(&done); | 267 __ B(&done); |
| 269 | 268 |
| 270 __ Bind(&non_construct_frame); | 269 __ Bind(&non_construct_frame); |
| 271 __ LoadRoot(x0, Heap::kUndefinedValueRootIndex); | 270 __ LoadRoot(x0, Heap::kUndefinedValueRootIndex); |
| 272 | 271 |
| 273 __ Bind(&done); | 272 __ Bind(&done); |
| 274 | 273 |
| 275 SetVar(new_target_var, x0, x2, x3); | 274 SetVar(new_target_var, x0, x2, x3); |
| 276 } | 275 } |
| 277 | 276 |
| (...skipping 4800 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5078 } | 5077 } |
| 5079 | 5078 |
| 5080 return INTERRUPT; | 5079 return INTERRUPT; |
| 5081 } | 5080 } |
| 5082 | 5081 |
| 5083 | 5082 |
| 5084 } // namespace internal | 5083 } // namespace internal |
| 5085 } // namespace v8 | 5084 } // namespace v8 |
| 5086 | 5085 |
| 5087 #endif // V8_TARGET_ARCH_ARM64 | 5086 #endif // V8_TARGET_ARCH_ARM64 |
| OLD | NEW |