| Index: src/log.cc
|
| ===================================================================
|
| --- src/log.cc (revision 3890)
|
| +++ src/log.cc (working copy)
|
| @@ -1261,7 +1261,9 @@
|
| case Code::FUNCTION:
|
| return; // We log this later using LogCompiledFunctions.
|
| case Code::STUB:
|
| - description = CodeStub::MajorName(code_object->major_key());
|
| + description = CodeStub::MajorName(code_object->major_key(), true);
|
| + if (description == NULL)
|
| + description = "A stub from the snapshot";
|
| tag = Logger::STUB_TAG;
|
| break;
|
| case Code::BUILTIN:
|
| @@ -1294,6 +1296,15 @@
|
| }
|
|
|
|
|
| +void Logger::LogCodeObjects() {
|
| + AssertNoAllocation no_alloc;
|
| + HeapIterator iterator;
|
| + for (HeapObject* obj = iterator.next(); obj != NULL; obj = iterator.next()) {
|
| + if (obj->IsCode()) LogCodeObject(obj);
|
| + }
|
| +}
|
| +
|
| +
|
| void Logger::LogCompiledFunctions() {
|
| HandleScope scope;
|
| const int compiled_funcs_count = EnumerateCompiledFunctions(NULL);
|
|
|