| 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 #ifndef V8_PARSING_PARSER_BASE_H | 5 #ifndef V8_PARSING_PARSER_BASE_H |
| 6 #define V8_PARSING_PARSER_BASE_H | 6 #define V8_PARSING_PARSER_BASE_H |
| 7 | 7 |
| 8 #include "src/ast/scopes.h" | 8 #include "src/ast/scopes.h" |
| 9 #include "src/bailout-reason.h" | 9 #include "src/bailout-reason.h" |
| 10 #include "src/base/hashmap.h" | 10 #include "src/base/hashmap.h" |
| (...skipping 623 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 634 | 634 |
| 635 DeclarationScope* NewScriptScope() const { | 635 DeclarationScope* NewScriptScope() const { |
| 636 return new (zone()) DeclarationScope(zone()); | 636 return new (zone()) DeclarationScope(zone()); |
| 637 } | 637 } |
| 638 | 638 |
| 639 DeclarationScope* NewVarblockScope() const { | 639 DeclarationScope* NewVarblockScope() const { |
| 640 return new (zone()) DeclarationScope(zone(), scope(), BLOCK_SCOPE); | 640 return new (zone()) DeclarationScope(zone(), scope(), BLOCK_SCOPE); |
| 641 } | 641 } |
| 642 | 642 |
| 643 ModuleScope* NewModuleScope(DeclarationScope* parent) const { | 643 ModuleScope* NewModuleScope(DeclarationScope* parent) const { |
| 644 return new (zone()) ModuleScope(zone(), parent, ast_value_factory()); | 644 return new (zone()) ModuleScope(parent, ast_value_factory()); |
| 645 } | 645 } |
| 646 | 646 |
| 647 DeclarationScope* NewEvalScope(Scope* parent) const { | 647 DeclarationScope* NewEvalScope(Scope* parent) const { |
| 648 return new (zone()) DeclarationScope(zone(), parent, EVAL_SCOPE); | 648 return new (zone()) DeclarationScope(zone(), parent, EVAL_SCOPE); |
| 649 } | 649 } |
| 650 | 650 |
| 651 Scope* NewScope(ScopeType scope_type) const { | 651 Scope* NewScope(ScopeType scope_type) const { |
| 652 return NewScopeWithParent(scope(), scope_type); | 652 return NewScopeWithParent(scope(), scope_type); |
| 653 } | 653 } |
| 654 | 654 |
| (...skipping 3037 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3692 has_seen_constructor_ = true; | 3692 has_seen_constructor_ = true; |
| 3693 return; | 3693 return; |
| 3694 } | 3694 } |
| 3695 } | 3695 } |
| 3696 | 3696 |
| 3697 | 3697 |
| 3698 } // namespace internal | 3698 } // namespace internal |
| 3699 } // namespace v8 | 3699 } // namespace v8 |
| 3700 | 3700 |
| 3701 #endif // V8_PARSING_PARSER_BASE_H | 3701 #endif // V8_PARSING_PARSER_BASE_H |
| OLD | NEW |