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

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

Issue 2348303002: Replaced different means of zone pooling/reusing by one zone segment pool (Closed)
Patch Set: Added most recent changes from master 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 a032c3dac2cf3b4dec8a1c79710dbf8bb67ecfa2..2b6ffe418c6ff4307e2076be811fc01217b41793 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/zone-stats.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),
« 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