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

Side by Side Diff: src/heap-snapshot-generator.cc

Issue 479113004: Remove conservative sweeping. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 4 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 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "src/v8.h" 5 #include "src/v8.h"
6 6
7 #include "src/heap-snapshot-generator-inl.h" 7 #include "src/heap-snapshot-generator-inl.h"
8 8
9 #include "src/allocation-tracker.h" 9 #include "src/allocation-tracker.h"
10 #include "src/code-stubs.h" 10 #include "src/code-stubs.h"
(...skipping 2565 matching lines...) Expand 10 before | Expand all | Expand 10 after
2576 // As a temporary solution we call GC twice. 2576 // As a temporary solution we call GC twice.
2577 heap_->CollectAllGarbage( 2577 heap_->CollectAllGarbage(
2578 Heap::kMakeHeapIterableMask, 2578 Heap::kMakeHeapIterableMask,
2579 "HeapSnapshotGenerator::GenerateSnapshot"); 2579 "HeapSnapshotGenerator::GenerateSnapshot");
2580 heap_->CollectAllGarbage( 2580 heap_->CollectAllGarbage(
2581 Heap::kMakeHeapIterableMask, 2581 Heap::kMakeHeapIterableMask,
2582 "HeapSnapshotGenerator::GenerateSnapshot"); 2582 "HeapSnapshotGenerator::GenerateSnapshot");
2583 2583
2584 #ifdef VERIFY_HEAP 2584 #ifdef VERIFY_HEAP
2585 Heap* debug_heap = heap_; 2585 Heap* debug_heap = heap_;
2586 CHECK(debug_heap->old_data_space()->swept_precisely());
2587 CHECK(debug_heap->old_pointer_space()->swept_precisely());
2588 CHECK(debug_heap->code_space()->swept_precisely());
2589 CHECK(debug_heap->cell_space()->swept_precisely());
2590 CHECK(debug_heap->property_cell_space()->swept_precisely());
2591 CHECK(debug_heap->map_space()->swept_precisely());
2592 #endif
2593
2594 #ifdef VERIFY_HEAP
2595 debug_heap->Verify(); 2586 debug_heap->Verify();
2596 #endif 2587 #endif
2597 2588
2598 SetProgressTotal(2); // 2 passes. 2589 SetProgressTotal(2); // 2 passes.
2599 2590
2600 #ifdef VERIFY_HEAP 2591 #ifdef VERIFY_HEAP
2601 debug_heap->Verify(); 2592 debug_heap->Verify();
2602 #endif 2593 #endif
2603 2594
2604 if (!FillReferences()) return false; 2595 if (!FillReferences()) return false;
(...skipping 562 matching lines...) Expand 10 before | Expand all | Expand 10 after
3167 writer_->AddString("\"<dummy>\""); 3158 writer_->AddString("\"<dummy>\"");
3168 for (int i = 1; i < sorted_strings.length(); ++i) { 3159 for (int i = 1; i < sorted_strings.length(); ++i) {
3169 writer_->AddCharacter(','); 3160 writer_->AddCharacter(',');
3170 SerializeString(sorted_strings[i]); 3161 SerializeString(sorted_strings[i]);
3171 if (writer_->aborted()) return; 3162 if (writer_->aborted()) return;
3172 } 3163 }
3173 } 3164 }
3174 3165
3175 3166
3176 } } // namespace v8::internal 3167 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/flag-definitions.h ('k') | src/heap/heap.cc » ('j') | src/heap/mark-compact.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698