Index: src/arm/builtins-arm.cc |
diff --git a/src/arm/builtins-arm.cc b/src/arm/builtins-arm.cc |
index af5da61a61ff00c51090295d5ecea01e979df7e1..08589e3a1eefe010f274e17db7cb62f5c187b837 100644 |
--- a/src/arm/builtins-arm.cc |
+++ b/src/arm/builtins-arm.cc |
@@ -1200,19 +1200,18 @@ static void Generate_InterpreterNotifyDeoptimizedHelper( |
// Enter an internal frame. |
{ |
FrameScope scope(masm, StackFrame::INTERNAL); |
- __ push(kInterpreterAccumulatorRegister); // Save accumulator register. |
// Pass the deoptimization type to the runtime system. |
__ mov(r1, Operand(Smi::FromInt(static_cast<int>(type)))); |
__ push(r1); |
__ CallRuntime(Runtime::kNotifyDeoptimized); |
- |
- __ pop(kInterpreterAccumulatorRegister); // Restore accumulator register. |
// Tear down internal frame. |
} |
- // Drop state (we don't use this for interpreter deopts). |
+ // Drop state (we don't use these for interpreter deopts) and and pop the |
+ // accumulator value into the accumulator register. |
__ Drop(1); |
+ __ Pop(kInterpreterAccumulatorRegister); |
// Enter the bytecode dispatch. |
Generate_EnterBytecodeDispatch(masm); |