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

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

Issue 2348303002: Replaced different means of zone pooling/reusing by one zone segment pool (Closed)
Patch Set: Merge branch 'zonesegpool' into onezonepool Created 4 years, 3 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
Index: src/compiler/pipeline-statistics.cc
diff --git a/src/compiler/pipeline-statistics.cc b/src/compiler/pipeline-statistics.cc
index a032c3dac2cf3b4dec8a1c79710dbf8bb67ecfa2..f43205d57550cd6a16a5bd886501c74fd0f9905f 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-pool.h"
+#include "src/compiler/zonestats.h"
#include "src/isolate.h"
namespace v8 {
@@ -16,13 +16,13 @@ namespace compiler {
void PipelineStatistics::CommonStats::Begin(
PipelineStatistics* pipeline_stats) {
DCHECK(!scope_);
- scope_.reset(new ZonePool::StatsScope(pipeline_stats->zone_pool_));
+ scope_.reset(new ZoneStats::StatsScope(pipeline_stats->zone_stats_));
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_pool_->GetCurrentAllocatedBytes();
+ pipeline_stats->zone_stats_->GetCurrentAllocatedBytes();
}
@@ -43,12 +43,11 @@ void PipelineStatistics::CommonStats::End(
timer_.Stop();
}
-
PipelineStatistics::PipelineStatistics(CompilationInfo* info,
- ZonePool* zone_pool)
+ ZoneStats* zone_stats)
: isolate_(info->isolate()),
outer_zone_(info->zone()),
- zone_pool_(zone_pool),
+ zone_stats_(zone_stats),
compilation_stats_(isolate_->GetTurboStatistics()),
source_size_(0),
phase_kind_name_(nullptr),

Powered by Google App Engine
This is Rietveld 408576698