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

Side by Side Diff: src/rewriter.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/prettyprinter.cc ('k') | src/scopes.h » ('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/rewriter.h" 5 #include "src/rewriter.h"
6 6
7 #include "src/ast.h" 7 #include "src/ast.h"
8 #include "src/parser.h" 8 #include "src/parser.h"
9 #include "src/scopes.h" 9 #include "src/scopes.h"
10 10
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after
183 } 183 }
184 184
185 185
186 void Processor::VisitWithStatement(WithStatement* node) { 186 void Processor::VisitWithStatement(WithStatement* node) {
187 bool set_after_body = is_set_; 187 bool set_after_body = is_set_;
188 Visit(node->statement()); 188 Visit(node->statement());
189 is_set_ = is_set_ && set_after_body; 189 is_set_ = is_set_ && set_after_body;
190 } 190 }
191 191
192 192
193 void Processor::VisitSloppyBlockFunctionStatement(
194 SloppyBlockFunctionStatement* node) {
195 Visit(node->statement());
196 }
197
198
193 // Do nothing: 199 // Do nothing:
194 void Processor::VisitVariableDeclaration(VariableDeclaration* node) {} 200 void Processor::VisitVariableDeclaration(VariableDeclaration* node) {}
195 void Processor::VisitFunctionDeclaration(FunctionDeclaration* node) {} 201 void Processor::VisitFunctionDeclaration(FunctionDeclaration* node) {}
196 void Processor::VisitImportDeclaration(ImportDeclaration* node) {} 202 void Processor::VisitImportDeclaration(ImportDeclaration* node) {}
197 void Processor::VisitExportDeclaration(ExportDeclaration* node) {} 203 void Processor::VisitExportDeclaration(ExportDeclaration* node) {}
198 void Processor::VisitEmptyStatement(EmptyStatement* node) {} 204 void Processor::VisitEmptyStatement(EmptyStatement* node) {}
199 void Processor::VisitReturnStatement(ReturnStatement* node) {} 205 void Processor::VisitReturnStatement(ReturnStatement* node) {}
200 void Processor::VisitDebuggerStatement(DebuggerStatement* node) {} 206 void Processor::VisitDebuggerStatement(DebuggerStatement* node) {}
201 207
202 208
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
242 body->Add(result_statement, info->zone()); 248 body->Add(result_statement, info->zone());
243 } 249 }
244 } 250 }
245 251
246 return true; 252 return true;
247 } 253 }
248 254
249 255
250 } // namespace internal 256 } // namespace internal
251 } // namespace v8 257 } // namespace v8
OLDNEW
« no previous file with comments | « src/prettyprinter.cc ('k') | src/scopes.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698