OLD | NEW |
---|---|
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 1096 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1107 void EnsureHeapIsIterable(); | 1107 void EnsureHeapIsIterable(); |
1108 | 1108 |
1109 // Notify the heap that a context has been disposed. | 1109 // Notify the heap that a context has been disposed. |
1110 int NotifyContextDisposed() { | 1110 int NotifyContextDisposed() { |
1111 flush_monomorphic_ics_ = true; | 1111 flush_monomorphic_ics_ = true; |
1112 return ++contexts_disposed_; | 1112 return ++contexts_disposed_; |
1113 } | 1113 } |
1114 | 1114 |
1115 // Utility to invoke the scavenger. This is needed in test code to | 1115 // Utility to invoke the scavenger. This is needed in test code to |
1116 // ensure correct callback for weak global handles. | 1116 // ensure correct callback for weak global handles. |
1117 void PerformScavenge(); | 1117 void PerformScavenge(bool force_scavenge = false); |
Michael Starzinger
2012/10/25 11:47:29
This change becomes obsolete then.
haraken
2012/10/25 11:54:49
Done.
| |
1118 | 1118 |
1119 inline void increment_scan_on_scavenge_pages() { | 1119 inline void increment_scan_on_scavenge_pages() { |
1120 scan_on_scavenge_pages_++; | 1120 scan_on_scavenge_pages_++; |
1121 if (FLAG_gc_verbose) { | 1121 if (FLAG_gc_verbose) { |
1122 PrintF("Scan-on-scavenge pages: %d\n", scan_on_scavenge_pages_); | 1122 PrintF("Scan-on-scavenge pages: %d\n", scan_on_scavenge_pages_); |
1123 } | 1123 } |
1124 } | 1124 } |
1125 | 1125 |
1126 inline void decrement_scan_on_scavenge_pages() { | 1126 inline void decrement_scan_on_scavenge_pages() { |
1127 scan_on_scavenge_pages_--; | 1127 scan_on_scavenge_pages_--; |
(...skipping 1690 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
2818 AssertNoAllocation no_alloc; // i.e. no gc allowed. | 2818 AssertNoAllocation no_alloc; // i.e. no gc allowed. |
2819 | 2819 |
2820 private: | 2820 private: |
2821 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); | 2821 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); |
2822 }; | 2822 }; |
2823 #endif // DEBUG || LIVE_OBJECT_LIST | 2823 #endif // DEBUG || LIVE_OBJECT_LIST |
2824 | 2824 |
2825 } } // namespace v8::internal | 2825 } } // namespace v8::internal |
2826 | 2826 |
2827 #endif // V8_HEAP_H_ | 2827 #endif // V8_HEAP_H_ |
OLD | NEW |