Revert "Change hotness counting."
This reverts commit c86869ab894c05e3181e7d15eb1893fa8a3fcd47.
Reason for revert: App startup performance regression.
Bug: 203810169
Change-Id: Ie816969fffd7740fcdfa330aeb645399f5351865
diff --git a/compiler/optimizing/code_generator_x86.cc b/compiler/optimizing/code_generator_x86.cc
index e6e22d3..c49b08b 100644
--- a/compiler/optimizing/code_generator_x86.cc
+++ b/compiler/optimizing/code_generator_x86.cc
@@ -1109,9 +1109,10 @@
}
NearLabel overflow;
__ cmpw(Address(reg, ArtMethod::HotnessCountOffset().Int32Value()),
- Immediate(interpreter::kNterpHotnessValue));
+ Immediate(ArtMethod::MaxCounter()));
__ j(kEqual, &overflow);
- __ addw(Address(reg, ArtMethod::HotnessCountOffset().Int32Value()), Immediate(-1));
+ __ addw(Address(reg, ArtMethod::HotnessCountOffset().Int32Value()),
+ Immediate(1));
__ Bind(&overflow);
if (!is_frame_entry) {
__ popl(EAX);