Index: src/compiler/arm64/code-generator-arm64.cc |
diff --git a/src/compiler/arm64/code-generator-arm64.cc b/src/compiler/arm64/code-generator-arm64.cc |
index ca0e4c7c3b03661456309b09693bb78fecc774ba..749f581f696d50953de8ee75c3129082fa9838c9 100644 |
--- a/src/compiler/arm64/code-generator-arm64.cc |
+++ b/src/compiler/arm64/code-generator-arm64.cc |
@@ -1491,13 +1491,14 @@ void CodeGenerator::AssembleReturn() { |
__ Bind(&return_label_); |
if (descriptor->UseNativeStack()) { |
__ Mov(csp, fp); |
+ pop_count += (pop_count & 1); // align |
} else { |
__ Mov(jssp, fp); |
} |
__ Pop(fp, lr); |
} |
} else if (descriptor->UseNativeStack()) { |
- pop_count += (pop_count & 1); |
+ pop_count += (pop_count & 1); // align |
} |
__ Drop(pop_count); |
__ Ret(); |