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

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

Issue 2170743003: [api] Introduce fast instantiations cache (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: fixing uint issue under windows Created 4 years, 5 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 | « src/debug/liveedit.cc ('k') | src/objects.h » ('j') | src/objects.h » ('J')
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 e30d84950e007318a82dcace7fe74392ad2114f0..743c46411b43f9353ea20988b88c15ef409150e9 100644
--- a/src/heap/object-stats.cc
+++ b/src/heap/object-stats.cc
@@ -465,8 +465,13 @@ void ObjectStatsCollector::RecordFixedArrayDetails(FixedArray* array) {
}
if (array->IsNativeContext()) {
Context* native_ctx = Context::cast(array);
- RecordHashTableHelper(array, native_ctx->template_instantiations_cache(),
- TEMPLATE_INSTANTIATIONS_CACHE_SUB_TYPE);
+ RecordHashTableHelper(array,
+ native_ctx->slow_template_instantiations_cache(),
+ SLOW_TEMPLATE_INSTANTIATIONS_CACHE_SUB_TYPE);
+ FixedArray* fast_cache = native_ctx->fast_template_instantiations_cache();
+ stats_->RecordFixedArraySubTypeStats(
+ fast_cache, FAST_TEMPLATE_INSTANTIATIONS_CACHE_SUB_TYPE,
+ fast_cache->Size(), 0);
}
}
« no previous file with comments | « src/debug/liveedit.cc ('k') | src/objects.h » ('j') | src/objects.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698