| 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-stubs.h" | 7 #include "src/code-stubs.h" |
| 8 #include "src/api-arguments.h" | 8 #include "src/api-arguments.h" |
| 9 #include "src/bootstrapper.h" | 9 #include "src/bootstrapper.h" |
| 10 #include "src/codegen.h" | 10 #include "src/codegen.h" |
| (...skipping 1071 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1082 // (except for the return address slot). However, we don't need to initialize | 1082 // (except for the return address slot). However, we don't need to initialize |
| 1083 // jssp because the throw method will immediately overwrite it when it | 1083 // jssp because the throw method will immediately overwrite it when it |
| 1084 // unwinds the stack. | 1084 // unwinds the stack. |
| 1085 __ SetStackPointer(jssp); | 1085 __ SetStackPointer(jssp); |
| 1086 | 1086 |
| 1087 // Retrieve the handler context, SP and FP. | 1087 // Retrieve the handler context, SP and FP. |
| 1088 __ Mov(cp, Operand(pending_handler_context_address)); | 1088 __ Mov(cp, Operand(pending_handler_context_address)); |
| 1089 __ Ldr(cp, MemOperand(cp)); | 1089 __ Ldr(cp, MemOperand(cp)); |
| 1090 __ Mov(jssp, Operand(pending_handler_sp_address)); | 1090 __ Mov(jssp, Operand(pending_handler_sp_address)); |
| 1091 __ Ldr(jssp, MemOperand(jssp)); | 1091 __ Ldr(jssp, MemOperand(jssp)); |
| 1092 __ Mov(csp, jssp); | |
| 1093 __ Mov(fp, Operand(pending_handler_fp_address)); | 1092 __ Mov(fp, Operand(pending_handler_fp_address)); |
| 1094 __ Ldr(fp, MemOperand(fp)); | 1093 __ Ldr(fp, MemOperand(fp)); |
| 1095 | 1094 |
| 1096 // If the handler is a JS frame, restore the context to the frame. Note that | 1095 // If the handler is a JS frame, restore the context to the frame. Note that |
| 1097 // the context will be set to (cp == 0) for non-JS frames. | 1096 // the context will be set to (cp == 0) for non-JS frames. |
| 1098 Label not_js_frame; | 1097 Label not_js_frame; |
| 1099 __ Cbz(cp, ¬_js_frame); | 1098 __ Cbz(cp, ¬_js_frame); |
| 1100 __ Str(cp, MemOperand(fp, StandardFrameConstants::kContextOffset)); | 1099 __ Str(cp, MemOperand(fp, StandardFrameConstants::kContextOffset)); |
| 1101 __ Bind(¬_js_frame); | 1100 __ Bind(¬_js_frame); |
| 1102 | 1101 |
| (...skipping 4172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5275 kStackUnwindSpace, NULL, spill_offset, | 5274 kStackUnwindSpace, NULL, spill_offset, |
| 5276 return_value_operand, NULL); | 5275 return_value_operand, NULL); |
| 5277 } | 5276 } |
| 5278 | 5277 |
| 5279 #undef __ | 5278 #undef __ |
| 5280 | 5279 |
| 5281 } // namespace internal | 5280 } // namespace internal |
| 5282 } // namespace v8 | 5281 } // namespace v8 |
| 5283 | 5282 |
| 5284 #endif // V8_TARGET_ARCH_ARM64 | 5283 #endif // V8_TARGET_ARCH_ARM64 |
| OLD | NEW |