| Index: src/codegen.cc
|
| diff --git a/src/codegen.cc b/src/codegen.cc
|
| index c8bdf687b844aedb5c4e3142687d5be87a9ed5b9..7112f36e68a1cb74695f924b1e7297155574dc3f 100644
|
| --- a/src/codegen.cc
|
| +++ b/src/codegen.cc
|
| @@ -76,7 +76,13 @@ void CodeGenerator::MakeCodePrologue(CompilationInfo* info) {
|
|
|
| if (FLAG_trace_codegen || print_source || print_ast) {
|
| PrintF("*** Generate code for %s function: ", ftype);
|
| - info->function()->name()->ShortPrint();
|
| + if (info->IsStub()) {
|
| + const char* name =
|
| + CodeStub::MajorName(info->code_stub()->MajorKey(), true);
|
| + PrintF("%s", name == NULL ? "<unknown>" : name);
|
| + } else {
|
| + info->function()->name()->ShortPrint();
|
| + }
|
| PrintF(" ***\n");
|
| }
|
|
|
|
|