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

Side by Side Diff: src/snapshot/serializer.cc

Issue 1782293002: S390: Printf format specifier for size_t (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 9 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/gc-idle-time-handler.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 2016 the V8 project authors. All rights reserved. 1 // Copyright 2016 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/snapshot/serializer.h" 5 #include "src/snapshot/serializer.h"
6 6
7 #include "src/macro-assembler.h" 7 #include "src/macro-assembler.h"
8 #include "src/snapshot/natives.h" 8 #include "src/snapshot/natives.h"
9 9
10 namespace v8 { 10 namespace v8 {
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 if (!FLAG_serialization_statistics) return; 64 if (!FLAG_serialization_statistics) return;
65 PrintF("%s:\n", name); 65 PrintF("%s:\n", name);
66 PrintF(" Spaces (bytes):\n"); 66 PrintF(" Spaces (bytes):\n");
67 for (int space = 0; space < kNumberOfSpaces; space++) { 67 for (int space = 0; space < kNumberOfSpaces; space++) {
68 PrintF("%16s", AllocationSpaceName(static_cast<AllocationSpace>(space))); 68 PrintF("%16s", AllocationSpaceName(static_cast<AllocationSpace>(space)));
69 } 69 }
70 PrintF("\n"); 70 PrintF("\n");
71 for (int space = 0; space < kNumberOfPreallocatedSpaces; space++) { 71 for (int space = 0; space < kNumberOfPreallocatedSpaces; space++) {
72 size_t s = pending_chunk_[space]; 72 size_t s = pending_chunk_[space];
73 for (uint32_t chunk_size : completed_chunks_[space]) s += chunk_size; 73 for (uint32_t chunk_size : completed_chunks_[space]) s += chunk_size;
74 PrintF("%16" V8_PTR_PREFIX "d", s); 74 PrintF("%16" V8_SIZET_PREFIX V8_PTR_PREFIX "d", s);
75 } 75 }
76 PrintF("%16d\n", large_objects_total_size_); 76 PrintF("%16d\n", large_objects_total_size_);
77 #ifdef OBJECT_PRINT 77 #ifdef OBJECT_PRINT
78 PrintF(" Instance types (count and bytes):\n"); 78 PrintF(" Instance types (count and bytes):\n");
79 #define PRINT_INSTANCE_TYPE(Name) \ 79 #define PRINT_INSTANCE_TYPE(Name) \
80 if (instance_type_count_[Name]) { \ 80 if (instance_type_count_[Name]) { \
81 PrintF("%10d %10" V8_PTR_PREFIX "d %s\n", instance_type_count_[Name], \ 81 PrintF("%10d %10" V8_SIZET_PREFIX V8_PTR_PREFIX "d %s\n", \
82 instance_type_size_[Name], #Name); \ 82 instance_type_count_[Name], instance_type_size_[Name], #Name); \
83 } 83 }
84 INSTANCE_TYPE_LIST(PRINT_INSTANCE_TYPE) 84 INSTANCE_TYPE_LIST(PRINT_INSTANCE_TYPE)
85 #undef PRINT_INSTANCE_TYPE 85 #undef PRINT_INSTANCE_TYPE
86 PrintF("\n"); 86 PrintF("\n");
87 #endif // OBJECT_PRINT 87 #endif // OBJECT_PRINT
88 } 88 }
89 89
90 void Serializer::SerializeDeferredObjects() { 90 void Serializer::SerializeDeferredObjects() {
91 while (deferred_objects_.length() > 0) { 91 while (deferred_objects_.length() > 0) {
92 HeapObject* obj = deferred_objects_.RemoveLast(); 92 HeapObject* obj = deferred_objects_.RemoveLast();
(...skipping 667 matching lines...) Expand 10 before | Expand all | Expand 10 after
760 if (to_skip != 0 && return_skip == kIgnoringReturn) { 760 if (to_skip != 0 && return_skip == kIgnoringReturn) {
761 sink_->Put(kSkip, "Skip"); 761 sink_->Put(kSkip, "Skip");
762 sink_->PutInt(to_skip, "SkipDistance"); 762 sink_->PutInt(to_skip, "SkipDistance");
763 to_skip = 0; 763 to_skip = 0;
764 } 764 }
765 return to_skip; 765 return to_skip;
766 } 766 }
767 767
768 } // namespace internal 768 } // namespace internal
769 } // namespace v8 769 } // namespace v8
OLDNEW
« no previous file with comments | « src/heap/gc-idle-time-handler.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698