OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |