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

Unified Diff: src/heap.h

Issue 61863002: Fix incorrect ASSERT when recording code age stats. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/heap.h
diff --git a/src/heap.h b/src/heap.h
index 96cda586b7c9ea464bc7b1fd39d38c160b34e207..bbf6737116386c319551b263f58091a06b42c417 100644
--- a/src/heap.h
+++ b/src/heap.h
@@ -1823,7 +1823,7 @@ class Heap {
void RecordCodeSubTypeStats(int code_sub_type, int code_age, size_t size) {
ASSERT(code_sub_type < Code::NUMBER_OF_KINDS);
- ASSERT(code_age < Code::kLastCodeAge);
+ ASSERT(code_age <= Code::kLastCodeAge);
object_counts_[FIRST_CODE_KIND_SUB_TYPE + code_sub_type]++;
object_sizes_[FIRST_CODE_KIND_SUB_TYPE + code_sub_type] += size;
object_counts_[FIRST_CODE_AGE_SUB_TYPE + code_age]++;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698