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

Side by Side Diff: src/mark-compact.h

Issue 7285031: Remove unmarked entries from per context map caches. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 9 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/mark-compact.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 2006-2008 the V8 project authors. All rights reserved. 1 // Copyright 2006-2008 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 288 matching lines...) Expand 10 before | Expand all | Expand 10 after
299 // stack. This function empties the marking stack, but may leave 299 // stack. This function empties the marking stack, but may leave
300 // overflowed objects in the heap, in which case the marking stack's 300 // overflowed objects in the heap, in which case the marking stack's
301 // overflow flag will be set. 301 // overflow flag will be set.
302 void EmptyMarkingStack(); 302 void EmptyMarkingStack();
303 303
304 // Refill the marking stack with overflowed objects from the heap. This 304 // Refill the marking stack with overflowed objects from the heap. This
305 // function either leaves the marking stack full or clears the overflow 305 // function either leaves the marking stack full or clears the overflow
306 // flag on the marking stack. 306 // flag on the marking stack.
307 void RefillMarkingStack(); 307 void RefillMarkingStack();
308 308
309 // After reachable maps have been marked process per context object
310 // literal map caches removing unmarked entries.
311 void ProcessMapCaches();
312
309 // Callback function for telling whether the object *p is an unmarked 313 // Callback function for telling whether the object *p is an unmarked
310 // heap object. 314 // heap object.
311 static bool IsUnmarkedHeapObject(Object** p); 315 static bool IsUnmarkedHeapObject(Object** p);
312 316
313 #ifdef DEBUG 317 #ifdef DEBUG
314 void UpdateLiveObjectCount(HeapObject* obj); 318 void UpdateLiveObjectCount(HeapObject* obj);
315 #endif 319 #endif
316 320
317 // We sweep the large object space in the same way whether we are 321 // We sweep the large object space in the same way whether we are
318 // compacting or not, because the large object space is never compacted. 322 // compacting or not, because the large object space is never compacted.
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after
497 CodeFlusher* code_flusher_; 501 CodeFlusher* code_flusher_;
498 502
499 friend class Heap; 503 friend class Heap;
500 friend class OverflowedObjectsScanner; 504 friend class OverflowedObjectsScanner;
501 }; 505 };
502 506
503 507
504 } } // namespace v8::internal 508 } } // namespace v8::internal
505 509
506 #endif // V8_MARK_COMPACT_H_ 510 #endif // V8_MARK_COMPACT_H_
OLDNEW
« no previous file with comments | « src/factory.cc ('k') | src/mark-compact.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698