Index: src/arm64/regexp-macro-assembler-arm64.cc |
diff --git a/src/arm64/regexp-macro-assembler-arm64.cc b/src/arm64/regexp-macro-assembler-arm64.cc |
index 97040cf75eb3c02662ed99bc685ebe0decabd40a..f384315743ee6caa099de709f589a7f8ed09bf39 100644 |
--- a/src/arm64/regexp-macro-assembler-arm64.cc |
+++ b/src/arm64/regexp-macro-assembler-arm64.cc |
@@ -976,6 +976,7 @@ Handle<HeapObject> RegExpMacroAssemblerARM64::GetCode(Handle<String> source) { |
// Set stack pointer back to first register to retain |
ASSERT(csp.Is(__ StackPointer())); |
__ Mov(csp, fp); |
+ __ AssertStackConsistency(); |
// Restore registers. |
__ PopCPURegList(registers_to_retain); |