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

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

Issue 7784001: Add specialized sweeper for cell and map space. Base URL: https://v8.googlecode.com/svn/branches/experimental/gc
Patch Set: Remove obsolete printf used for debugging. Created 9 years, 3 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 | « no previous file | 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 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 419 matching lines...) Expand 10 before | Expand all | Expand 10 after
430 430
431 inline Heap* heap() const { return heap_; } 431 inline Heap* heap() const { return heap_; }
432 432
433 CodeFlusher* code_flusher() { return code_flusher_; } 433 CodeFlusher* code_flusher() { return code_flusher_; }
434 inline bool is_code_flushing_enabled() const { return code_flusher_ != NULL; } 434 inline bool is_code_flushing_enabled() const { return code_flusher_ != NULL; }
435 void EnableCodeFlushing(bool enable); 435 void EnableCodeFlushing(bool enable);
436 436
437 enum SweeperType { 437 enum SweeperType {
438 CONSERVATIVE, 438 CONSERVATIVE,
439 LAZY_CONSERVATIVE, 439 LAZY_CONSERVATIVE,
440 PRECISE 440 PRECISE,
441 PRECISE_CELLS,
442 PRECISE_MAPS
441 }; 443 };
442 444
443 #ifdef DEBUG 445 #ifdef DEBUG
444 void VerifyMarkbitsAreClean(); 446 void VerifyMarkbitsAreClean();
445 static void VerifyMarkbitsAreClean(PagedSpace* space); 447 static void VerifyMarkbitsAreClean(PagedSpace* space);
446 static void VerifyMarkbitsAreClean(NewSpace* space); 448 static void VerifyMarkbitsAreClean(NewSpace* space);
447 #endif 449 #endif
448 450
449 // Sweep a single page from the given space conservatively. 451 // Sweep a single page from the given space conservatively.
450 // Return a number of reclaimed bytes. 452 // Return a number of reclaimed bytes.
(...skipping 267 matching lines...) Expand 10 before | Expand all | Expand 10 after
718 720
719 List<Page*> evacuation_candidates_; 721 List<Page*> evacuation_candidates_;
720 722
721 friend class Heap; 723 friend class Heap;
722 }; 724 };
723 725
724 726
725 } } // namespace v8::internal 727 } } // namespace v8::internal
726 728
727 #endif // V8_MARK_COMPACT_H_ 729 #endif // V8_MARK_COMPACT_H_
OLDNEW
« no previous file with comments | « no previous file | src/mark-compact.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698