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

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

Issue 2210533002: [modules] Mark namespace variables as kCreatedInitialized. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@modules-VariableLocation
Patch Set: Rebase. Created 4 years, 4 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/ast/ast.h ('k') | src/parsing/parser.cc » ('j') | 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_H_ 5 #ifndef V8_PARSING_PARSER_H_
6 #define V8_PARSING_PARSER_H_ 6 #define V8_PARSING_PARSER_H_
7 7
8 #include "src/allocation.h" 8 #include "src/allocation.h"
9 #include "src/ast/ast.h" 9 #include "src/ast/ast.h"
10 #include "src/ast/scopes.h" 10 #include "src/ast/scopes.h"
(...skipping 1066 matching lines...) Expand 10 before | Expand all | Expand 10 after
1077 // Implement sloppy block-scoped functions, ES2015 Annex B 3.3 1077 // Implement sloppy block-scoped functions, ES2015 Annex B 3.3
1078 void InsertSloppyBlockFunctionVarBindings(DeclarationScope* scope, 1078 void InsertSloppyBlockFunctionVarBindings(DeclarationScope* scope,
1079 Scope* complex_params_scope, 1079 Scope* complex_params_scope,
1080 bool* ok); 1080 bool* ok);
1081 1081
1082 // Parser support 1082 // Parser support
1083 VariableProxy* NewUnresolved(const AstRawString* name, VariableMode mode); 1083 VariableProxy* NewUnresolved(const AstRawString* name, VariableMode mode);
1084 Variable* Declare(Declaration* declaration, 1084 Variable* Declare(Declaration* declaration,
1085 DeclarationDescriptor::Kind declaration_kind, bool resolve, 1085 DeclarationDescriptor::Kind declaration_kind, bool resolve,
1086 bool* ok, Scope* declaration_scope = nullptr); 1086 bool* ok, Scope* declaration_scope = nullptr);
1087 void DeclareImport(const AstRawString* local_name, int pos, bool* ok); 1087 void DeclareConstVariable(const AstRawString* name, InitializationFlag init,
1088 int pos, bool* ok);
1088 1089
1089 bool TargetStackContainsLabel(const AstRawString* label); 1090 bool TargetStackContainsLabel(const AstRawString* label);
1090 BreakableStatement* LookupBreakTarget(const AstRawString* label, bool* ok); 1091 BreakableStatement* LookupBreakTarget(const AstRawString* label, bool* ok);
1091 IterationStatement* LookupContinueTarget(const AstRawString* label, bool* ok); 1092 IterationStatement* LookupContinueTarget(const AstRawString* label, bool* ok);
1092 1093
1093 Statement* BuildAssertIsCoercible(Variable* var); 1094 Statement* BuildAssertIsCoercible(Variable* var);
1094 1095
1095 // Factory methods. 1096 // Factory methods.
1096 FunctionLiteral* DefaultConstructor(const AstRawString* name, bool call_super, 1097 FunctionLiteral* DefaultConstructor(const AstRawString* name, bool call_super,
1097 int pos, int end_pos, 1098 int pos, int end_pos,
(...skipping 265 matching lines...) Expand 10 before | Expand all | Expand 10 after
1363 1364
1364 DoExpression* ParserTraits::ParseDoExpression(bool* ok) { 1365 DoExpression* ParserTraits::ParseDoExpression(bool* ok) {
1365 return parser_->ParseDoExpression(ok); 1366 return parser_->ParseDoExpression(ok);
1366 } 1367 }
1367 1368
1368 1369
1369 } // namespace internal 1370 } // namespace internal
1370 } // namespace v8 1371 } // namespace v8
1371 1372
1372 #endif // V8_PARSING_PARSER_H_ 1373 #endif // V8_PARSING_PARSER_H_
OLDNEW
« no previous file with comments | « src/ast/ast.h ('k') | src/parsing/parser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698