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

Side by Side Diff: src/spaces.cc

Issue 363323003: More OStreamsUse OStreams more often. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Rebased and polished. Created 6 years, 5 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
« no previous file with comments | « src/safepoint-table.cc ('k') | src/stub-cache.cc » ('j') | 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/platform/platform.h" 7 #include "src/base/platform/platform.h"
8 #include "src/full-codegen.h" 8 #include "src/full-codegen.h"
9 #include "src/macro-assembler.h" 9 #include "src/macro-assembler.h"
10 #include "src/mark-compact.h" 10 #include "src/mark-compact.h"
(...skipping 3065 matching lines...) Expand 10 before | Expand all | Expand 10 after
3076 } 3076 }
3077 } 3077 }
3078 } 3078 }
3079 } 3079 }
3080 } 3080 }
3081 #endif 3081 #endif
3082 3082
3083 3083
3084 #ifdef DEBUG 3084 #ifdef DEBUG
3085 void LargeObjectSpace::Print() { 3085 void LargeObjectSpace::Print() {
3086 OFStream os(stdout);
3086 LargeObjectIterator it(this); 3087 LargeObjectIterator it(this);
3087 for (HeapObject* obj = it.Next(); obj != NULL; obj = it.Next()) { 3088 for (HeapObject* obj = it.Next(); obj != NULL; obj = it.Next()) {
3088 obj->Print(); 3089 obj->Print(os);
3089 } 3090 }
3090 } 3091 }
3091 3092
3092 3093
3093 void LargeObjectSpace::ReportStatistics() { 3094 void LargeObjectSpace::ReportStatistics() {
3094 PrintF(" size: %" V8_PTR_PREFIX "d\n", size_); 3095 PrintF(" size: %" V8_PTR_PREFIX "d\n", size_);
3095 int num_objects = 0; 3096 int num_objects = 0;
3096 ClearHistograms(heap()->isolate()); 3097 ClearHistograms(heap()->isolate());
3097 LargeObjectIterator it(this); 3098 LargeObjectIterator it(this);
3098 for (HeapObject* obj = it.Next(); obj != NULL; obj = it.Next()) { 3099 for (HeapObject* obj = it.Next(); obj != NULL; obj = it.Next()) {
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
3137 object->ShortPrint(); 3138 object->ShortPrint();
3138 PrintF("\n"); 3139 PrintF("\n");
3139 } 3140 }
3140 printf(" --------------------------------------\n"); 3141 printf(" --------------------------------------\n");
3141 printf(" Marked: %x, LiveCount: %x\n", mark_size, LiveBytes()); 3142 printf(" Marked: %x, LiveCount: %x\n", mark_size, LiveBytes());
3142 } 3143 }
3143 3144
3144 #endif // DEBUG 3145 #endif // DEBUG
3145 3146
3146 } } // namespace v8::internal 3147 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/safepoint-table.cc ('k') | src/stub-cache.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698