Index: src/x64/full-codegen-x64.cc |
diff --git a/src/x64/full-codegen-x64.cc b/src/x64/full-codegen-x64.cc |
index 3b1fc93b5f2795130617761cd4ae9cfd5d72e993..e5d190ade934156e0e62fbde8150e853ed5956e4 100644 |
--- a/src/x64/full-codegen-x64.cc |
+++ b/src/x64/full-codegen-x64.cc |
@@ -337,7 +337,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); |
__ j(positive, &ok, Label::kNear); |
@@ -378,7 +378,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; |