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

Side by Side Diff: src/flow-graph.cc

Issue 1563001: Fix presubmit failure. (Closed)
Patch Set: Created 10 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2010 the V8 project authors. All rights reserved. 1 // Copyright 2010 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 613 matching lines...) Expand 10 before | Expand all | Expand 10 after
624 UNREACHABLE(); 624 UNREACHABLE();
625 } 625 }
626 626
627 627
628 void InstructionPrinter::VisitAssignment(Assignment* expr) { 628 void InstructionPrinter::VisitAssignment(Assignment* expr) {
629 Variable* var = expr->target()->AsVariableProxy()->AsVariable(); 629 Variable* var = expr->target()->AsVariableProxy()->AsVariable();
630 Property* prop = expr->target()->AsProperty(); 630 Property* prop = expr->target()->AsProperty();
631 631
632 // Print the left-hand side. 632 // Print the left-hand side.
633 Visit(expr->target()); 633 Visit(expr->target());
634 if (var == NULL && prop == NULL) return; // Throw reference error. 634 if (var == NULL && prop == NULL) return; // Throw reference error.
635 PrintF(" = "); 635 PrintF(" = ");
636 // For compound assignments, print the left-hand side again and the 636 // For compound assignments, print the left-hand side again and the
637 // corresponding binary operator. 637 // corresponding binary operator.
638 if (expr->is_compound()) { 638 if (expr->is_compound()) {
639 PrintSubexpression(expr->target()); 639 PrintSubexpression(expr->target());
640 PrintF(" %s ", Token::String(expr->binary_op())); 640 PrintF(" %s ", Token::String(expr->binary_op()));
641 } 641 }
642 642
643 // Print the right-hand side. 643 // Print the right-hand side.
644 PrintSubexpression(expr->value()); 644 PrintSubexpression(expr->value());
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
756 int number = 0; 756 int number = 0;
757 for (int i = postorder_.length() - 1; i >= 0; --i) { 757 for (int i = postorder_.length() - 1; i >= 0; --i) {
758 number = postorder_[i]->PrintAsText(number); 758 number = postorder_[i]->PrintAsText(number);
759 } 759 }
760 } 760 }
761 761
762 #endif // DEBUG 762 #endif // DEBUG
763 763
764 764
765 } } // namespace v8::internal 765 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698