diff --git a/src/codegen.cc b/src/codegen.cc index 2eebef663c..b42645cd00 100644 --- a/src/codegen.cc +++ b/src/codegen.cc @@ -86,12 +86,12 @@ void CodeGenerator::MakeCodePrologue(CompilationInfo* info) { PrintF(" ***\n"); } - if (print_source) { + if (!info->IsStub() && print_source) { PrintF("--- Source from AST ---\n%s\n", PrettyPrinter().PrintProgram(info->function())); } - if (print_ast) { + if (!info->IsStub() && print_ast) { PrintF("--- AST ---\n%s\n", AstPrinter().PrintProgram(info->function())); }