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 1236 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1247 void CollectAllAvailableGarbage(const char* gc_reason = NULL); | 1247 void CollectAllAvailableGarbage(const char* gc_reason = NULL); |
1248 | 1248 |
1249 // Check whether the heap is currently iterable. | 1249 // Check whether the heap is currently iterable. |
1250 bool IsHeapIterable(); | 1250 bool IsHeapIterable(); |
1251 | 1251 |
1252 // Ensure that we have swept all spaces in such a way that we can iterate | 1252 // Ensure that we have swept all spaces in such a way that we can iterate |
1253 // over all objects. May cause a GC. | 1253 // over all objects. May cause a GC. |
1254 void EnsureHeapIsIterable(); | 1254 void EnsureHeapIsIterable(); |
1255 | 1255 |
1256 // Notify the heap that a context has been disposed. | 1256 // Notify the heap that a context has been disposed. |
1257 int NotifyContextDisposed() { | 1257 int NotifyContextDisposed(); |
1258 flush_monomorphic_ics_ = true; | |
1259 return ++contexts_disposed_; | |
1260 } | |
1261 | 1258 |
1262 // Utility to invoke the scavenger. This is needed in test code to | 1259 // Utility to invoke the scavenger. This is needed in test code to |
1263 // ensure correct callback for weak global handles. | 1260 // ensure correct callback for weak global handles. |
1264 void PerformScavenge(); | 1261 void PerformScavenge(); |
1265 | 1262 |
1266 inline void increment_scan_on_scavenge_pages() { | 1263 inline void increment_scan_on_scavenge_pages() { |
1267 scan_on_scavenge_pages_++; | 1264 scan_on_scavenge_pages_++; |
1268 if (FLAG_gc_verbose) { | 1265 if (FLAG_gc_verbose) { |
1269 PrintF("Scan-on-scavenge pages: %d\n", scan_on_scavenge_pages_); | 1266 PrintF("Scan-on-scavenge pages: %d\n", scan_on_scavenge_pages_); |
1270 } | 1267 } |
(...skipping 1770 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3041 DisallowHeapAllocation no_allocation; // i.e. no gc allowed. | 3038 DisallowHeapAllocation no_allocation; // i.e. no gc allowed. |
3042 | 3039 |
3043 private: | 3040 private: |
3044 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); | 3041 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); |
3045 }; | 3042 }; |
3046 #endif // DEBUG | 3043 #endif // DEBUG |
3047 | 3044 |
3048 } } // namespace v8::internal | 3045 } } // namespace v8::internal |
3049 | 3046 |
3050 #endif // V8_HEAP_H_ | 3047 #endif // V8_HEAP_H_ |
OLD | NEW |