| Index: src/mips/full-codegen-mips.cc
|
| diff --git a/src/mips/full-codegen-mips.cc b/src/mips/full-codegen-mips.cc
|
| index a676fea898751900e8260a0b1af6b64dccf8e98e..8c92c94ea69a2f573ac380af40b364f1f6d4637d 100644
|
| --- a/src/mips/full-codegen-mips.cc
|
| +++ b/src/mips/full-codegen-mips.cc
|
| @@ -127,10 +127,14 @@ static void EmitStackCheck(MacroAssembler* masm_,
|
| Isolate* isolate = masm_->isolate();
|
| Label ok;
|
| ASSERT(scratch.is(sp) == (pointers == 0));
|
| + Heap::RootListIndex index;
|
| if (pointers != 0) {
|
| __ Subu(scratch, sp, Operand(pointers * kPointerSize));
|
| + index = Heap::kRealStackLimitRootIndex;
|
| + } else {
|
| + index = Heap::kStackLimitRootIndex;
|
| }
|
| - __ LoadRoot(stack_limit_scratch, Heap::kStackLimitRootIndex);
|
| + __ LoadRoot(stack_limit_scratch, index);
|
| __ Branch(&ok, hs, scratch, Operand(stack_limit_scratch));
|
| PredictableCodeSizeScope predictable(masm_, 4 * Assembler::kInstrSize);
|
| __ Call(isolate->builtins()->StackCheck(), RelocInfo::CODE_TARGET);
|
|
|