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

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

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.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 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 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 // To avoid confusing people, let's put all these entries into 115 // To avoid confusing people, let's put all these entries into
116 // one bucket. 116 // one bucket.
117 case OTHER: 117 case OTHER:
118 case EXTERNAL: 118 case EXTERNAL:
119 return program_entry_; 119 return program_entry_;
120 default: return NULL; 120 default: return NULL;
121 } 121 }
122 } 122 }
123 123
124 124
125 inline uint64_t HeapEntry::id() {
126 return *(reinterpret_cast<uint64_t*>(&id_));
127 }
128
129
125 template<class Visitor> 130 template<class Visitor>
126 void HeapEntriesMap::UpdateEntries(Visitor* visitor) { 131 void HeapEntriesMap::UpdateEntries(Visitor* visitor) {
127 for (HashMap::Entry* p = entries_.Start(); 132 for (HashMap::Entry* p = entries_.Start();
128 p != NULL; 133 p != NULL;
129 p = entries_.Next(p)) { 134 p = entries_.Next(p)) {
130 EntryInfo* entry_info = reinterpret_cast<EntryInfo*>(p->value); 135 EntryInfo* entry_info = reinterpret_cast<EntryInfo*>(p->value);
131 entry_info->entry = visitor->GetEntry( 136 entry_info->entry = visitor->GetEntry(
132 reinterpret_cast<HeapObject*>(p->key), 137 reinterpret_cast<HeapObject*>(p->key),
133 entry_info->children_count, 138 entry_info->children_count,
134 entry_info->retainers_count); 139 entry_info->retainers_count);
135 entry_info->children_count = 0; 140 entry_info->children_count = 0;
136 entry_info->retainers_count = 0; 141 entry_info->retainers_count = 0;
137 } 142 }
138 } 143 }
139 144
140 } } // namespace v8::internal 145 } } // namespace v8::internal
141 146
142 #endif // ENABLE_LOGGING_AND_PROFILING 147 #endif // ENABLE_LOGGING_AND_PROFILING
143 148
144 #endif // V8_PROFILE_GENERATOR_INL_H_ 149 #endif // V8_PROFILE_GENERATOR_INL_H_
OLDNEW
« no previous file with comments | « src/profile-generator.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698