Index: src/arm/full-codegen-arm.cc |
diff --git a/src/arm/full-codegen-arm.cc b/src/arm/full-codegen-arm.cc |
index 4ea2942f4df3b5690ef784ca6fc578b12738d74c..ba5053f95ab8e1618f70b104bb9aa884f1abb2a8 100644 |
--- a/src/arm/full-codegen-arm.cc |
+++ b/src/arm/full-codegen-arm.cc |
@@ -128,8 +128,10 @@ static void EmitStackCheck(MacroAssembler* masm_, |
__ LoadRoot(stack_limit_scratch, index); |
__ cmp(scratch, Operand(stack_limit_scratch)); |
__ b(hs, &ok); |
- PredictableCodeSizeScope predictable(masm_, 2 * Assembler::kInstrSize); |
- __ Call(isolate->builtins()->StackCheck(), RelocInfo::CODE_TARGET); |
+ Handle<Code> stack_check = isolate->builtins()->StackCheck(); |
+ PredictableCodeSizeScope predictable(masm_, |
+ masm_->CallSize(stack_check, RelocInfo::CODE_TARGET)); |
+ __ Call(stack_check, RelocInfo::CODE_TARGET); |
__ bind(&ok); |
} |