Index: src/mips/builtins-mips.cc |
diff --git a/src/mips/builtins-mips.cc b/src/mips/builtins-mips.cc |
index cc11235824e3f39e7492ae68bf4327c61eede987..715ff95102730f8d7d842ae5117556908beaec6f 100644 |
--- a/src/mips/builtins-mips.cc |
+++ b/src/mips/builtins-mips.cc |
@@ -1008,6 +1008,11 @@ static void Generate_JSConstructStubHelper(MacroAssembler* masm, |
NullCallWrapper(), CALL_AS_METHOD); |
} |
+ // Store offset of return address for deoptimizer. |
+ if (!is_api_function && !count_constructions) { |
+ masm->isolate()->heap()->SetConstructStubDeoptPCOffset(masm->pc_offset()); |
+ } |
+ |
// Restore context from the frame. |
__ lw(cp, MemOperand(fp, StandardFrameConstants::kContextOffset)); |
@@ -1777,7 +1782,9 @@ void Builtins::Generate_ArgumentsAdaptorTrampoline(MacroAssembler* masm) { |
__ Call(a3); |
+ // Store offset of return address for deoptimizer. |
masm->isolate()->heap()->SetArgumentsAdaptorDeoptPCOffset(masm->pc_offset()); |
+ |
// Exit frame and return. |
LeaveArgumentsAdaptorFrame(masm); |
__ Ret(); |