| 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/objects-inl.h" |
| 9 #include "src/parsing/parse-info.h" | 10 #include "src/parsing/parse-info.h" |
| 10 #include "src/parsing/parser.h" | 11 #include "src/parsing/parser.h" |
| 11 | 12 |
| 12 namespace v8 { | 13 namespace v8 { |
| 13 namespace internal { | 14 namespace internal { |
| 14 | 15 |
| 15 class Processor final : public AstVisitor<Processor> { | 16 class Processor final : public AstVisitor<Processor> { |
| 16 public: | 17 public: |
| 17 Processor(Isolate* isolate, DeclarationScope* closure_scope, Variable* result, | 18 Processor(Isolate* isolate, DeclarationScope* closure_scope, Variable* result, |
| 18 AstValueFactory* ast_value_factory) | 19 AstValueFactory* ast_value_factory) |
| (...skipping 391 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 410 processor.SetResult(undef), expr->position()); | 411 processor.SetResult(undef), expr->position()); |
| 411 body->Add(completion, factory->zone()); | 412 body->Add(completion, factory->zone()); |
| 412 } | 413 } |
| 413 } | 414 } |
| 414 return true; | 415 return true; |
| 415 } | 416 } |
| 416 | 417 |
| 417 | 418 |
| 418 } // namespace internal | 419 } // namespace internal |
| 419 } // namespace v8 | 420 } // namespace v8 |
| OLD | NEW |