Index: src/log.cc |
diff --git a/src/log.cc b/src/log.cc |
index 1281a863b64758158334bb98b1921d4dd9adb1bd..0e3f998bdf8b81113c9c60062cca62bc131fd903 100644 |
--- a/src/log.cc |
+++ b/src/log.cc |
@@ -1261,7 +1261,9 @@ void Logger::LogCodeObject(Object* object) { |
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: |