diff options
author | Ryan Dahl <ry@tinyclouds.org> | 2010-06-15 14:52:00 -0700 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2010-06-15 14:52:00 -0700 |
commit | bc76624ec72792b23b4e951ef1ee8b95b454aa34 (patch) | |
tree | c5012b8980ec1b7e00be02b87da720a5e55abf7a /deps/v8/src/profile-generator-inl.h | |
parent | f3cd7bbe778bb69251637d49a33ddacc0973e973 (diff) | |
download | node-new-bc76624ec72792b23b4e951ef1ee8b95b454aa34.tar.gz |
Upgrade V8 to 2.2.17
Diffstat (limited to 'deps/v8/src/profile-generator-inl.h')
-rw-r--r-- | deps/v8/src/profile-generator-inl.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/deps/v8/src/profile-generator-inl.h b/deps/v8/src/profile-generator-inl.h index fecb70b775..ea9bc98767 100644 --- a/deps/v8/src/profile-generator-inl.h +++ b/deps/v8/src/profile-generator-inl.h @@ -130,6 +130,17 @@ CodeEntry* ProfileGenerator::EntryForVMState(StateTag tag) { } } + +template<class Visitor> +void HeapEntriesMap::Apply(Visitor* visitor) { + for (HashMap::Entry* p = entries_.Start(); + p != NULL; + p = entries_.Next(p)) { + if (!IsAlias(p->value)) + visitor->Apply(reinterpret_cast<HeapEntry*>(p->value)); + } +} + } } // namespace v8::internal #endif // ENABLE_LOGGING_AND_PROFILING |