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

Side by Side Diff: test/cctest/cctest.h

Issue 1428683002: [heap] Convert overapproximate weak closure phase into finalize incremental marking phase and revis… (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 1 month 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
« no previous file with comments | « src/heap/incremental-marking.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2008 the V8 project authors. All rights reserved. 1 // Copyright 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 623 matching lines...) Expand 10 before | Expand all | Expand 10 after
634 CHECK(marking->IsMarking() || marking->IsStopped()); 634 CHECK(marking->IsMarking() || marking->IsStopped());
635 if (marking->IsStopped()) { 635 if (marking->IsStopped()) {
636 heap->StartIncrementalMarking(); 636 heap->StartIncrementalMarking();
637 } 637 }
638 CHECK(marking->IsMarking()); 638 CHECK(marking->IsMarking());
639 if (!force_completion) return; 639 if (!force_completion) return;
640 640
641 while (!marking->IsComplete()) { 641 while (!marking->IsComplete()) {
642 marking->Step(i::MB, i::IncrementalMarking::NO_GC_VIA_STACK_GUARD); 642 marking->Step(i::MB, i::IncrementalMarking::NO_GC_VIA_STACK_GUARD);
643 if (marking->IsReadyToOverApproximateWeakClosure()) { 643 if (marking->IsReadyToOverApproximateWeakClosure()) {
644 marking->MarkObjectGroups(); 644 marking->FinalizeIncrementally();
645 } 645 }
646 } 646 }
647 CHECK(marking->IsComplete()); 647 CHECK(marking->IsComplete());
648 } 648 }
649 649
650 650
651 static void DummyDebugEventListener( 651 static void DummyDebugEventListener(
652 const v8::Debug::EventDetails& event_details) {} 652 const v8::Debug::EventDetails& event_details) {}
653 653
654 654
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
687 HandleAndZoneScope() {} 687 HandleAndZoneScope() {}
688 688
689 // Prefixing the below with main_ reduces a lot of naming clashes. 689 // Prefixing the below with main_ reduces a lot of naming clashes.
690 i::Zone* main_zone() { return &main_zone_; } 690 i::Zone* main_zone() { return &main_zone_; }
691 691
692 private: 692 private:
693 i::Zone main_zone_; 693 i::Zone main_zone_;
694 }; 694 };
695 695
696 #endif // ifndef CCTEST_H_ 696 #endif // ifndef CCTEST_H_
OLDNEW
« no previous file with comments | « src/heap/incremental-marking.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698