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

Side by Side Diff: src/ast-numbering.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-literal-reindexer.cc ('k') | src/compiler/ast-graph-builder.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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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/ast-numbering.h" 5 #include "src/ast-numbering.h"
6 6
7 #include "src/ast.h" 7 #include "src/ast.h"
8 #include "src/scopes.h" 8 #include "src/scopes.h"
9 9
10 namespace v8 { 10 namespace v8 {
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 DisableOptimization(kExportDeclaration); 106 DisableOptimization(kExportDeclaration);
107 VisitVariableProxy(node->proxy()); 107 VisitVariableProxy(node->proxy());
108 } 108 }
109 109
110 110
111 void AstNumberingVisitor::VisitEmptyStatement(EmptyStatement* node) { 111 void AstNumberingVisitor::VisitEmptyStatement(EmptyStatement* node) {
112 IncrementNodeCount(); 112 IncrementNodeCount();
113 } 113 }
114 114
115 115
116 void AstNumberingVisitor::VisitSloppyBlockFunctionStatement(
117 SloppyBlockFunctionStatement* node) {
118 IncrementNodeCount();
119 Visit(node->statement());
120 }
121
122
116 void AstNumberingVisitor::VisitContinueStatement(ContinueStatement* node) { 123 void AstNumberingVisitor::VisitContinueStatement(ContinueStatement* node) {
117 IncrementNodeCount(); 124 IncrementNodeCount();
118 } 125 }
119 126
120 127
121 void AstNumberingVisitor::VisitBreakStatement(BreakStatement* node) { 128 void AstNumberingVisitor::VisitBreakStatement(BreakStatement* node) {
122 IncrementNodeCount(); 129 IncrementNodeCount();
123 } 130 }
124 131
125 132
(...skipping 450 matching lines...) Expand 10 before | Expand all | Expand 10 after
576 } 583 }
577 584
578 585
579 bool AstNumbering::Renumber(Isolate* isolate, Zone* zone, 586 bool AstNumbering::Renumber(Isolate* isolate, Zone* zone,
580 FunctionLiteral* function) { 587 FunctionLiteral* function) {
581 AstNumberingVisitor visitor(isolate, zone); 588 AstNumberingVisitor visitor(isolate, zone);
582 return visitor.Renumber(function); 589 return visitor.Renumber(function);
583 } 590 }
584 } // namespace internal 591 } // namespace internal
585 } // namespace v8 592 } // namespace v8
OLDNEW
« no previous file with comments | « src/ast-literal-reindexer.cc ('k') | src/compiler/ast-graph-builder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698