Index: src/arm64/builtins-arm64.cc |
diff --git a/src/arm64/builtins-arm64.cc b/src/arm64/builtins-arm64.cc |
index 337a090ad351adfe3e002f80bf22fcc5023aec42..e08ae271f68fbfe49fe364fc8f9635f7063b0d6d 100644 |
--- a/src/arm64/builtins-arm64.cc |
+++ b/src/arm64/builtins-arm64.cc |
@@ -1145,19 +1145,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(x1, Operand(Smi::FromInt(static_cast<int>(type)))); |
__ Push(x1); |
__ 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); |