| OLD | NEW |
| 1 // Copyright 2015 the V8 project authors. All rights reserved. | 1 // Copyright 2015 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/v8.h" | 5 #include "src/v8.h" |
| 6 | 6 |
| 7 #include "src/ast-expression-visitor.h" | 7 #include "src/ast-expression-visitor.h" |
| 8 | 8 |
| 9 #include "src/ast.h" | 9 #include "src/ast.h" |
| 10 #include "src/codegen.h" | 10 #include "src/codegen.h" |
| (...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 189 VisitExpression(expr); | 189 VisitExpression(expr); |
| 190 RECURSE_EXPRESSION(VisitDeclarations(scope->declarations())); | 190 RECURSE_EXPRESSION(VisitDeclarations(scope->declarations())); |
| 191 RECURSE_EXPRESSION(VisitStatements(expr->body())); | 191 RECURSE_EXPRESSION(VisitStatements(expr->body())); |
| 192 } | 192 } |
| 193 | 193 |
| 194 | 194 |
| 195 void AstExpressionVisitor::VisitNativeFunctionLiteral( | 195 void AstExpressionVisitor::VisitNativeFunctionLiteral( |
| 196 NativeFunctionLiteral* expr) {} | 196 NativeFunctionLiteral* expr) {} |
| 197 | 197 |
| 198 | 198 |
| 199 void AstExpressionVisitor::VisitDoExpression(DoExpression* expr) { |
| 200 RECURSE(VisitStatements(expr->statements())); |
| 201 } |
| 202 |
| 203 |
| 199 void AstExpressionVisitor::VisitConditional(Conditional* expr) { | 204 void AstExpressionVisitor::VisitConditional(Conditional* expr) { |
| 200 RECURSE(Visit(expr->condition())); | 205 RECURSE(Visit(expr->condition())); |
| 201 RECURSE(Visit(expr->then_expression())); | 206 RECURSE(Visit(expr->then_expression())); |
| 202 RECURSE(Visit(expr->else_expression())); | 207 RECURSE(Visit(expr->else_expression())); |
| 203 } | 208 } |
| 204 | 209 |
| 205 | 210 |
| 206 void AstExpressionVisitor::VisitVariableProxy(VariableProxy* expr) { | 211 void AstExpressionVisitor::VisitVariableProxy(VariableProxy* expr) { |
| 207 VisitExpression(expr); | 212 VisitExpression(expr); |
| 208 } | 213 } |
| (...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 347 | 352 |
| 348 void AstExpressionVisitor::VisitSuperPropertyReference( | 353 void AstExpressionVisitor::VisitSuperPropertyReference( |
| 349 SuperPropertyReference* expr) {} | 354 SuperPropertyReference* expr) {} |
| 350 | 355 |
| 351 | 356 |
| 352 void AstExpressionVisitor::VisitSuperCallReference(SuperCallReference* expr) {} | 357 void AstExpressionVisitor::VisitSuperCallReference(SuperCallReference* expr) {} |
| 353 | 358 |
| 354 | 359 |
| 355 } // namespace internal | 360 } // namespace internal |
| 356 } // namespace v8 | 361 } // namespace v8 |
| OLD | NEW |