| Index: src/arm/full-codegen-arm.cc
|
| diff --git a/src/arm/full-codegen-arm.cc b/src/arm/full-codegen-arm.cc
|
| index f55956cd7f4fa1084ea0e082a672ff4e2f5d7b2c..750e5cee33ee82f84c6ba7e26e2bd5d5622621ed 100644
|
| --- a/src/arm/full-codegen-arm.cc
|
| +++ b/src/arm/full-codegen-arm.cc
|
| @@ -338,8 +338,8 @@ void FullCodeGenerator::EmitProfilingCounterReset() {
|
| }
|
|
|
|
|
| -static const int kMaxBackEdgeWeight = 127;
|
| -static const int kBackEdgeDistanceDivisor = 142;
|
| +const int FullCodeGenerator::kMaxBackEdgeWeight = 127;
|
| +const int FullCodeGenerator::kBackEdgeDistanceUnit = 142;
|
|
|
|
|
| void FullCodeGenerator::EmitStackCheck(IterationStatement* stmt,
|
| @@ -355,7 +355,7 @@ void FullCodeGenerator::EmitStackCheck(IterationStatement* stmt,
|
| ASSERT(back_edge_target->is_bound());
|
| int distance = masm_->SizeOfCodeGeneratedSince(back_edge_target);
|
| weight = Min(kMaxBackEdgeWeight,
|
| - Max(1, distance / kBackEdgeDistanceDivisor));
|
| + Max(1, distance / kBackEdgeDistanceUnit));
|
| }
|
| EmitProfilingCounterDecrement(weight);
|
| __ b(pl, &ok);
|
| @@ -407,7 +407,7 @@ void FullCodeGenerator::EmitReturnSequence() {
|
| } else if (FLAG_weighted_back_edges) {
|
| int distance = masm_->pc_offset();
|
| weight = Min(kMaxBackEdgeWeight,
|
| - Max(1, distance / kBackEdgeDistanceDivisor));
|
| + Max(1, distance / kBackEdgeDistanceUnit));
|
| }
|
| EmitProfilingCounterDecrement(weight);
|
| Label ok;
|
|
|