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

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

Issue 9664042: Style fix after reapplying the patch r10996. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | src/profile-generator.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 // 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 699 matching lines...) Expand 10 before | Expand all | Expand 10 after
710 static const int kObjectIdStep = 2; 710 static const int kObjectIdStep = 2;
711 static const SnapshotObjectId kInternalRootObjectId; 711 static const SnapshotObjectId kInternalRootObjectId;
712 static const SnapshotObjectId kGcRootsObjectId; 712 static const SnapshotObjectId kGcRootsObjectId;
713 static const SnapshotObjectId kNativesRootObjectId; 713 static const SnapshotObjectId kNativesRootObjectId;
714 static const SnapshotObjectId kGcRootsFirstSubrootId; 714 static const SnapshotObjectId kGcRootsFirstSubrootId;
715 static const SnapshotObjectId kFirstAvailableObjectId; 715 static const SnapshotObjectId kFirstAvailableObjectId;
716 716
717 private: 717 private:
718 struct EntryInfo { 718 struct EntryInfo {
719 explicit EntryInfo(SnapshotObjectId id) : id(id), accessed(true) { } 719 explicit EntryInfo(SnapshotObjectId id) : id(id), accessed(true) { }
720 EntryInfo(SnapshotObjectId id, bool accessed) : id(id), accessed(accessed) { } 720 EntryInfo(SnapshotObjectId id, bool accessed)
721 : id(id),
722 accessed(accessed) { }
721 SnapshotObjectId id; 723 SnapshotObjectId id;
722 bool accessed; 724 bool accessed;
723 }; 725 };
724 726
725 void AddEntry(Address addr, SnapshotObjectId id); 727 void AddEntry(Address addr, SnapshotObjectId id);
726 SnapshotObjectId FindEntry(Address addr); 728 SnapshotObjectId FindEntry(Address addr);
727 void RemoveDeadEntries(); 729 void RemoveDeadEntries();
728 730
729 static bool AddressesMatch(void* key1, void* key2) { 731 static bool AddressesMatch(void* key1, void* key2) {
730 return key1 == key2; 732 return key1 == key2;
(...skipping 424 matching lines...) Expand 10 before | Expand all | Expand 10 after
1155 1157
1156 friend class HeapSnapshotJSONSerializerEnumerator; 1158 friend class HeapSnapshotJSONSerializerEnumerator;
1157 friend class HeapSnapshotJSONSerializerIterator; 1159 friend class HeapSnapshotJSONSerializerIterator;
1158 1160
1159 DISALLOW_COPY_AND_ASSIGN(HeapSnapshotJSONSerializer); 1161 DISALLOW_COPY_AND_ASSIGN(HeapSnapshotJSONSerializer);
1160 }; 1162 };
1161 1163
1162 } } // namespace v8::internal 1164 } } // namespace v8::internal
1163 1165
1164 #endif // V8_PROFILE_GENERATOR_H_ 1166 #endif // V8_PROFILE_GENERATOR_H_
OLDNEW
« no previous file with comments | « no previous file | src/profile-generator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698