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

Unified Diff: src/heap/object-stats.cc

Issue 2957313002: Inline Map::has_code_cache() into its one caller. (Closed)
Patch Set: Inline Map::has_code_cache() into its one caller. Created 3 years, 6 months 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 | src/objects-inl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/heap/object-stats.cc
diff --git a/src/heap/object-stats.cc b/src/heap/object-stats.cc
index a9f50cdfbf7d112c08a3c6f1931d5046833f54cd..f3db65c36b6640259996b01b7d3eb459c9786033 100644
--- a/src/heap/object-stats.cc
+++ b/src/heap/object-stats.cc
@@ -462,8 +462,8 @@ void ObjectStatsCollector::RecordMapDetails(Map* map_obj) {
}
}
- if (map_obj->has_code_cache()) {
- FixedArray* code_cache = map_obj->code_cache();
+ FixedArray* code_cache = map_obj->code_cache();
+ if (code_cache->length() > 0) {
if (code_cache->IsCodeCacheHashTable()) {
RecordHashTableHelper(map_obj, CodeCacheHashTable::cast(code_cache),
MAP_CODE_CACHE_SUB_TYPE);
« no previous file with comments | « no previous file | src/objects-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698