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

Side by Side Diff: src/heap.h

Issue 7248005: Make scan-on-scavenge less verbose. (Closed) Base URL: http://v8.googlecode.com/svn/branches/experimental/gc/
Patch Set: Created 9 years, 6 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 876 matching lines...) Expand 10 before | Expand all | Expand 10 after
887 887
888 // Notify the heap that a context has been disposed. 888 // Notify the heap that a context has been disposed.
889 int NotifyContextDisposed() { return ++contexts_disposed_; } 889 int NotifyContextDisposed() { return ++contexts_disposed_; }
890 890
891 // Utility to invoke the scavenger. This is needed in test code to 891 // Utility to invoke the scavenger. This is needed in test code to
892 // ensure correct callback for weak global handles. 892 // ensure correct callback for weak global handles.
893 void PerformScavenge(); 893 void PerformScavenge();
894 894
895 inline void increment_scan_on_scavenge_pages() { 895 inline void increment_scan_on_scavenge_pages() {
896 scan_on_scavenge_pages_++; 896 scan_on_scavenge_pages_++;
897 if (FLAG_trace_gc) { 897 if (FLAG_trace_gc_verbose) {
898 PrintF("Scan-on-scavenge pages: %d\n", scan_on_scavenge_pages_); 898 PrintF("Scan-on-scavenge pages: %d\n", scan_on_scavenge_pages_);
899 } 899 }
900 } 900 }
901 901
902 inline void decrement_scan_on_scavenge_pages() { 902 inline void decrement_scan_on_scavenge_pages() {
903 scan_on_scavenge_pages_--; 903 scan_on_scavenge_pages_--;
904 if (FLAG_trace_gc) { 904 if (FLAG_trace_gc_verbose) {
905 PrintF("Scan-on-scavenge pages: %d\n", scan_on_scavenge_pages_); 905 PrintF("Scan-on-scavenge pages: %d\n", scan_on_scavenge_pages_);
906 } 906 }
907 } 907 }
908 908
909 PromotionQueue* promotion_queue() { return &promotion_queue_; } 909 PromotionQueue* promotion_queue() { return &promotion_queue_; }
910 910
911 #ifdef DEBUG 911 #ifdef DEBUG
912 // Utility used with flag gc-greedy. 912 // Utility used with flag gc-greedy.
913 void GarbageCollectionGreedyCheck(); 913 void GarbageCollectionGreedyCheck();
914 #endif 914 #endif
(...skipping 1423 matching lines...) Expand 10 before | Expand all | Expand 10 after
2338 2338
2339 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); 2339 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer);
2340 }; 2340 };
2341 #endif // DEBUG || LIVE_OBJECT_LIST 2341 #endif // DEBUG || LIVE_OBJECT_LIST
2342 2342
2343 } } // namespace v8::internal 2343 } } // namespace v8::internal
2344 2344
2345 #undef HEAP 2345 #undef HEAP
2346 2346
2347 #endif // V8_HEAP_H_ 2347 #endif // V8_HEAP_H_
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698