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

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

Issue 2099623003: Annex B.3.3 semantics (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: typos Created 4 years, 5 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 | « no previous file | 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 1001 matching lines...) Expand 10 before | Expand all | Expand 10 after
1012 // The var declarations are hoisted to the function scope, but originate from 1012 // The var declarations are hoisted to the function scope, but originate from
1013 // a scope where the name has also been let bound or the var declaration is 1013 // a scope where the name has also been let bound or the var declaration is
1014 // hoisted over such a scope. 1014 // hoisted over such a scope.
1015 void CheckConflictingVarDeclarations(Scope* scope, bool* ok); 1015 void CheckConflictingVarDeclarations(Scope* scope, bool* ok);
1016 1016
1017 // Insert initializer statements for var-bindings shadowing parameter bindings 1017 // Insert initializer statements for var-bindings shadowing parameter bindings
1018 // from a non-simple parameter list. 1018 // from a non-simple parameter list.
1019 void InsertShadowingVarBindingInitializers(Block* block); 1019 void InsertShadowingVarBindingInitializers(Block* block);
1020 1020
1021 // Implement sloppy block-scoped functions, ES2015 Annex B 3.3 1021 // Implement sloppy block-scoped functions, ES2015 Annex B 3.3
1022 void InsertSloppyBlockFunctionVarBindings(Scope* scope, bool* ok); 1022 void InsertSloppyBlockFunctionVarBindings(Scope* scope,
1023 Scope* complex_params_scope,
1024 bool* ok);
1023 1025
1024 // Parser support 1026 // Parser support
1025 VariableProxy* NewUnresolved(const AstRawString* name, VariableMode mode); 1027 VariableProxy* NewUnresolved(const AstRawString* name, VariableMode mode);
1026 Variable* Declare(Declaration* declaration, 1028 Variable* Declare(Declaration* declaration,
1027 DeclarationDescriptor::Kind declaration_kind, bool resolve, 1029 DeclarationDescriptor::Kind declaration_kind, bool resolve,
1028 bool* ok, Scope* declaration_scope = nullptr); 1030 bool* ok, Scope* declaration_scope = nullptr);
1029 1031
1030 bool TargetStackContainsLabel(const AstRawString* label); 1032 bool TargetStackContainsLabel(const AstRawString* label);
1031 BreakableStatement* LookupBreakTarget(const AstRawString* label, bool* ok); 1033 BreakableStatement* LookupBreakTarget(const AstRawString* label, bool* ok);
1032 IterationStatement* LookupContinueTarget(const AstRawString* label, bool* ok); 1034 IterationStatement* LookupContinueTarget(const AstRawString* label, bool* ok);
(...skipping 262 matching lines...) Expand 10 before | Expand all | Expand 10 after
1295 1297
1296 DoExpression* ParserTraits::ParseDoExpression(bool* ok) { 1298 DoExpression* ParserTraits::ParseDoExpression(bool* ok) {
1297 return parser_->ParseDoExpression(ok); 1299 return parser_->ParseDoExpression(ok);
1298 } 1300 }
1299 1301
1300 1302
1301 } // namespace internal 1303 } // namespace internal
1302 } // namespace v8 1304 } // namespace v8
1303 1305
1304 #endif // V8_PARSING_PARSER_H_ 1306 #endif // V8_PARSING_PARSER_H_
OLDNEW
« no previous file with comments | « no previous file | src/parsing/parser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698