Index: runtime/vm/stub_code_arm64.cc |
diff --git a/runtime/vm/stub_code_arm64.cc b/runtime/vm/stub_code_arm64.cc |
index b3bd5520d5749b13b3d064005e608f737a911f9c..989935c27cfe3dc15dfa88d38c1faffe4b970eb1 100644 |
--- a/runtime/vm/stub_code_arm64.cc |
+++ b/runtime/vm/stub_code_arm64.cc |
@@ -518,7 +518,6 @@ static void GenerateDeoptimizationSequence(Assembler* assembler, |
// Enter stub frame with loading PP. The caller's PP is not materialized yet. |
__ EnterStubFrame(); |
if (preserve_result) { |
- __ Push(ZR); // Workaround for dropped stack slot during GC. |
__ Push(R1); // Preserve result, it will be GC-d here. |
} |
__ Push(ZR); // Space for the result. |
@@ -529,7 +528,6 @@ static void GenerateDeoptimizationSequence(Assembler* assembler, |
__ SmiUntag(R1); |
if (preserve_result) { |
__ Pop(R0); // Restore result. |
- __ Drop(1); // Workaround for dropped stack slot during GC. |
} |
__ LeaveStubFrame(); |
// Remove materialization arguments. |