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

Side by Side Diff: src/incremental-marking.cc

Issue 8380038: Speed up debug mode GC. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 9 years, 2 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.h » ('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 455 matching lines...) Expand 10 before | Expand all | Expand 10 after
466 // Initialize marking stack. 466 // Initialize marking stack.
467 Address addr = static_cast<Address>(marking_deque_memory_->address()); 467 Address addr = static_cast<Address>(marking_deque_memory_->address());
468 size_t size = marking_deque_memory_->size(); 468 size_t size = marking_deque_memory_->size();
469 if (FLAG_force_marking_deque_overflows) size = 64 * kPointerSize; 469 if (FLAG_force_marking_deque_overflows) size = 64 * kPointerSize;
470 marking_deque_.Initialize(addr, addr + size); 470 marking_deque_.Initialize(addr, addr + size);
471 471
472 ActivateIncrementalWriteBarrier(); 472 ActivateIncrementalWriteBarrier();
473 473
474 #ifdef DEBUG 474 #ifdef DEBUG
475 // Marking bits are cleared by the sweeper. 475 // Marking bits are cleared by the sweeper.
476 heap_->mark_compact_collector()->VerifyMarkbitsAreClean(); 476 if (FLAG_enable_slow_asserts) {
477 heap_->mark_compact_collector()->VerifyMarkbitsAreClean();
478 }
477 #endif 479 #endif
478 480
479 heap_->CompletelyClearInstanceofCache(); 481 heap_->CompletelyClearInstanceofCache();
480 heap_->isolate()->compilation_cache()->MarkCompactPrologue(); 482 heap_->isolate()->compilation_cache()->MarkCompactPrologue();
481 483
482 if (FLAG_cleanup_code_caches_at_gc) { 484 if (FLAG_cleanup_code_caches_at_gc) {
483 // We will mark cache black with a separate pass 485 // We will mark cache black with a separate pass
484 // when we finish marking. 486 // when we finish marking.
485 MarkObjectGreyDoNotEnqueue(heap_->polymorphic_code_cache()); 487 MarkObjectGreyDoNotEnqueue(heap_->polymorphic_code_cache());
486 } 488 }
(...skipping 336 matching lines...) Expand 10 before | Expand all | Expand 10 after
823 bytes_rescanned_ = 0; 825 bytes_rescanned_ = 0;
824 allocation_marking_factor_ = kInitialAllocationMarkingFactor; 826 allocation_marking_factor_ = kInitialAllocationMarkingFactor;
825 } 827 }
826 828
827 829
828 int64_t IncrementalMarking::SpaceLeftInOldSpace() { 830 int64_t IncrementalMarking::SpaceLeftInOldSpace() {
829 return heap_->MaxOldGenerationSize() - heap_->PromotedSpaceSize(); 831 return heap_->MaxOldGenerationSize() - heap_->PromotedSpaceSize();
830 } 832 }
831 833
832 } } // namespace v8::internal 834 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | src/mark-compact.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698