| Index: src/ia32/full-codegen-ia32.cc
|
| diff --git a/src/ia32/full-codegen-ia32.cc b/src/ia32/full-codegen-ia32.cc
|
| index cdf965e7322968e4bcff7d21f787b23a2d6e8c2b..4ad0a8d5fd386a51473a8f4f5ea312806d15cd9d 100644
|
| --- a/src/ia32/full-codegen-ia32.cc
|
| +++ b/src/ia32/full-codegen-ia32.cc
|
| @@ -325,8 +325,8 @@ void FullCodeGenerator::EmitProfilingCounterReset() {
|
| }
|
|
|
|
|
| -static const int kMaxBackEdgeWeight = 127;
|
| -static const int kBackEdgeDistanceDivisor = 100;
|
| +const int FullCodeGenerator::kMaxBackEdgeWeight = 127;
|
| +const int FullCodeGenerator::kBackEdgeDistanceUnit = 100;
|
|
|
|
|
| void FullCodeGenerator::EmitStackCheck(IterationStatement* stmt,
|
| @@ -340,7 +340,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);
|
| __ j(positive, &ok, Label::kNear);
|
| @@ -402,7 +402,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;
|
|
|