Chromium Code Reviews| Index: src/profile-generator-inl.h |
| diff --git a/src/profile-generator-inl.h b/src/profile-generator-inl.h |
| index 70ca2537dbcdb272210cf78e9699357c1cc36d6e..71de2d1797be03e2b20354aaa40724f4cfac4410 100644 |
| --- a/src/profile-generator-inl.h |
| +++ b/src/profile-generator-inl.h |
| @@ -105,22 +105,6 @@ void CodeMap::DeleteCode(Address addr) { |
| } |
| -template<class Visitor> |
| -void HeapEntriesMap::UpdateEntries(Visitor* visitor) { |
| - for (HashMap::Entry* p = entries_.Start(); |
| - p != NULL; |
| - p = entries_.Next(p)) { |
| - EntryInfo* entry_info = reinterpret_cast<EntryInfo*>(p->value); |
| - entry_info->entry = visitor->GetEntry( |
| - reinterpret_cast<HeapObject*>(p->key), |
| - entry_info->children_count, |
| - entry_info->retainers_count); |
| - entry_info->children_count = 0; |
| - entry_info->retainers_count = 0; |
| - } |
| -} |
| - |
| - |
| CodeEntry* ProfileGenerator::EntryForVMState(StateTag tag) { |
| switch (tag) { |
| case GC: |
| @@ -137,6 +121,22 @@ CodeEntry* ProfileGenerator::EntryForVMState(StateTag tag) { |
| } |
| } |
| + |
| +template<class Visitor> |
| +void HeapEntriesMap::UpdateEntries(Visitor* visitor) { |
|
mnaganov (inactive)
2010/11/19 16:56:27
Just moved this code down to match classes declara
|
| + for (HashMap::Entry* p = entries_.Start(); |
| + p != NULL; |
| + p = entries_.Next(p)) { |
| + EntryInfo* entry_info = reinterpret_cast<EntryInfo*>(p->value); |
| + entry_info->entry = visitor->GetEntry( |
| + reinterpret_cast<HeapObject*>(p->key), |
| + entry_info->children_count, |
| + entry_info->retainers_count); |
| + entry_info->children_count = 0; |
| + entry_info->retainers_count = 0; |
| + } |
| +} |
| + |
| } } // namespace v8::internal |
| #endif // ENABLE_LOGGING_AND_PROFILING |