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

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

Issue 1478943003: 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: REBASE. 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 487 matching lines...) Expand 10 before | Expand all | Expand 10 after
498 "mark_inc=%.1f " 498 "mark_inc=%.1f "
499 "mark_prepcodeflush=%.1f " 499 "mark_prepcodeflush=%.1f "
500 "mark_root=%.1f " 500 "mark_root=%.1f "
501 "mark_topopt=%.1f " 501 "mark_topopt=%.1f "
502 "mark_retainmaps=%.1f " 502 "mark_retainmaps=%.1f "
503 "mark_weakclosure=%.1f " 503 "mark_weakclosure=%.1f "
504 "mark_stringtable=%.1f " 504 "mark_stringtable=%.1f "
505 "mark_weakrefs=%.1f " 505 "mark_weakrefs=%.1f "
506 "mark_globalhandles=%.1f " 506 "mark_globalhandles=%.1f "
507 "mark_codeflush=%.1f " 507 "mark_codeflush=%.1f "
508 "mark_optimizedcodemaps=%.1f "
509 "store_buffer_clear=%.1f " 508 "store_buffer_clear=%.1f "
510 "slots_buffer_clear=%.1f " 509 "slots_buffer_clear=%.1f "
511 "sweep=%.2f " 510 "sweep=%.2f "
512 "sweepns=%.2f " 511 "sweepns=%.2f "
513 "sweepos=%.2f " 512 "sweepos=%.2f "
514 "sweepcode=%.2f " 513 "sweepcode=%.2f "
515 "sweepcell=%.2f " 514 "sweepcell=%.2f "
516 "sweepmap=%.2f " 515 "sweepmap=%.2f "
517 "sweepaborted=%.2f " 516 "sweepaborted=%.2f "
518 "evacuate=%.1f " 517 "evacuate=%.1f "
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
567 current_.scopes[Scope::MC_MARK_FINISH_INCREMENTAL], 566 current_.scopes[Scope::MC_MARK_FINISH_INCREMENTAL],
568 current_.scopes[Scope::MC_MARK_PREPARE_CODE_FLUSH], 567 current_.scopes[Scope::MC_MARK_PREPARE_CODE_FLUSH],
569 current_.scopes[Scope::MC_MARK_ROOT], 568 current_.scopes[Scope::MC_MARK_ROOT],
570 current_.scopes[Scope::MC_MARK_TOPOPT], 569 current_.scopes[Scope::MC_MARK_TOPOPT],
571 current_.scopes[Scope::MC_MARK_RETAIN_MAPS], 570 current_.scopes[Scope::MC_MARK_RETAIN_MAPS],
572 current_.scopes[Scope::MC_MARK_WEAK_CLOSURE], 571 current_.scopes[Scope::MC_MARK_WEAK_CLOSURE],
573 current_.scopes[Scope::MC_MARK_STRING_TABLE], 572 current_.scopes[Scope::MC_MARK_STRING_TABLE],
574 current_.scopes[Scope::MC_MARK_WEAK_REFERENCES], 573 current_.scopes[Scope::MC_MARK_WEAK_REFERENCES],
575 current_.scopes[Scope::MC_MARK_GLOBAL_HANDLES], 574 current_.scopes[Scope::MC_MARK_GLOBAL_HANDLES],
576 current_.scopes[Scope::MC_MARK_CODE_FLUSH], 575 current_.scopes[Scope::MC_MARK_CODE_FLUSH],
577 current_.scopes[Scope::MC_MARK_OPTIMIZED_CODE_MAPS],
578 current_.scopes[Scope::MC_STORE_BUFFER_CLEAR], 576 current_.scopes[Scope::MC_STORE_BUFFER_CLEAR],
579 current_.scopes[Scope::MC_SLOTS_BUFFER_CLEAR], 577 current_.scopes[Scope::MC_SLOTS_BUFFER_CLEAR],
580 current_.scopes[Scope::MC_SWEEP], 578 current_.scopes[Scope::MC_SWEEP],
581 current_.scopes[Scope::MC_SWEEP_NEWSPACE], 579 current_.scopes[Scope::MC_SWEEP_NEWSPACE],
582 current_.scopes[Scope::MC_SWEEP_OLDSPACE], 580 current_.scopes[Scope::MC_SWEEP_OLDSPACE],
583 current_.scopes[Scope::MC_SWEEP_CODE], 581 current_.scopes[Scope::MC_SWEEP_CODE],
584 current_.scopes[Scope::MC_SWEEP_CELL], 582 current_.scopes[Scope::MC_SWEEP_CELL],
585 current_.scopes[Scope::MC_SWEEP_MAP], 583 current_.scopes[Scope::MC_SWEEP_MAP],
586 current_.scopes[Scope::MC_SWEEP_ABORTED], 584 current_.scopes[Scope::MC_SWEEP_ABORTED],
587 current_.scopes[Scope::MC_EVACUATE_PAGES], 585 current_.scopes[Scope::MC_EVACUATE_PAGES],
(...skipping 308 matching lines...) Expand 10 before | Expand all | Expand 10 after
896 894
897 895
898 bool GCTracer::SurvivalEventsRecorded() const { 896 bool GCTracer::SurvivalEventsRecorded() const {
899 return survival_events_.size() > 0; 897 return survival_events_.size() > 0;
900 } 898 }
901 899
902 900
903 void GCTracer::ResetSurvivalEvents() { survival_events_.reset(); } 901 void GCTracer::ResetSurvivalEvents() { survival_events_.reset(); }
904 } // namespace internal 902 } // namespace internal
905 } // namespace v8 903 } // 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