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

Side by Side Diff: src/heap.h

Issue 19500022: Reland "Flush parallel recompilation queues on context dispose notification." (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: comment addressed Created 7 years, 5 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 | « src/factory.cc ('k') | src/heap.cc » ('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 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 1234 matching lines...) Expand 10 before | Expand all | Expand 10 after
1245 void CollectAllAvailableGarbage(const char* gc_reason = NULL); 1245 void CollectAllAvailableGarbage(const char* gc_reason = NULL);
1246 1246
1247 // Check whether the heap is currently iterable. 1247 // Check whether the heap is currently iterable.
1248 bool IsHeapIterable(); 1248 bool IsHeapIterable();
1249 1249
1250 // Ensure that we have swept all spaces in such a way that we can iterate 1250 // Ensure that we have swept all spaces in such a way that we can iterate
1251 // over all objects. May cause a GC. 1251 // over all objects. May cause a GC.
1252 void EnsureHeapIsIterable(); 1252 void EnsureHeapIsIterable();
1253 1253
1254 // Notify the heap that a context has been disposed. 1254 // Notify the heap that a context has been disposed.
1255 int NotifyContextDisposed() { 1255 int NotifyContextDisposed();
1256 flush_monomorphic_ics_ = true;
1257 return ++contexts_disposed_;
1258 }
1259 1256
1260 // Utility to invoke the scavenger. This is needed in test code to 1257 // Utility to invoke the scavenger. This is needed in test code to
1261 // ensure correct callback for weak global handles. 1258 // ensure correct callback for weak global handles.
1262 void PerformScavenge(); 1259 void PerformScavenge();
1263 1260
1264 inline void increment_scan_on_scavenge_pages() { 1261 inline void increment_scan_on_scavenge_pages() {
1265 scan_on_scavenge_pages_++; 1262 scan_on_scavenge_pages_++;
1266 if (FLAG_gc_verbose) { 1263 if (FLAG_gc_verbose) {
1267 PrintF("Scan-on-scavenge pages: %d\n", scan_on_scavenge_pages_); 1264 PrintF("Scan-on-scavenge pages: %d\n", scan_on_scavenge_pages_);
1268 } 1265 }
(...skipping 1773 matching lines...) Expand 10 before | Expand all | Expand 10 after
3042 DisallowHeapAllocation no_allocation; // i.e. no gc allowed. 3039 DisallowHeapAllocation no_allocation; // i.e. no gc allowed.
3043 3040
3044 private: 3041 private:
3045 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); 3042 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer);
3046 }; 3043 };
3047 #endif // DEBUG 3044 #endif // DEBUG
3048 3045
3049 } } // namespace v8::internal 3046 } } // namespace v8::internal
3050 3047
3051 #endif // V8_HEAP_H_ 3048 #endif // V8_HEAP_H_
OLDNEW
« no previous file with comments | « src/factory.cc ('k') | src/heap.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698