Index: runtime/vm/assembler_arm.cc |
diff --git a/runtime/vm/assembler_arm.cc b/runtime/vm/assembler_arm.cc |
index cabee7f9574fe44545d16586af9da4c12f3587ae..0d00f249ac9122d20da147bfbece8cd11e3bb84a 100644 |
--- a/runtime/vm/assembler_arm.cc |
+++ b/runtime/vm/assembler_arm.cc |
@@ -3193,7 +3193,9 @@ void Assembler::EnterFrame(RegList regs, intptr_t frame_size) { |
// Set FP to the saved previous FP. |
add(FP, SP, Operand(4 * NumRegsBelowFP(regs))); |
} |
- AddImmediate(SP, -frame_size); |
+ if (frame_size != 0) { |
+ AddImmediate(SP, -frame_size); |
+ } |
} |