Index: src/ppc/builtins-ppc.cc |
diff --git a/src/ppc/builtins-ppc.cc b/src/ppc/builtins-ppc.cc |
index 3a433f11a17685484188537a15906fdfad153362..10714265f16bb8fee5afef6133bde3917dcd62c3 100644 |
--- a/src/ppc/builtins-ppc.cc |
+++ b/src/ppc/builtins-ppc.cc |
@@ -1136,6 +1136,14 @@ void Builtins::Generate_InterpreterNotifyLazyDeoptimized(MacroAssembler* masm) { |
void Builtins::Generate_InterpreterEnterExceptionHandler(MacroAssembler* masm) { |
+ // Set the address of the interpreter entry trampoline as a return address. |
+ // This simulates the initial call to bytecode handlers in interpreter entry |
+ // trampoline. The return will never actually be taken, but our stack walker |
+ // uses this address to determine whether a frame is interpreted. |
+ __ mov(r0, |
+ Operand(masm->isolate()->builtins()->InterpreterEntryTrampoline())); |
+ __ mtlr(r0); |
+ |
Generate_EnterBytecodeDispatch(masm); |
} |