Index: src/objects.cc |
diff --git a/src/objects.cc b/src/objects.cc |
index 0c451b878233d4c7d0328ea16a71ff60ab087624..610d04950cea839976b71064bcadbcaeac5a8a5d 100644 |
--- a/src/objects.cc |
+++ b/src/objects.cc |
@@ -8875,11 +8875,10 @@ bool Code::IsOld() { |
byte* Code::FindCodeAgeSequence() { |
return FLAG_age_code && |
- strlen(FLAG_stop_at) == 0 && |
- !ProfileEntryHookStub::HasEntryHook() && |
+ prologue_offset() != kPrologueOffsetNotSet && |
(kind() == OPTIMIZED_FUNCTION || |
(kind() == FUNCTION && !has_debug_break_slots())) |
- ? FindPlatformCodeAgeSequence() |
+ ? instruction_start() + prologue_offset() |
: NULL; |
} |