| Index: src/codegen.cc
|
| diff --git a/src/codegen.cc b/src/codegen.cc
|
| index ceea7b9feabd6a7b2d8637144c1b2222cccd9dc3..3f651205ff88285c91cf2b98f2494d4dba853f28 100644
|
| --- a/src/codegen.cc
|
| +++ b/src/codegen.cc
|
| @@ -1,4 +1,4 @@
|
| -// Copyright 2011 the V8 project authors. All rights reserved.
|
| +// Copyright 2012 the V8 project authors. All rights reserved.
|
| // Redistribution and use in source and binary forms, with or without
|
| // modification, are permitted provided that the following conditions are
|
| // met:
|
| @@ -62,18 +62,15 @@ void CodeGenerator::MakeCodePrologue(CompilationInfo* info) {
|
| #ifdef DEBUG
|
| bool print_source = false;
|
| bool print_ast = false;
|
| - bool print_json_ast = false;
|
| const char* ftype;
|
|
|
| if (Isolate::Current()->bootstrapper()->IsActive()) {
|
| print_source = FLAG_print_builtin_source;
|
| print_ast = FLAG_print_builtin_ast;
|
| - print_json_ast = FLAG_print_builtin_json_ast;
|
| ftype = "builtin";
|
| } else {
|
| print_source = FLAG_print_source;
|
| print_ast = FLAG_print_ast;
|
| - print_json_ast = FLAG_print_json_ast;
|
| Vector<const char> filter = CStrVector(FLAG_hydrogen_filter);
|
| if (print_source && !filter.is_empty()) {
|
| print_source = info->function()->name()->IsEqualTo(filter);
|
| @@ -81,9 +78,6 @@ void CodeGenerator::MakeCodePrologue(CompilationInfo* info) {
|
| if (print_ast && !filter.is_empty()) {
|
| print_ast = info->function()->name()->IsEqualTo(filter);
|
| }
|
| - if (print_json_ast && !filter.is_empty()) {
|
| - print_json_ast = info->function()->name()->IsEqualTo(filter);
|
| - }
|
| ftype = "user-defined";
|
| }
|
|
|
| @@ -102,11 +96,6 @@ void CodeGenerator::MakeCodePrologue(CompilationInfo* info) {
|
| PrintF("--- AST ---\n%s\n",
|
| AstPrinter().PrintProgram(info->function()));
|
| }
|
| -
|
| - if (print_json_ast) {
|
| - JsonAstBuilder builder;
|
| - PrintF("%s", builder.BuildProgram(info->function()));
|
| - }
|
| #endif // DEBUG
|
| }
|
|
|
|
|