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

Side by Side Diff: src/heap.h

Issue 21156009: Re-revert "Flush parallel recompilation queues on context dispose notification" (r15883). (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 4 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 1236 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 }
1258 1261
1259 // Utility to invoke the scavenger. This is needed in test code to 1262 // Utility to invoke the scavenger. This is needed in test code to
1260 // ensure correct callback for weak global handles. 1263 // ensure correct callback for weak global handles.
1261 void PerformScavenge(); 1264 void PerformScavenge();
1262 1265
1263 inline void increment_scan_on_scavenge_pages() { 1266 inline void increment_scan_on_scavenge_pages() {
1264 scan_on_scavenge_pages_++; 1267 scan_on_scavenge_pages_++;
1265 if (FLAG_gc_verbose) { 1268 if (FLAG_gc_verbose) {
1266 PrintF("Scan-on-scavenge pages: %d\n", scan_on_scavenge_pages_); 1269 PrintF("Scan-on-scavenge pages: %d\n", scan_on_scavenge_pages_);
1267 } 1270 }
(...skipping 1779 matching lines...) Expand 10 before | Expand all | Expand 10 after
3047 DisallowHeapAllocation no_allocation; // i.e. no gc allowed. 3050 DisallowHeapAllocation no_allocation; // i.e. no gc allowed.
3048 3051
3049 private: 3052 private:
3050 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); 3053 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer);
3051 }; 3054 };
3052 #endif // DEBUG 3055 #endif // DEBUG
3053 3056
3054 } } // namespace v8::internal 3057 } } // namespace v8::internal
3055 3058
3056 #endif // V8_HEAP_H_ 3059 #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