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

Unified Diff: src/compiler/pipeline-statistics.cc

Issue 2401163002: Revert of Replaced different means of zone pooling/reusing by one zone segment pool (Closed)
Patch Set: Created 4 years, 2 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/compiler/pipeline-statistics.h ('k') | src/compiler/scheduler.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/compiler/pipeline-statistics.cc
diff --git a/src/compiler/pipeline-statistics.cc b/src/compiler/pipeline-statistics.cc
index 2b6ffe418c6ff4307e2076be811fc01217b41793..a032c3dac2cf3b4dec8a1c79710dbf8bb67ecfa2 100644
--- a/src/compiler/pipeline-statistics.cc
+++ b/src/compiler/pipeline-statistics.cc
@@ -6,7 +6,7 @@
#include "src/compilation-info.h"
#include "src/compiler/pipeline-statistics.h"
-#include "src/compiler/zone-stats.h"
+#include "src/compiler/zone-pool.h"
#include "src/isolate.h"
namespace v8 {
@@ -16,13 +16,13 @@
void PipelineStatistics::CommonStats::Begin(
PipelineStatistics* pipeline_stats) {
DCHECK(!scope_);
- scope_.reset(new ZoneStats::StatsScope(pipeline_stats->zone_stats_));
+ scope_.reset(new ZonePool::StatsScope(pipeline_stats->zone_pool_));
timer_.Start();
outer_zone_initial_size_ = pipeline_stats->OuterZoneSize();
allocated_bytes_at_start_ =
outer_zone_initial_size_ -
pipeline_stats->total_stats_.outer_zone_initial_size_ +
- pipeline_stats->zone_stats_->GetCurrentAllocatedBytes();
+ pipeline_stats->zone_pool_->GetCurrentAllocatedBytes();
}
@@ -43,11 +43,12 @@
timer_.Stop();
}
+
PipelineStatistics::PipelineStatistics(CompilationInfo* info,
- ZoneStats* zone_stats)
+ ZonePool* zone_pool)
: isolate_(info->isolate()),
outer_zone_(info->zone()),
- zone_stats_(zone_stats),
+ zone_pool_(zone_pool),
compilation_stats_(isolate_->GetTurboStatistics()),
source_size_(0),
phase_kind_name_(nullptr),
« no previous file with comments | « src/compiler/pipeline-statistics.h ('k') | src/compiler/scheduler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698