Index: src/x64/builtins-x64.cc |
diff --git a/src/x64/builtins-x64.cc b/src/x64/builtins-x64.cc |
index 0794d9a6c31f13b866348b207b2eafa4eebee7a9..1de8f980ba0c786d51eecbb1ac3c3db9731554da 100644 |
--- a/src/x64/builtins-x64.cc |
+++ b/src/x64/builtins-x64.cc |
@@ -854,22 +854,20 @@ 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. |
__ Push(Smi::FromInt(static_cast<int>(type))); |
- |
__ CallRuntime(Runtime::kNotifyDeoptimized); |
- |
- __ Pop(kInterpreterAccumulatorRegister); // Restore accumulator register. |
// Tear down internal frame. |
} |
- // Drop state (we don't use these for interpreter deopts) and push PC at top |
+ // Drop state (we don't use these for interpreter deopts) and and pop the |
+ // accumulator value into the accumulator register and push PC at top |
// of stack (to simulate initial call to bytecode handler in interpreter entry |
// trampoline). |
__ Pop(rbx); |
__ Drop(1); |
+ __ Pop(kInterpreterAccumulatorRegister); |
__ Push(rbx); |
// Enter the bytecode dispatch. |