| Index: src/arm/full-codegen-arm.cc
|
| diff --git a/src/arm/full-codegen-arm.cc b/src/arm/full-codegen-arm.cc
|
| index 1209372ef17f53e03de7efc944804d6e4614c841..5730d56f581fc5ce13ff48e5e0f907106622c19c 100644
|
| --- a/src/arm/full-codegen-arm.cc
|
| +++ b/src/arm/full-codegen-arm.cc
|
| @@ -287,6 +287,7 @@ void FullCodeGenerator::Generate() {
|
| __ LoadRoot(ip, Heap::kStackLimitRootIndex);
|
| __ cmp(sp, Operand(ip));
|
| __ b(hs, &ok);
|
| + PredictableCodeSizeScope predictable(masm_);
|
| StackCheckStub stub;
|
| __ CallStub(&stub);
|
| __ bind(&ok);
|
| @@ -364,6 +365,7 @@ void FullCodeGenerator::EmitStackCheck(IterationStatement* stmt,
|
| __ LoadRoot(ip, Heap::kStackLimitRootIndex);
|
| __ cmp(sp, Operand(ip));
|
| __ b(hs, &ok);
|
| + PredictableCodeSizeScope predictable(masm_);
|
| StackCheckStub stub;
|
| __ CallStub(&stub);
|
| }
|
| @@ -437,6 +439,7 @@ void FullCodeGenerator::EmitReturnSequence() {
|
| // tool from instrumenting as we rely on the code size here.
|
| int32_t sp_delta = (info_->scope()->num_parameters() + 1) * kPointerSize;
|
| CodeGenerator::RecordPositions(masm_, function()->end_position() - 1);
|
| + PredictableCodeSizeScope predictable(masm_);
|
| __ RecordJSReturn();
|
| masm_->mov(sp, fp);
|
| masm_->ldm(ia_w, sp, fp.bit() | lr.bit());
|
| @@ -2239,7 +2242,9 @@ void FullCodeGenerator::CallIC(Handle<Code> code,
|
| RelocInfo::Mode rmode,
|
| TypeFeedbackId ast_id) {
|
| ic_total_count_++;
|
| - __ Call(code, rmode, ast_id);
|
| + // All calls must have a predictable size in full-codegen code to ensure that
|
| + // the debugger can patch them correctly.
|
| + __ Call(code, rmode, ast_id, al, NEVER_INLINE_TARGET_ADDRESS);
|
| }
|
|
|
| void FullCodeGenerator::EmitCallWithIC(Call* expr,
|
|
|