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

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

Issue 1488593003: Optimize clearing of map transitions. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: base Created 5 years 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
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 508 matching lines...) Expand 10 before | Expand all | Expand 10 after
519 "new_new=%.1f " 519 "new_new=%.1f "
520 "root_new=%.1f " 520 "root_new=%.1f "
521 "old_new=%.1f " 521 "old_new=%.1f "
522 "compaction_ptrs=%.1f " 522 "compaction_ptrs=%.1f "
523 "intracompaction_ptrs=%.1f " 523 "intracompaction_ptrs=%.1f "
524 "misc_compaction=%.1f " 524 "misc_compaction=%.1f "
525 "inc_weak_closure=%.1f " 525 "inc_weak_closure=%.1f "
526 "weakcollection_process=%.1f " 526 "weakcollection_process=%.1f "
527 "weakcollection_clear=%.1f " 527 "weakcollection_clear=%.1f "
528 "weakcollection_abort=%.1f " 528 "weakcollection_abort=%.1f "
529 "weakcells=%.1f " 529 "clear=%1f"
530 "nonlive_refs=%.1f " 530 "clear_weakcell=%.1f "
531 "extract_dependent_code=%.1f " 531 "clear_map=%.1f "
532 "deopt_dependent_code=%.1f " 532 "clear_dependent_code=%.1f "
533 "steps_count=%d " 533 "steps_count=%d "
534 "steps_took=%.1f " 534 "steps_took=%.1f "
535 "longest_step=%.1f " 535 "longest_step=%.1f "
536 "incremental_marking_throughput=%" V8_PTR_PREFIX 536 "incremental_marking_throughput=%" V8_PTR_PREFIX
537 "d " 537 "d "
538 "total_size_before=%" V8_PTR_PREFIX 538 "total_size_before=%" V8_PTR_PREFIX
539 "d " 539 "d "
540 "total_size_after=%" V8_PTR_PREFIX 540 "total_size_after=%" V8_PTR_PREFIX
541 "d " 541 "d "
542 "holes_size_before=%" V8_PTR_PREFIX 542 "holes_size_before=%" V8_PTR_PREFIX
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
588 current_.scopes[Scope::MC_UPDATE_NEW_TO_NEW_POINTERS], 588 current_.scopes[Scope::MC_UPDATE_NEW_TO_NEW_POINTERS],
589 current_.scopes[Scope::MC_UPDATE_ROOT_TO_NEW_POINTERS], 589 current_.scopes[Scope::MC_UPDATE_ROOT_TO_NEW_POINTERS],
590 current_.scopes[Scope::MC_UPDATE_OLD_TO_NEW_POINTERS], 590 current_.scopes[Scope::MC_UPDATE_OLD_TO_NEW_POINTERS],
591 current_.scopes[Scope::MC_UPDATE_POINTERS_TO_EVACUATED], 591 current_.scopes[Scope::MC_UPDATE_POINTERS_TO_EVACUATED],
592 current_.scopes[Scope::MC_UPDATE_POINTERS_BETWEEN_EVACUATED], 592 current_.scopes[Scope::MC_UPDATE_POINTERS_BETWEEN_EVACUATED],
593 current_.scopes[Scope::MC_UPDATE_MISC_POINTERS], 593 current_.scopes[Scope::MC_UPDATE_MISC_POINTERS],
594 current_.scopes[Scope::MC_INCREMENTAL_FINALIZE], 594 current_.scopes[Scope::MC_INCREMENTAL_FINALIZE],
595 current_.scopes[Scope::MC_WEAKCOLLECTION_PROCESS], 595 current_.scopes[Scope::MC_WEAKCOLLECTION_PROCESS],
596 current_.scopes[Scope::MC_WEAKCOLLECTION_CLEAR], 596 current_.scopes[Scope::MC_WEAKCOLLECTION_CLEAR],
597 current_.scopes[Scope::MC_WEAKCOLLECTION_ABORT], 597 current_.scopes[Scope::MC_WEAKCOLLECTION_ABORT],
598 current_.scopes[Scope::MC_WEAKCELL], 598 current_.scopes[Scope::MC_CLEAR],
599 current_.scopes[Scope::MC_NONLIVEREFERENCES], 599 current_.scopes[Scope::MC_CLEAR_WEAKCELL],
600 current_.scopes[Scope::MC_EXTRACT_DEPENDENT_CODE], 600 current_.scopes[Scope::MC_CLEAR_MAP],
601 current_.scopes[Scope::MC_DEOPT_DEPENDENT_CODE], 601 current_.scopes[Scope::MC_CLEAR_DEPENDENT_CODE],
602 current_.incremental_marking_steps, 602 current_.incremental_marking_steps,
603 current_.incremental_marking_duration, 603 current_.incremental_marking_duration,
604 current_.longest_incremental_marking_step, 604 current_.longest_incremental_marking_step,
605 IncrementalMarkingSpeedInBytesPerMillisecond(), 605 IncrementalMarkingSpeedInBytesPerMillisecond(),
606 current_.start_object_size, current_.end_object_size, 606 current_.start_object_size, current_.end_object_size,
607 current_.start_holes_size, current_.end_holes_size, 607 current_.start_holes_size, current_.end_holes_size,
608 allocated_since_last_gc, heap_->promoted_objects_size(), 608 allocated_since_last_gc, heap_->promoted_objects_size(),
609 heap_->semi_space_copied_object_size(), 609 heap_->semi_space_copied_object_size(),
610 heap_->nodes_died_in_new_space_, 610 heap_->nodes_died_in_new_space_,
611 heap_->nodes_copied_in_new_space_, heap_->nodes_promoted_, 611 heap_->nodes_copied_in_new_space_, heap_->nodes_promoted_,
(...skipping 284 matching lines...) Expand 10 before | Expand all | Expand 10 after
896 896
897 897
898 bool GCTracer::SurvivalEventsRecorded() const { 898 bool GCTracer::SurvivalEventsRecorded() const {
899 return survival_events_.size() > 0; 899 return survival_events_.size() > 0;
900 } 900 }
901 901
902 902
903 void GCTracer::ResetSurvivalEvents() { survival_events_.reset(); } 903 void GCTracer::ResetSurvivalEvents() { survival_events_.reset(); }
904 } // namespace internal 904 } // namespace internal
905 } // namespace v8 905 } // namespace v8
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698