OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |