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

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

Issue 8342037: Switch UnreachableObjectsFilter to use Marking instead of InstrusiveMarking. (Closed) Base URL: https://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
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 451 matching lines...) Expand 10 before | Expand all | Expand 10 after
462 EnsureMarkingDequeIsCommitted(); 462 EnsureMarkingDequeIsCommitted();
463 463
464 // Initialize marking stack. 464 // Initialize marking stack.
465 Address addr = static_cast<Address>(marking_deque_memory_->address()); 465 Address addr = static_cast<Address>(marking_deque_memory_->address());
466 size_t size = marking_deque_memory_->size(); 466 size_t size = marking_deque_memory_->size();
467 if (FLAG_force_marking_deque_overflows) size = 64 * kPointerSize; 467 if (FLAG_force_marking_deque_overflows) size = 64 * kPointerSize;
468 marking_deque_.Initialize(addr, addr + size); 468 marking_deque_.Initialize(addr, addr + size);
469 469
470 ActivateIncrementalWriteBarrier(); 470 ActivateIncrementalWriteBarrier();
471 471
472 heap_->mark_compact_collector()->ClearMarkbits();
Erik Corry 2011/10/19 17:56:07 I don't understand why this is now needed in the i
473
472 #ifdef DEBUG 474 #ifdef DEBUG
473 // Marking bits are cleared by the sweeper. 475 // Marking bits are cleared by the sweeper.
474 heap_->mark_compact_collector()->VerifyMarkbitsAreClean(); 476 heap_->mark_compact_collector()->VerifyMarkbitsAreClean();
475 #endif 477 #endif
476 478
477 heap_->CompletelyClearInstanceofCache(); 479 heap_->CompletelyClearInstanceofCache();
478 heap_->isolate()->compilation_cache()->MarkCompactPrologue(); 480 heap_->isolate()->compilation_cache()->MarkCompactPrologue();
479 481
480 if (FLAG_cleanup_code_caches_at_gc) { 482 if (FLAG_cleanup_code_caches_at_gc) {
481 // We will mark cache black with a separate pass 483 // We will mark cache black with a separate pass
(...skipping 337 matching lines...) Expand 10 before | Expand all | Expand 10 after
819 bytes_rescanned_ = 0; 821 bytes_rescanned_ = 0;
820 allocation_marking_factor_ = kInitialAllocationMarkingFactor; 822 allocation_marking_factor_ = kInitialAllocationMarkingFactor;
821 } 823 }
822 824
823 825
824 int64_t IncrementalMarking::SpaceLeftInOldSpace() { 826 int64_t IncrementalMarking::SpaceLeftInOldSpace() {
825 return heap_->MaxOldGenerationSize() - heap_->PromotedSpaceSize(); 827 return heap_->MaxOldGenerationSize() - heap_->PromotedSpaceSize();
826 } 828 }
827 829
828 } } // namespace v8::internal 830 } } // namespace v8::internal
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698