OLD | NEW |
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...) Loading... |
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...) Loading... |
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_ |
OLD | NEW |