| Index: src/objects.cc
|
| diff --git a/src/objects.cc b/src/objects.cc
|
| index a150920b50a570dd826ad7a2c4cd17de83258413..fa5bfeda82ca831640d5aabff6b956de8c70477b 100644
|
| --- a/src/objects.cc
|
| +++ b/src/objects.cc
|
| @@ -8834,13 +8834,13 @@ bool Code::IsOld() {
|
|
|
|
|
| byte* Code::FindCodeAgeSequence() {
|
| - if (kind() != FUNCTION && kind() != OPTIMIZED_FUNCTION) return NULL;
|
| - if (strlen(FLAG_stop_at) == 0 &&
|
| + return FLAG_age_code &&
|
| + strlen(FLAG_stop_at) == 0 &&
|
| !ProfileEntryHookStub::HasEntryHook() &&
|
| - (kind() == FUNCTION && !has_debug_break_slots())) {
|
| - return FindPlatformCodeAgeSequence();
|
| - }
|
| - return NULL;
|
| + (kind() == OPTIMIZED_FUNCTION ||
|
| + (kind() == FUNCTION && !has_debug_break_slots()))
|
| + ? FindPlatformCodeAgeSequence()
|
| + : NULL;
|
| }
|
|
|
|
|
|
|