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

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

Issue 1508703002: Use WeakCells in the optimized code map rather than traversing in pause. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fixed nit. 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
« no previous file with comments | « src/heap/gc-tracer.h ('k') | src/heap/heap.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/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 502 matching lines...) Expand 10 before | Expand all | Expand 10 after
513 "mark_inc=%.1f " 513 "mark_inc=%.1f "
514 "mark_prepcodeflush=%.1f " 514 "mark_prepcodeflush=%.1f "
515 "mark_root=%.1f " 515 "mark_root=%.1f "
516 "mark_topopt=%.1f " 516 "mark_topopt=%.1f "
517 "mark_retainmaps=%.1f " 517 "mark_retainmaps=%.1f "
518 "mark_weakclosure=%.1f " 518 "mark_weakclosure=%.1f "
519 "mark_stringtable=%.1f " 519 "mark_stringtable=%.1f "
520 "mark_weakrefs=%.1f " 520 "mark_weakrefs=%.1f "
521 "mark_globalhandles=%.1f " 521 "mark_globalhandles=%.1f "
522 "mark_codeflush=%.1f " 522 "mark_codeflush=%.1f "
523 "mark_optimizedcodemaps=%.1f "
524 "store_buffer_clear=%.1f " 523 "store_buffer_clear=%.1f "
525 "slots_buffer_clear=%.1f " 524 "slots_buffer_clear=%.1f "
526 "sweep=%.2f " 525 "sweep=%.2f "
527 "sweepns=%.2f " 526 "sweepns=%.2f "
528 "sweepos=%.2f " 527 "sweepos=%.2f "
529 "sweepcode=%.2f " 528 "sweepcode=%.2f "
530 "sweepcell=%.2f " 529 "sweepcell=%.2f "
531 "sweepmap=%.2f " 530 "sweepmap=%.2f "
532 "sweepaborted=%.2f " 531 "sweepaborted=%.2f "
533 "evacuate=%.1f " 532 "evacuate=%.1f "
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
585 current_.scopes[Scope::MC_MARK_FINISH_INCREMENTAL], 584 current_.scopes[Scope::MC_MARK_FINISH_INCREMENTAL],
586 current_.scopes[Scope::MC_MARK_PREPARE_CODE_FLUSH], 585 current_.scopes[Scope::MC_MARK_PREPARE_CODE_FLUSH],
587 current_.scopes[Scope::MC_MARK_ROOT], 586 current_.scopes[Scope::MC_MARK_ROOT],
588 current_.scopes[Scope::MC_MARK_TOPOPT], 587 current_.scopes[Scope::MC_MARK_TOPOPT],
589 current_.scopes[Scope::MC_MARK_RETAIN_MAPS], 588 current_.scopes[Scope::MC_MARK_RETAIN_MAPS],
590 current_.scopes[Scope::MC_MARK_WEAK_CLOSURE], 589 current_.scopes[Scope::MC_MARK_WEAK_CLOSURE],
591 current_.scopes[Scope::MC_MARK_STRING_TABLE], 590 current_.scopes[Scope::MC_MARK_STRING_TABLE],
592 current_.scopes[Scope::MC_MARK_WEAK_REFERENCES], 591 current_.scopes[Scope::MC_MARK_WEAK_REFERENCES],
593 current_.scopes[Scope::MC_MARK_GLOBAL_HANDLES], 592 current_.scopes[Scope::MC_MARK_GLOBAL_HANDLES],
594 current_.scopes[Scope::MC_MARK_CODE_FLUSH], 593 current_.scopes[Scope::MC_MARK_CODE_FLUSH],
595 current_.scopes[Scope::MC_MARK_OPTIMIZED_CODE_MAPS],
596 current_.scopes[Scope::MC_STORE_BUFFER_CLEAR], 594 current_.scopes[Scope::MC_STORE_BUFFER_CLEAR],
597 current_.scopes[Scope::MC_SLOTS_BUFFER_CLEAR], 595 current_.scopes[Scope::MC_SLOTS_BUFFER_CLEAR],
598 current_.scopes[Scope::MC_SWEEP], 596 current_.scopes[Scope::MC_SWEEP],
599 current_.scopes[Scope::MC_SWEEP_NEWSPACE], 597 current_.scopes[Scope::MC_SWEEP_NEWSPACE],
600 current_.scopes[Scope::MC_SWEEP_OLDSPACE], 598 current_.scopes[Scope::MC_SWEEP_OLDSPACE],
601 current_.scopes[Scope::MC_SWEEP_CODE], 599 current_.scopes[Scope::MC_SWEEP_CODE],
602 current_.scopes[Scope::MC_SWEEP_CELL], 600 current_.scopes[Scope::MC_SWEEP_CELL],
603 current_.scopes[Scope::MC_SWEEP_MAP], 601 current_.scopes[Scope::MC_SWEEP_MAP],
604 current_.scopes[Scope::MC_SWEEP_ABORTED], 602 current_.scopes[Scope::MC_SWEEP_ABORTED],
605 current_.scopes[Scope::MC_EVACUATE_PAGES], 603 current_.scopes[Scope::MC_EVACUATE_PAGES],
(...skipping 311 matching lines...) Expand 10 before | Expand all | Expand 10 after
917 915
918 916
919 bool GCTracer::SurvivalEventsRecorded() const { 917 bool GCTracer::SurvivalEventsRecorded() const {
920 return survival_events_.size() > 0; 918 return survival_events_.size() > 0;
921 } 919 }
922 920
923 921
924 void GCTracer::ResetSurvivalEvents() { survival_events_.reset(); } 922 void GCTracer::ResetSurvivalEvents() { survival_events_.reset(); }
925 } // namespace internal 923 } // namespace internal
926 } // namespace v8 924 } // namespace v8
OLDNEW
« no previous file with comments | « src/heap/gc-tracer.h ('k') | src/heap/heap.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698