Index: src/mark-compact.cc |
diff --git a/src/mark-compact.cc b/src/mark-compact.cc |
index dc2db4b096b76ddb7c36532a51be7106c9b6838b..769a3a80de7a9772b1ed773108020c25164b0887 100644 |
--- a/src/mark-compact.cc |
+++ b/src/mark-compact.cc |
@@ -1002,6 +1002,7 @@ void CodeFlusher::ProcessJSFunctionCandidates() { |
Code* code = shared->code(); |
MarkBit code_mark = Marking::MarkBitFrom(code); |
if (!code_mark.Get()) { |
+ ASSERT(!FLAG_age_code || code->GetAge() >= Code::kSexagenarianCodeAge); |
Michael Starzinger
2013/06/12 09:09:32
I don't think this assert is entirely correct, if
Michael Starzinger
2013/06/12 09:12:17
Sorry, should have been ...
ASSERT(!FLAG_age_code
|
if (FLAG_trace_code_flushing && shared->is_compiled()) { |
SmartArrayPointer<char> name = shared->DebugName()->ToCString(); |
PrintF("[code-flushing clears: %s]\n", *name); |
@@ -1043,6 +1044,7 @@ void CodeFlusher::ProcessSharedFunctionInfoCandidates() { |
Code* code = candidate->code(); |
MarkBit code_mark = Marking::MarkBitFrom(code); |
if (!code_mark.Get()) { |
+ ASSERT(!FLAG_age_code || code->GetAge() >= Code::kSexagenarianCodeAge); |
danno
2013/06/12 09:08:13
Perhaps add a constant for Code::kOldCodeAge that
Michael Starzinger
2013/06/12 09:09:32
Likewise.
|
if (FLAG_trace_code_flushing && candidate->is_compiled()) { |
SmartArrayPointer<char> name = candidate->DebugName()->ToCString(); |
PrintF("[code-flushing clears: %s]\n", *name); |