Index: src/codegen.cc |
diff --git a/src/codegen.cc b/src/codegen.cc |
index 4597ae27669a4954ea1d7c841497dec6be0142af..2c0bfba1ccefae81c44309c5c85515f41d8ff44a 100644 |
--- a/src/codegen.cc |
+++ b/src/codegen.cc |
@@ -84,32 +84,24 @@ Comment::~Comment() { |
void CodeGenerator::MakeCodePrologue(CompilationInfo* info, const char* kind) { |
- bool print_source = false; |
bool print_ast = false; |
const char* ftype; |
if (info->isolate()->bootstrapper()->IsActive()) { |
- print_source = FLAG_print_builtin_source; |
print_ast = FLAG_print_builtin_ast; |
ftype = "builtin"; |
} else { |
- print_source = FLAG_print_source; |
print_ast = FLAG_print_ast; |
ftype = "user-defined"; |
} |
- if (FLAG_trace_codegen || print_source || print_ast) { |
+ if (FLAG_trace_codegen || print_ast) { |
base::SmartArrayPointer<char> name = info->GetDebugName(); |
PrintF("[generating %s code for %s function: %s]\n", kind, ftype, |
name.get()); |
} |
#ifdef DEBUG |
- if (info->parse_info() && print_source) { |
- PrintF("--- Source from AST ---\n%s\n", |
- PrettyPrinter(info->isolate()).PrintProgram(info->literal())); |
- } |
- |
if (info->parse_info() && print_ast) { |
PrintF("--- AST ---\n%s\n", |
AstPrinter(info->isolate()).PrintProgram(info->literal())); |