Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(676)

Unified Diff: src/interpreter/interpreter.cc

Issue 1974623002: Remove AstNode::PrettyPrint, --print-source, and --print-builtin-source (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebased Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/flag-definitions.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/interpreter/interpreter.cc
diff --git a/src/interpreter/interpreter.cc b/src/interpreter/interpreter.cc
index 227bef538fafff8487362d8ff4af26aaba6ff7a4..3ca687bbf44e0bd123d28a65e30dd65338c955d2 100644
--- a/src/interpreter/interpreter.cc
+++ b/src/interpreter/interpreter.cc
@@ -137,7 +137,7 @@ bool Interpreter::MakeBytecode(CompilationInfo* info) {
TimerEventScope<TimerEventCompileIgnition> timer(info->isolate());
TRACE_EVENT0("v8", "V8.CompileIgnition");
- if (FLAG_print_bytecode || FLAG_print_source || FLAG_print_ast) {
+ if (FLAG_print_bytecode || FLAG_print_ast) {
OFStream os(stdout);
base::SmartArrayPointer<char> name = info->GetDebugName();
os << "[generating bytecode for function: " << info->GetDebugName().get()
@@ -146,14 +146,6 @@ bool Interpreter::MakeBytecode(CompilationInfo* info) {
}
#ifdef DEBUG
- if (info->parse_info() && FLAG_print_source) {
- OFStream os(stdout);
- os << "--- Source from AST ---" << std::endl
- << PrettyPrinter(info->isolate()).PrintProgram(info->literal())
- << std::endl
- << std::flush;
- }
-
if (info->parse_info() && FLAG_print_ast) {
OFStream os(stdout);
os << "--- AST ---" << std::endl
« no previous file with comments | « src/flag-definitions.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698