Index: src/mips/full-codegen-mips.cc |
diff --git a/src/mips/full-codegen-mips.cc b/src/mips/full-codegen-mips.cc |
index 6f4869e2451d134497d6294478f75dcad99da9f8..8e4ad98e31ff570230dd38cd0d83a8efe9611ad0 100644 |
--- a/src/mips/full-codegen-mips.cc |
+++ b/src/mips/full-codegen-mips.cc |
@@ -340,8 +340,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, |
@@ -360,7 +360,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); |
__ slt(at, a3, zero_reg); |
@@ -413,7 +413,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; |