| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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_ |
| OLD | NEW |