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

Side by Side Diff: src/parsing/parser-base.h

Issue 2275943005: [modules] Minor refactorings in scopes and scopeinfos. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@modules-serialize-entry
Patch Set: Rebase. Created 4 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/objects.h ('k') | no next file » | 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 #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
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
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
OLDNEW
« no previous file with comments | « src/objects.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698