Index: src/arm64/macro-assembler-arm64.cc |
diff --git a/src/arm64/macro-assembler-arm64.cc b/src/arm64/macro-assembler-arm64.cc |
index 054b99d0066f3a78231845bba7e5c326b30aca88..bdc7e1bf9edef5ea0509c1fa4fc427f82a739204 100644 |
--- a/src/arm64/macro-assembler-arm64.cc |
+++ b/src/arm64/macro-assembler-arm64.cc |
@@ -1343,6 +1343,8 @@ void MacroAssembler::AssertStackConsistency() { |
// Avoid generating AssertStackConsistency checks for the Push in Abort. |
{ DontEmitDebugCodeScope dont_emit_debug_code_scope(this); |
+ // Restore StackPointer(). |
+ sub(StackPointer(), csp, StackPointer()); |
Abort(kTheCurrentStackPointerIsBelowCsp); |
} |