| 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/parsing/rewriter.h" | 5 #include "src/parsing/rewriter.h" |
| 6 | 6 |
| 7 #include "src/ast/ast.h" | 7 #include "src/ast/ast.h" |
| 8 #include "src/ast/scopes.h" | 8 #include "src/ast/scopes.h" |
| 9 #include "src/parsing/parse-info.h" |
| 9 #include "src/parsing/parser.h" | 10 #include "src/parsing/parser.h" |
| 10 | 11 |
| 11 namespace v8 { | 12 namespace v8 { |
| 12 namespace internal { | 13 namespace internal { |
| 13 | 14 |
| 14 class Processor final : public AstVisitor<Processor> { | 15 class Processor final : public AstVisitor<Processor> { |
| 15 public: | 16 public: |
| 16 Processor(Isolate* isolate, DeclarationScope* closure_scope, Variable* result, | 17 Processor(Isolate* isolate, DeclarationScope* closure_scope, Variable* result, |
| 17 AstValueFactory* ast_value_factory) | 18 AstValueFactory* ast_value_factory) |
| 18 : result_(result), | 19 : result_(result), |
| (...skipping 368 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 387 processor.SetResult(undef), expr->position()); | 388 processor.SetResult(undef), expr->position()); |
| 388 body->Add(completion, factory->zone()); | 389 body->Add(completion, factory->zone()); |
| 389 } | 390 } |
| 390 } | 391 } |
| 391 return true; | 392 return true; |
| 392 } | 393 } |
| 393 | 394 |
| 394 | 395 |
| 395 } // namespace internal | 396 } // namespace internal |
| 396 } // namespace v8 | 397 } // namespace v8 |
| OLD | NEW |