Index: src/codegen.cc |
diff --git a/src/codegen.cc b/src/codegen.cc |
index 2eebef663cfcd8d2eb443f2d054b18a69f1db940..b42645cd006c83f2045eb931367c4d45ff5bb920 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())); |
} |