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

Side by Side Diff: runtime/vm/ast_printer.cc

Issue 2994863002: Reapply "Eliminate dependencies on assemblers and code stubs in precompiled runtime." (Closed)
Patch Set: Exclude references to disassembler in precompiled mode Created 3 years, 4 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 unified diff | Download patch
« no previous file with comments | « runtime/vm/ast.cc ('k') | runtime/vm/ast_transformer.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 #include "vm/ast_printer.h" 5 #include "vm/ast_printer.h"
6 6
7 #include "vm/handles.h" 7 #include "vm/handles.h"
8 #include "vm/log.h" 8 #include "vm/log.h"
9 #include "vm/object.h" 9 #include "vm/object.h"
10 #include "vm/os.h" 10 #include "vm/os.h"
11 #include "vm/parser.h" 11 #include "vm/parser.h"
12 12
13 #if !defined(PRODUCT) 13 #if !defined(PRODUCT) && !defined(DART_PRECOMPILED_RUNTIME)
14 14
15 namespace dart { 15 namespace dart {
16 16
17 AstPrinter::AstPrinter(bool log) 17 AstPrinter::AstPrinter(bool log)
18 : indent_(0), logger_(log ? Log::Current() : Log::NoOpLog()) {} 18 : indent_(0), logger_(log ? Log::Current() : Log::NoOpLog()) {}
19 19
20 AstPrinter::~AstPrinter() {} 20 AstPrinter::~AstPrinter() {}
21 21
22 void AstPrinter::VisitGenericAstNode(AstNode* node) { 22 void AstPrinter::VisitGenericAstNode(AstNode* node) {
23 logger_->Print("(%s ", node->Name()); 23 logger_->Print("(%s ", node->Name());
(...skipping 480 matching lines...) Expand 10 before | Expand all | Expand 10 after
504 ASSERT(node_sequence != NULL); 504 ASSERT(node_sequence != NULL);
505 const char* function_name = 505 const char* function_name =
506 parsed_function.function().ToFullyQualifiedCString(); 506 parsed_function.function().ToFullyQualifiedCString();
507 logger_->Print("Ast for function '%s' {\n", function_name); 507 logger_->Print("Ast for function '%s' {\n", function_name);
508 node_sequence->Visit(this); 508 node_sequence->Visit(this);
509 logger_->Print("}\n"); 509 logger_->Print("}\n");
510 } 510 }
511 511
512 } // namespace dart 512 } // namespace dart
513 513
514 #endif // !defined(PRODUCT) 514 #endif // !defined(PRODUCT) && !defined(DART_PRECOMPILED_RUNTIME)
OLDNEW
« no previous file with comments | « runtime/vm/ast.cc ('k') | runtime/vm/ast_transformer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698