Index: src/mips/full-codegen-mips.cc |
diff --git a/src/mips/full-codegen-mips.cc b/src/mips/full-codegen-mips.cc |
index 64d0e39aa4969c9d1ac0f2d6b8fc1ce5cb9c25e6..df83019f15e4a9c349d425da19257592618f3d13 100644 |
--- a/src/mips/full-codegen-mips.cc |
+++ b/src/mips/full-codegen-mips.cc |
@@ -363,7 +363,7 @@ void FullCodeGenerator::EmitBackEdgeBookkeeping(IterationStatement* stmt, |
ASSERT(back_edge_target->is_bound()); |
int distance = masm_->SizeOfCodeGeneratedSince(back_edge_target); |
weight = Min(kMaxBackEdgeWeight, |
- Max(1, distance / kBackEdgeDistanceUnit)); |
+ Max(1, distance / kCodeSizeMultiplier)); |
} |
EmitProfilingCounterDecrement(weight); |
__ slt(at, a3, zero_reg); |
@@ -406,7 +406,7 @@ void FullCodeGenerator::EmitReturnSequence() { |
} else if (FLAG_weighted_back_edges) { |
int distance = masm_->pc_offset(); |
weight = Min(kMaxBackEdgeWeight, |
- Max(1, distance / kBackEdgeDistanceUnit)); |
+ Max(1, distance / kCodeSizeMultiplier)); |
} |
EmitProfilingCounterDecrement(weight); |
Label ok; |