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

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

Issue 9592031: Eliminate IncrOpStaticFieldNode, replace a set of nodes. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 9 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 | Annotate | Revision Log
« no previous file with comments | « runtime/vm/ast.cc ('k') | runtime/vm/code_generator_ia32.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/object.h" 8 #include "vm/object.h"
9 #include "vm/os.h" 9 #include "vm/os.h"
10 #include "vm/parser.h" 10 #include "vm/parser.h"
(...skipping 240 matching lines...) Expand 10 before | Expand all | Expand 10 after
251 void AstPrinter::VisitIncrOpLocalNode(IncrOpLocalNode* node) { 251 void AstPrinter::VisitIncrOpLocalNode(IncrOpLocalNode* node) {
252 VisitGenericLocalNode(node, node->local()); 252 VisitGenericLocalNode(node, node->local());
253 } 253 }
254 254
255 255
256 void AstPrinter::VisitIncrOpInstanceFieldNode(IncrOpInstanceFieldNode* node) { 256 void AstPrinter::VisitIncrOpInstanceFieldNode(IncrOpInstanceFieldNode* node) {
257 VisitGenericAstNode(node); 257 VisitGenericAstNode(node);
258 } 258 }
259 259
260 260
261 void AstPrinter::VisitIncrOpStaticFieldNode(IncrOpStaticFieldNode* node) {
262 VisitGenericAstNode(node);
263 }
264
265
266 void AstPrinter::VisitIncrOpIndexedNode(IncrOpIndexedNode* node) { 261 void AstPrinter::VisitIncrOpIndexedNode(IncrOpIndexedNode* node) {
267 VisitGenericAstNode(node); 262 VisitGenericAstNode(node);
268 } 263 }
269 264
270 265
271 void AstPrinter::VisitInstanceCallNode(InstanceCallNode* node) { 266 void AstPrinter::VisitInstanceCallNode(InstanceCallNode* node) {
272 OS::Print("(%s '%s'(", node->Name(), node->function_name().ToCString()); 267 OS::Print("(%s '%s'(", node->Name(), node->function_name().ToCString());
273 node->VisitChildren(this); 268 node->VisitChildren(this);
274 OS::Print("))"); 269 OS::Print("))");
275 } 270 }
(...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after
497 ASSERT(node_sequence != NULL); 492 ASSERT(node_sequence != NULL);
498 AstPrinter ast_printer; 493 AstPrinter ast_printer;
499 const char* function_name = 494 const char* function_name =
500 parsed_function.function().ToFullyQualifiedCString(); 495 parsed_function.function().ToFullyQualifiedCString();
501 OS::Print("Ast for function '%s' {\n", function_name); 496 OS::Print("Ast for function '%s' {\n", function_name);
502 node_sequence->Visit(&ast_printer); 497 node_sequence->Visit(&ast_printer);
503 OS::Print("}\n"); 498 OS::Print("}\n");
504 } 499 }
505 500
506 } // namespace dart 501 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/ast.cc ('k') | runtime/vm/code_generator_ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698