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

Side by Side Diff: src/ast-expression-visitor.cc

Issue 1399893002: [es7] implement |do| expressions proposal (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Disable CrankShaft Created 5 years, 2 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
OLDNEW
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
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(VisitBlock(expr->block()));
201 RECURSE(VisitVariableProxy(expr->result()));
202 }
203
204
199 void AstExpressionVisitor::VisitConditional(Conditional* expr) { 205 void AstExpressionVisitor::VisitConditional(Conditional* expr) {
200 RECURSE(Visit(expr->condition())); 206 RECURSE(Visit(expr->condition()));
201 RECURSE(Visit(expr->then_expression())); 207 RECURSE(Visit(expr->then_expression()));
202 RECURSE(Visit(expr->else_expression())); 208 RECURSE(Visit(expr->else_expression()));
203 } 209 }
204 210
205 211
206 void AstExpressionVisitor::VisitVariableProxy(VariableProxy* expr) { 212 void AstExpressionVisitor::VisitVariableProxy(VariableProxy* expr) {
207 VisitExpression(expr); 213 VisitExpression(expr);
208 } 214 }
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
347 353
348 void AstExpressionVisitor::VisitSuperPropertyReference( 354 void AstExpressionVisitor::VisitSuperPropertyReference(
349 SuperPropertyReference* expr) {} 355 SuperPropertyReference* expr) {}
350 356
351 357
352 void AstExpressionVisitor::VisitSuperCallReference(SuperCallReference* expr) {} 358 void AstExpressionVisitor::VisitSuperCallReference(SuperCallReference* expr) {}
353 359
354 360
355 } // namespace internal 361 } // namespace internal
356 } // namespace v8 362 } // namespace v8
OLDNEW
« src/ast.h ('K') | « src/ast.h ('k') | src/ast-literal-reindexer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698