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

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

Issue 2578433002: Revert of Store SharedFunctionInfos of a Script in a FixedArray indexed by their ID (Closed)
Patch Set: Created 4 years 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/heap/heap.cc ('k') | src/js/promise.js » ('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 9f534a20e4ccf8850dc6ea5fd25e906a4eb63eb1..2e8f346fce11badc72712fd84d77ccc7a2fae529 100644
--- a/src/heap/object-stats.cc
+++ b/src/heap/object-stats.cc
@@ -441,8 +441,10 @@
}
void ObjectStatsCollector::RecordScriptDetails(Script* obj) {
- FixedArray* infos = FixedArray::cast(obj->shared_function_infos());
- RecordFixedArrayHelper(obj, infos, SHARED_FUNCTION_INFOS_SUB_TYPE, 0);
+ Object* infos = WeakFixedArray::cast(obj->shared_function_infos());
+ if (infos->IsWeakFixedArray())
+ RecordFixedArrayHelper(obj, WeakFixedArray::cast(infos),
+ SHARED_FUNCTION_INFOS_SUB_TYPE, 0);
}
void ObjectStatsCollector::RecordMapDetails(Map* map_obj) {
« no previous file with comments | « src/heap/heap.cc ('k') | src/js/promise.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698