Commit 69dd71b7 authored by Andreas Haas's avatar Andreas Haas Committed by Commit Bot

[compiler][cleanup] Remove dead code

R=neis@chromium.org

Bug: v8:10506
Change-Id: I4cffa301fd306acc4da4375bc6f0729d363cc659
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2349307Reviewed-by: 's avatarGeorg Neis <neis@chromium.org>
Commit-Queue: Andreas Haas <ahaas@chromium.org>
Cr-Commit-Position: refs/heads/master@{#69340}
parent 0ba115e6
......@@ -61,11 +61,9 @@ PipelineStatistics::PipelineStatistics(OptimizedCompilationInfo* info,
: outer_zone_(info->zone()),
zone_stats_(zone_stats),
compilation_stats_(compilation_stats),
source_size_(0),
phase_kind_name_(nullptr),
phase_name_(nullptr) {
if (info->has_shared_info()) {
source_size_ = static_cast<size_t>(info->shared_info()->SourceSize());
std::unique_ptr<char[]> name = info->shared_info()->DebugName().ToCString();
function_name_ = name.get();
}
......@@ -77,7 +75,7 @@ PipelineStatistics::~PipelineStatistics() {
if (InPhaseKind()) EndPhaseKind();
CompilationStatistics::BasicStats diff;
total_stats_.End(this, &diff);
compilation_stats_->RecordTotalStats(source_size_, diff);
compilation_stats_->RecordTotalStats(diff);
}
......
......@@ -63,7 +63,6 @@ class PipelineStatistics : public Malloced {
// Stats for the entire compilation.
CommonStats total_stats_;
size_t source_size_;
// Stats for phase kind.
const char* phase_kind_name_;
......
......@@ -40,11 +40,8 @@ void CompilationStatistics::RecordPhaseKindStats(const char* phase_kind_name,
it->second.Accumulate(stats);
}
void CompilationStatistics::RecordTotalStats(size_t source_size,
const BasicStats& stats) {
void CompilationStatistics::RecordTotalStats(const BasicStats& stats) {
base::MutexGuard guard(&record_mutex_);
source_size += source_size;
total_stats_.Accumulate(stats);
}
......
......@@ -48,7 +48,7 @@ class CompilationStatistics final : public Malloced {
void RecordPhaseKindStats(const char* phase_kind_name,
const BasicStats& stats);
void RecordTotalStats(size_t source_size, const BasicStats& stats);
void RecordTotalStats(const BasicStats& stats);
private:
class TotalStats : public BasicStats {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment