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

Side by Side Diff: src/heap/gc-tracer.cc

Issue 2496913002: Fix more -Wsign-compare warnings in heap, mips, base, etc. (Closed)
Patch Set: Created 4 years, 1 month 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/cancelable-task.cc ('k') | src/heap/spaces.cc » ('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/heap/gc-tracer.h" 5 #include "src/heap/gc-tracer.h"
6 6
7 #include "src/counters.h" 7 #include "src/counters.h"
8 #include "src/heap/heap-inl.h" 8 #include "src/heap/heap-inl.h"
9 #include "src/isolate.h" 9 #include "src/isolate.h"
10 10
(...skipping 251 matching lines...) Expand 10 before | Expand all | Expand 10 after
262 current_.incremental_marking_scopes[i] = incremental_marking_scopes_[i]; 262 current_.incremental_marking_scopes[i] = incremental_marking_scopes_[i];
263 current_.scopes[i] = incremental_marking_scopes_[i].duration; 263 current_.scopes[i] = incremental_marking_scopes_[i].duration;
264 } 264 }
265 RecordIncrementalMarkingSpeed(current_.incremental_marking_bytes, 265 RecordIncrementalMarkingSpeed(current_.incremental_marking_bytes,
266 current_.incremental_marking_duration); 266 current_.incremental_marking_duration);
267 recorded_incremental_mark_compacts_.Push( 267 recorded_incremental_mark_compacts_.Push(
268 MakeBytesAndDuration(current_.start_object_size, duration)); 268 MakeBytesAndDuration(current_.start_object_size, duration));
269 ResetIncrementalMarkingCounters(); 269 ResetIncrementalMarkingCounters();
270 combined_mark_compact_speed_cache_ = 0.0; 270 combined_mark_compact_speed_cache_ = 0.0;
271 } else { 271 } else {
272 DCHECK_EQ(0, current_.incremental_marking_bytes); 272 DCHECK_EQ(0u, current_.incremental_marking_bytes);
273 DCHECK_EQ(0, current_.incremental_marking_duration); 273 DCHECK_EQ(0, current_.incremental_marking_duration);
274 recorded_mark_compacts_.Push( 274 recorded_mark_compacts_.Push(
275 MakeBytesAndDuration(current_.start_object_size, duration)); 275 MakeBytesAndDuration(current_.start_object_size, duration));
276 ResetIncrementalMarkingCounters(); 276 ResetIncrementalMarkingCounters();
277 combined_mark_compact_speed_cache_ = 0.0; 277 combined_mark_compact_speed_cache_ = 0.0;
278 } 278 }
279 279
280 heap_->UpdateTotalGCTime(duration); 280 heap_->UpdateTotalGCTime(duration);
281 281
282 if (current_.type == Event::SCAVENGER && FLAG_trace_gc_ignore_scavenger) 282 if (current_.type == Event::SCAVENGER && FLAG_trace_gc_ignore_scavenger)
(...skipping 529 matching lines...) Expand 10 before | Expand all | Expand 10 after
812 } 812 }
813 813
814 void GCTracer::ResetSurvivalEvents() { recorded_survival_ratios_.Reset(); } 814 void GCTracer::ResetSurvivalEvents() { recorded_survival_ratios_.Reset(); }
815 815
816 void GCTracer::NotifyIncrementalMarkingStart() { 816 void GCTracer::NotifyIncrementalMarkingStart() {
817 incremental_marking_start_time_ = heap_->MonotonicallyIncreasingTimeInMs(); 817 incremental_marking_start_time_ = heap_->MonotonicallyIncreasingTimeInMs();
818 } 818 }
819 819
820 } // namespace internal 820 } // namespace internal
821 } // namespace v8 821 } // namespace v8
OLDNEW
« no previous file with comments | « src/cancelable-task.cc ('k') | src/heap/spaces.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698