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

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

Issue 1332873003: Implement sloppy-mode block-defined functions (Annex B 3.3) (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Improve type clarity Created 5 years, 3 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/ast-literal-reindexer.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 72
73 73
74 void AstExpressionVisitor::VisitExpressionStatement(ExpressionStatement* stmt) { 74 void AstExpressionVisitor::VisitExpressionStatement(ExpressionStatement* stmt) {
75 RECURSE(Visit(stmt->expression())); 75 RECURSE(Visit(stmt->expression()));
76 } 76 }
77 77
78 78
79 void AstExpressionVisitor::VisitEmptyStatement(EmptyStatement* stmt) {} 79 void AstExpressionVisitor::VisitEmptyStatement(EmptyStatement* stmt) {}
80 80
81 81
82 void AstExpressionVisitor::VisitSloppyBlockFunctionStatement(
83 SloppyBlockFunctionStatement* stmt) {
84 RECURSE(Visit(stmt->statement()));
85 }
86
87
82 void AstExpressionVisitor::VisitIfStatement(IfStatement* stmt) { 88 void AstExpressionVisitor::VisitIfStatement(IfStatement* stmt) {
83 RECURSE(Visit(stmt->condition())); 89 RECURSE(Visit(stmt->condition()));
84 RECURSE(Visit(stmt->then_statement())); 90 RECURSE(Visit(stmt->then_statement()));
85 RECURSE(Visit(stmt->else_statement())); 91 RECURSE(Visit(stmt->else_statement()));
86 } 92 }
87 93
88 94
89 void AstExpressionVisitor::VisitContinueStatement(ContinueStatement* stmt) {} 95 void AstExpressionVisitor::VisitContinueStatement(ContinueStatement* stmt) {}
90 96
91 97
(...skipping 249 matching lines...) Expand 10 before | Expand all | Expand 10 after
341 347
342 void AstExpressionVisitor::VisitSuperPropertyReference( 348 void AstExpressionVisitor::VisitSuperPropertyReference(
343 SuperPropertyReference* expr) {} 349 SuperPropertyReference* expr) {}
344 350
345 351
346 void AstExpressionVisitor::VisitSuperCallReference(SuperCallReference* expr) {} 352 void AstExpressionVisitor::VisitSuperCallReference(SuperCallReference* expr) {}
347 } 353 }
348 354
349 355
350 } // namespace v8::internal 356 } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/ast.h ('k') | src/ast-literal-reindexer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698