| 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/arm64/frames-arm64.h" | 7 #include "src/arm64/frames-arm64.h" |
| 8 #include "src/codegen.h" | 8 #include "src/codegen.h" |
| 9 #include "src/debug/debug.h" | 9 #include "src/debug/debug.h" |
| 10 | 10 |
| (...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 141 | 141 |
| 142 // We do not know our frame height, but set sp based on fp. | 142 // We do not know our frame height, but set sp based on fp. |
| 143 __ Sub(masm->StackPointer(), fp, kPointerSize); | 143 __ Sub(masm->StackPointer(), fp, kPointerSize); |
| 144 __ AssertStackConsistency(); | 144 __ AssertStackConsistency(); |
| 145 | 145 |
| 146 __ Pop(x1, fp, lr); // Function, Frame, Return address. | 146 __ Pop(x1, fp, lr); // Function, Frame, Return address. |
| 147 | 147 |
| 148 // Load context from the function. | 148 // Load context from the function. |
| 149 __ Ldr(cp, FieldMemOperand(x1, JSFunction::kContextOffset)); | 149 __ Ldr(cp, FieldMemOperand(x1, JSFunction::kContextOffset)); |
| 150 | 150 |
| 151 // Clear new.target as a safety measure. |
| 152 __ LoadRoot(x3, Heap::kUndefinedValueRootIndex); |
| 153 |
| 151 // Get function code. | 154 // Get function code. |
| 152 __ Ldr(scratch, FieldMemOperand(x1, JSFunction::kSharedFunctionInfoOffset)); | 155 __ Ldr(scratch, FieldMemOperand(x1, JSFunction::kSharedFunctionInfoOffset)); |
| 153 __ Ldr(scratch, FieldMemOperand(scratch, SharedFunctionInfo::kCodeOffset)); | 156 __ Ldr(scratch, FieldMemOperand(scratch, SharedFunctionInfo::kCodeOffset)); |
| 154 __ Add(scratch, scratch, Code::kHeaderSize - kHeapObjectTag); | 157 __ Add(scratch, scratch, Code::kHeaderSize - kHeapObjectTag); |
| 155 | 158 |
| 156 // Re-run JSFunction, x1 is function, cp is context. | 159 // Re-run JSFunction, x1 is function, cp is context. |
| 157 __ Br(scratch); | 160 __ Br(scratch); |
| 158 } | 161 } |
| 159 | 162 |
| 160 | 163 |
| 161 const bool LiveEdit::kFrameDropperSupported = true; | 164 const bool LiveEdit::kFrameDropperSupported = true; |
| 162 | 165 |
| 163 } // namespace internal | 166 } // namespace internal |
| 164 } // namespace v8 | 167 } // namespace v8 |
| 165 | 168 |
| 166 #endif // V8_TARGET_ARCH_ARM64 | 169 #endif // V8_TARGET_ARCH_ARM64 |
| OLD | NEW |