Index: src/log.cc |
diff --git a/src/log.cc b/src/log.cc |
index 5de7429e5d244cfc69cc128add4fa1d3901d83b3..17506de3575415b00bed44d034f5178d7dd3ad27 100644 |
--- a/src/log.cc |
+++ b/src/log.cc |
@@ -1294,6 +1294,16 @@ void Logger::LogCodeObject(Object* object) { |
} |
+void Logger::LogCodeObjects() { |
+ AssertNoAllocation no_alloc; |
+ HeapIterator iterator; |
+ for (HeapObject* obj = iterator.next(); obj != NULL; obj = iterator.next()) { |
+ if (!obj->IsCode()) continue; |
+ LogCodeObject(obj); |
Erik Corry
2010/02/04 20:52:54
Seems like
if (obj->IsCode()) LogCodeObject(obj)
w
mnaganov (inactive)
2010/02/04 21:33:06
Indeed. Fixed.
|
+ } |
+} |
+ |
+ |
void Logger::LogCompiledFunctions() { |
HandleScope scope; |
const int compiled_funcs_count = EnumerateCompiledFunctions(NULL); |