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

Side by Side Diff: src/ast/prettyprinter.cc

Issue 1702063002: Non-pattern rewriting revisited (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix a bug I introduced when rebasing Created 4 years, 10 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 | « src/ast/ast-numbering.cc ('k') | src/compiler/ast-graph-builder.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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "src/ast/prettyprinter.h" 5 #include "src/ast/prettyprinter.h"
6 6
7 #include <stdarg.h> 7 #include <stdarg.h>
8 8
9 #include "src/ast/ast-value-factory.h" 9 #include "src/ast/ast-value-factory.h"
10 #include "src/ast/scopes.h" 10 #include "src/ast/scopes.h"
(...skipping 394 matching lines...) Expand 10 before | Expand all | Expand 10 after
405 405
406 406
407 void CallPrinter::VisitSuperPropertyReference(SuperPropertyReference* node) {} 407 void CallPrinter::VisitSuperPropertyReference(SuperPropertyReference* node) {}
408 408
409 409
410 void CallPrinter::VisitSuperCallReference(SuperCallReference* node) { 410 void CallPrinter::VisitSuperCallReference(SuperCallReference* node) {
411 Print("super"); 411 Print("super");
412 } 412 }
413 413
414 414
415 void CallPrinter::VisitRewritableAssignmentExpression( 415 void CallPrinter::VisitRewritableExpression(RewritableExpression* node) {
416 RewritableAssignmentExpression* node) {
417 Find(node->expression()); 416 Find(node->expression());
418 } 417 }
419 418
420 419
421 void CallPrinter::FindStatements(ZoneList<Statement*>* statements) { 420 void CallPrinter::FindStatements(ZoneList<Statement*>* statements) {
422 if (statements == NULL) return; 421 if (statements == NULL) return;
423 for (int i = 0; i < statements->length(); i++) { 422 for (int i = 0; i < statements->length(); i++) {
424 Find(statements->at(i)); 423 Find(statements->at(i));
425 } 424 }
426 } 425 }
(...skipping 495 matching lines...) Expand 10 before | Expand all | Expand 10 after
922 void PrettyPrinter::VisitSuperPropertyReference(SuperPropertyReference* node) { 921 void PrettyPrinter::VisitSuperPropertyReference(SuperPropertyReference* node) {
923 Print("<super-property-reference>"); 922 Print("<super-property-reference>");
924 } 923 }
925 924
926 925
927 void PrettyPrinter::VisitSuperCallReference(SuperCallReference* node) { 926 void PrettyPrinter::VisitSuperCallReference(SuperCallReference* node) {
928 Print("<super-call-reference>"); 927 Print("<super-call-reference>");
929 } 928 }
930 929
931 930
932 void PrettyPrinter::VisitRewritableAssignmentExpression( 931 void PrettyPrinter::VisitRewritableExpression(RewritableExpression* node) {
933 RewritableAssignmentExpression* node) {
934 Visit(node->expression()); 932 Visit(node->expression());
935 } 933 }
936 934
937 935
938 const char* PrettyPrinter::Print(AstNode* node) { 936 const char* PrettyPrinter::Print(AstNode* node) {
939 Init(); 937 Init();
940 Visit(node); 938 Visit(node);
941 return output_; 939 return output_;
942 } 940 }
943 941
(...skipping 754 matching lines...) Expand 10 before | Expand all | Expand 10 after
1698 void AstPrinter::VisitSuperPropertyReference(SuperPropertyReference* node) { 1696 void AstPrinter::VisitSuperPropertyReference(SuperPropertyReference* node) {
1699 IndentedScope indent(this, "SUPER-PROPERTY-REFERENCE", node->position()); 1697 IndentedScope indent(this, "SUPER-PROPERTY-REFERENCE", node->position());
1700 } 1698 }
1701 1699
1702 1700
1703 void AstPrinter::VisitSuperCallReference(SuperCallReference* node) { 1701 void AstPrinter::VisitSuperCallReference(SuperCallReference* node) {
1704 IndentedScope indent(this, "SUPER-CALL-REFERENCE", node->position()); 1702 IndentedScope indent(this, "SUPER-CALL-REFERENCE", node->position());
1705 } 1703 }
1706 1704
1707 1705
1708 void AstPrinter::VisitRewritableAssignmentExpression( 1706 void AstPrinter::VisitRewritableExpression(RewritableExpression* node) {
1709 RewritableAssignmentExpression* node) {
1710 Visit(node->expression()); 1707 Visit(node->expression());
1711 } 1708 }
1712 1709
1713 1710
1714 #endif // DEBUG 1711 #endif // DEBUG
1715 1712
1716 } // namespace internal 1713 } // namespace internal
1717 } // namespace v8 1714 } // namespace v8
OLDNEW
« no previous file with comments | « src/ast/ast-numbering.cc ('k') | src/compiler/ast-graph-builder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698