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

Side by Side Diff: src/compiler/pipeline-statistics.cc

Issue 868883002: Remove the dependency of Zone on Isolate (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix compilation issues Created 5 years, 11 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 unified diff | Download patch
« no previous file with comments | « src/compiler/pipeline.cc ('k') | src/compiler/raw-machine-assembler.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "src/compiler.h" 5 #include "src/compiler.h"
6 #include "src/compiler/pipeline-statistics.h" 6 #include "src/compiler/pipeline-statistics.h"
7 #include "src/compiler/zone-pool.h" 7 #include "src/compiler/zone-pool.h"
8 8
9 namespace v8 { 9 namespace v8 {
10 namespace internal { 10 namespace internal {
(...skipping 25 matching lines...) Expand all
36 diff->max_allocated_bytes_ + allocated_bytes_at_start_; 36 diff->max_allocated_bytes_ + allocated_bytes_at_start_;
37 diff->total_allocated_bytes_ = 37 diff->total_allocated_bytes_ =
38 outer_zone_diff + scope_->GetTotalAllocatedBytes(); 38 outer_zone_diff + scope_->GetTotalAllocatedBytes();
39 scope_.Reset(NULL); 39 scope_.Reset(NULL);
40 timer_.Stop(); 40 timer_.Stop();
41 } 41 }
42 42
43 43
44 PipelineStatistics::PipelineStatistics(CompilationInfo* info, 44 PipelineStatistics::PipelineStatistics(CompilationInfo* info,
45 ZonePool* zone_pool) 45 ZonePool* zone_pool)
46 : isolate_(info->zone()->isolate()), 46 : isolate_(info->isolate()),
47 outer_zone_(info->zone()), 47 outer_zone_(info->zone()),
48 zone_pool_(zone_pool), 48 zone_pool_(zone_pool),
49 compilation_stats_(isolate_->GetTurboStatistics()), 49 compilation_stats_(isolate_->GetTurboStatistics()),
50 source_size_(0), 50 source_size_(0),
51 phase_kind_name_(NULL), 51 phase_kind_name_(NULL),
52 phase_name_(NULL) { 52 phase_name_(NULL) {
53 if (!info->shared_info().is_null()) { 53 if (!info->shared_info().is_null()) {
54 source_size_ = static_cast<size_t>(info->shared_info()->SourceSize()); 54 source_size_ = static_cast<size_t>(info->shared_info()->SourceSize());
55 SmartArrayPointer<char> name = 55 SmartArrayPointer<char> name =
56 info->shared_info()->DebugName()->ToCString(); 56 info->shared_info()->DebugName()->ToCString();
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 void PipelineStatistics::EndPhase() { 94 void PipelineStatistics::EndPhase() {
95 DCHECK(InPhaseKind()); 95 DCHECK(InPhaseKind());
96 CompilationStatistics::BasicStats diff; 96 CompilationStatistics::BasicStats diff;
97 phase_stats_.End(this, &diff); 97 phase_stats_.End(this, &diff);
98 compilation_stats_->RecordPhaseStats(phase_kind_name_, phase_name_, diff); 98 compilation_stats_->RecordPhaseStats(phase_kind_name_, phase_name_, diff);
99 } 99 }
100 100
101 } // namespace compiler 101 } // namespace compiler
102 } // namespace internal 102 } // namespace internal
103 } // namespace v8 103 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/pipeline.cc ('k') | src/compiler/raw-machine-assembler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698