Index: src/arm/full-codegen-arm.cc |
diff --git a/src/arm/full-codegen-arm.cc b/src/arm/full-codegen-arm.cc |
index 7c2d4743f08e803a40b0415cedf91e972cfdc89c..77d5524aa9aa63fcaae95214b74eb7a493393632 100644 |
--- a/src/arm/full-codegen-arm.cc |
+++ b/src/arm/full-codegen-arm.cc |
@@ -361,7 +361,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); |
__ b(pl, &ok); |
@@ -404,7 +404,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; |