Index: src/mips/builtins-mips.cc |
diff --git a/src/mips/builtins-mips.cc b/src/mips/builtins-mips.cc |
index 1b18140cbc310f57804ea2c79db6db671b812334..d565a914fabdfc68da2c7b2311f602357618fe4b 100644 |
--- a/src/mips/builtins-mips.cc |
+++ b/src/mips/builtins-mips.cc |
@@ -966,6 +966,24 @@ void Builtins::Generate_OnStackReplacement(MacroAssembler* masm) { |
} |
+void Builtins::Generate_OsrAfterStackCheck(MacroAssembler* masm) { |
+ // We check the stack limit as indicator that recompilation might be done. |
+ Label ok; |
+ __ stop("check1"); |
Yang
2013/09/25 14:54:38
You probably want to remove this :)
Paul Lind
2013/09/25 15:05:00
You probably should remove this ... ;-)
... thank
kilvadyb
2013/09/25 15:14:28
Done.
|
+ __ LoadRoot(at, Heap::kStackLimitRootIndex); |
+ __ Branch(&ok, hs, sp, Operand(at)); |
+ { |
+ FrameScope scope(masm, StackFrame::INTERNAL); |
+ __ CallRuntime(Runtime::kStackGuard, 0); |
+ } |
+ __ Jump(masm->isolate()->builtins()->OnStackReplacement(), |
+ RelocInfo::CODE_TARGET); |
+ |
+ __ bind(&ok); |
+ __ Ret(); |
+} |
+ |
+ |
void Builtins::Generate_FunctionCall(MacroAssembler* masm) { |
// 1. Make sure we have at least one argument. |
// a0: actual number of arguments |