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

Side by Side Diff: src/profile-generator.cc

Issue 5242003: Fix compilation on Win after r5867. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 10 years 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/profile-generator.h ('k') | src/profile-generator-inl.h » ('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 2010 the V8 project authors. All rights reserved. 1 // Copyright 2010 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 852 matching lines...) Expand 10 before | Expand all | Expand 10 after
863 Type type, 863 Type type,
864 const char* name, 864 const char* name,
865 uint64_t id, 865 uint64_t id,
866 int self_size, 866 int self_size,
867 int children_count, 867 int children_count,
868 int retainers_count) { 868 int retainers_count) {
869 snapshot_ = snapshot; 869 snapshot_ = snapshot;
870 type_ = type; 870 type_ = type;
871 painted_ = kUnpainted; 871 painted_ = kUnpainted;
872 name_ = name; 872 name_ = name;
873 id_ = id; 873 *(reinterpret_cast<uint64_t*>(&id_)) = id;
874 self_size_ = self_size; 874 self_size_ = self_size;
875 retained_size_ = 0; 875 retained_size_ = 0;
876 children_count_ = children_count; 876 children_count_ = children_count;
877 retainers_count_ = retainers_count; 877 retainers_count_ = retainers_count;
878 dominator_ = NULL; 878 dominator_ = NULL;
879 } 879 }
880 880
881 881
882 void HeapEntry::SetNamedReference(HeapGraphEdge::Type type, 882 void HeapEntry::SetNamedReference(HeapGraphEdge::Type type,
883 int child_index, 883 int child_index,
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
945 void Apply(HeapEntry* entry) { } 945 void Apply(HeapEntry* entry) { }
946 }; 946 };
947 947
948 void HeapEntry::PaintAllReachable() { 948 void HeapEntry::PaintAllReachable() {
949 NullClass null; 949 NullClass null;
950 ApplyAndPaintAllReachable(&null); 950 ApplyAndPaintAllReachable(&null);
951 } 951 }
952 952
953 953
954 void HeapEntry::Print(int max_depth, int indent) { 954 void HeapEntry::Print(int max_depth, int indent) {
955 OS::Print("%6d %6d [%llu] ", self_size(), RetainedSize(false), id_); 955 OS::Print("%6d %6d [%llu] ", self_size(), RetainedSize(false), id());
956 if (type() != kString) { 956 if (type() != kString) {
957 OS::Print("%s %.40s\n", TypeAsString(), name_); 957 OS::Print("%s %.40s\n", TypeAsString(), name_);
958 } else { 958 } else {
959 OS::Print("\""); 959 OS::Print("\"");
960 const char* c = name_; 960 const char* c = name_;
961 while (*c && (c - name_) <= 40) { 961 while (*c && (c - name_) <= 40) {
962 if (*c != '\n') 962 if (*c != '\n')
963 OS::Print("%c", *c); 963 OS::Print("%c", *c);
964 else 964 else
965 OS::Print("\\n"); 965 OS::Print("\\n");
(...skipping 1789 matching lines...) Expand 10 before | Expand all | Expand 10 after
2755 void HeapSnapshotJSONSerializer::SortHashMap( 2755 void HeapSnapshotJSONSerializer::SortHashMap(
2756 HashMap* map, List<HashMap::Entry*>* sorted_entries) { 2756 HashMap* map, List<HashMap::Entry*>* sorted_entries) {
2757 for (HashMap::Entry* p = map->Start(); p != NULL; p = map->Next(p)) 2757 for (HashMap::Entry* p = map->Start(); p != NULL; p = map->Next(p))
2758 sorted_entries->Add(p); 2758 sorted_entries->Add(p);
2759 sorted_entries->Sort(SortUsingEntryValue); 2759 sorted_entries->Sort(SortUsingEntryValue);
2760 } 2760 }
2761 2761
2762 } } // namespace v8::internal 2762 } } // namespace v8::internal
2763 2763
2764 #endif // ENABLE_LOGGING_AND_PROFILING 2764 #endif // ENABLE_LOGGING_AND_PROFILING
OLDNEW
« no previous file with comments | « src/profile-generator.h ('k') | src/profile-generator-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698