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

Side by Side Diff: src/heap/spaces.cc

Issue 1278113004: [heap] Remove unused IntrusiveMarking class. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 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
« no previous file with comments | « src/heap/heap.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 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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/base/bits.h" 7 #include "src/base/bits.h"
8 #include "src/base/platform/platform.h" 8 #include "src/base/platform/platform.h"
9 #include "src/full-codegen/full-codegen.h" 9 #include "src/full-codegen/full-codegen.h"
10 #include "src/heap/mark-compact.h" 10 #include "src/heap/mark-compact.h"
(...skipping 3122 matching lines...) Expand 10 before | Expand all | Expand 10 after
3133 } 3133 }
3134 } 3134 }
3135 } 3135 }
3136 3136
3137 3137
3138 void Page::Print() { 3138 void Page::Print() {
3139 // Make a best-effort to print the objects in the page. 3139 // Make a best-effort to print the objects in the page.
3140 PrintF("Page@%p in %s\n", this->address(), 3140 PrintF("Page@%p in %s\n", this->address(),
3141 AllocationSpaceName(this->owner()->identity())); 3141 AllocationSpaceName(this->owner()->identity()));
3142 printf(" --------------------------------------\n"); 3142 printf(" --------------------------------------\n");
3143 HeapObjectIterator objects(this, heap()->GcSafeSizeOfOldObjectFunction()); 3143 HeapObjectIterator objects(this, nullptr);
3144 unsigned mark_size = 0; 3144 unsigned mark_size = 0;
3145 for (HeapObject* object = objects.Next(); object != NULL; 3145 for (HeapObject* object = objects.Next(); object != NULL;
3146 object = objects.Next()) { 3146 object = objects.Next()) {
3147 bool is_marked = Marking::IsBlackOrGrey(Marking::MarkBitFrom(object)); 3147 bool is_marked = Marking::IsBlackOrGrey(Marking::MarkBitFrom(object));
3148 PrintF(" %c ", (is_marked ? '!' : ' ')); // Indent a little. 3148 PrintF(" %c ", (is_marked ? '!' : ' ')); // Indent a little.
3149 if (is_marked) { 3149 if (is_marked) {
3150 mark_size += heap()->GcSafeSizeOfOldObjectFunction()(object); 3150 mark_size += object->Size();
3151 } 3151 }
3152 object->ShortPrint(); 3152 object->ShortPrint();
3153 PrintF("\n"); 3153 PrintF("\n");
3154 } 3154 }
3155 printf(" --------------------------------------\n"); 3155 printf(" --------------------------------------\n");
3156 printf(" Marked: %x, LiveCount: %x\n", mark_size, LiveBytes()); 3156 printf(" Marked: %x, LiveCount: %x\n", mark_size, LiveBytes());
3157 } 3157 }
3158 3158
3159 #endif // DEBUG 3159 #endif // DEBUG
3160 } // namespace internal 3160 } // namespace internal
3161 } // namespace v8 3161 } // namespace v8
OLDNEW
« no previous file with comments | « src/heap/heap.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698