| Index: src/arm/full-codegen-arm.cc
|
| diff --git a/src/arm/full-codegen-arm.cc b/src/arm/full-codegen-arm.cc
|
| index b5ec2d5fdf015e1ab679e9de61004b0c4d140ea7..c6feef833845aeda76e9f00114e3239ffc7e5071 100644
|
| --- a/src/arm/full-codegen-arm.cc
|
| +++ b/src/arm/full-codegen-arm.cc
|
| @@ -118,10 +118,14 @@ static void EmitStackCheck(MacroAssembler* masm_,
|
| Isolate* isolate = masm_->isolate();
|
| Label ok;
|
| ASSERT(scratch.is(sp) == (pointers == 0));
|
| + Heap::RootListIndex index;
|
| if (pointers != 0) {
|
| __ sub(scratch, sp, Operand(pointers * kPointerSize));
|
| + index = Heap::kRealStackLimitRootIndex;
|
| + } else {
|
| + index = Heap::kStackLimitRootIndex;
|
| }
|
| - __ LoadRoot(stack_limit_scratch, Heap::kStackLimitRootIndex);
|
| + __ LoadRoot(stack_limit_scratch, index);
|
| __ cmp(scratch, Operand(stack_limit_scratch));
|
| __ b(hs, &ok);
|
| PredictableCodeSizeScope predictable(masm_, 2 * Assembler::kInstrSize);
|
|
|