Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(343)

Unified Diff: src/objects.cc

Issue 11364177: Fixed Code::FindCodeAgeSequence logic, removing a dead method on the way. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: rebased Created 8 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/mips/assembler-mips.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
}
« no previous file with comments | « src/mips/assembler-mips.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698