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

Side by Side Diff: src/ast.cc

Issue 1074009: Mark all loop conditions. (Closed)
Patch Set: Negate test to match previous (and correct) behavior. 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 | « src/ast.h ('k') | src/data-flow.cc » ('j') | src/data-flow.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2006-2008 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
11 // with the distribution. 11 // with the distribution.
(...skipping 698 matching lines...) Expand 10 before | Expand all | Expand 10 after
710 op_(other->op_), 710 op_(other->op_),
711 expression_(expression) {} 711 expression_(expression) {}
712 712
713 713
714 CompareOperation::CompareOperation(CompareOperation* other, 714 CompareOperation::CompareOperation(CompareOperation* other,
715 Expression* left, 715 Expression* left,
716 Expression* right) 716 Expression* right)
717 : Expression(other), 717 : Expression(other),
718 op_(other->op_), 718 op_(other->op_),
719 left_(left), 719 left_(left),
720 right_(right), 720 right_(right) {}
721 is_for_loop_condition_(other->is_for_loop_condition_) {}
722 721
723 722
724 Expression* CopyAstVisitor::DeepCopyExpr(Expression* expr) { 723 Expression* CopyAstVisitor::DeepCopyExpr(Expression* expr) {
725 expr_ = NULL; 724 expr_ = NULL;
726 if (expr != NULL) Visit(expr); 725 if (expr != NULL) Visit(expr);
727 return expr_; 726 return expr_;
728 } 727 }
729 728
730 729
731 Statement* CopyAstVisitor::DeepCopyStmt(Statement* stmt) { 730 Statement* CopyAstVisitor::DeepCopyStmt(Statement* stmt) {
(...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after
970 SetStackOverflow(); 969 SetStackOverflow();
971 } 970 }
972 971
973 972
974 void CopyAstVisitor::VisitDeclaration(Declaration* decl) { 973 void CopyAstVisitor::VisitDeclaration(Declaration* decl) {
975 UNREACHABLE(); 974 UNREACHABLE();
976 } 975 }
977 976
978 977
979 } } // namespace v8::internal 978 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/ast.h ('k') | src/data-flow.cc » ('j') | src/data-flow.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698