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_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 1071 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1082 | 1082 |
1083 // Implement sloppy block-scoped functions, ES2015 Annex B 3.3 | 1083 // Implement sloppy block-scoped functions, ES2015 Annex B 3.3 |
1084 void InsertSloppyBlockFunctionVarBindings(DeclarationScope* scope, | 1084 void InsertSloppyBlockFunctionVarBindings(DeclarationScope* scope, |
1085 Scope* complex_params_scope, | 1085 Scope* complex_params_scope, |
1086 bool* ok); | 1086 bool* ok); |
1087 | 1087 |
1088 static InitializationFlag DefaultInitializationFlag(VariableMode mode); | 1088 static InitializationFlag DefaultInitializationFlag(VariableMode mode); |
1089 VariableProxy* NewUnresolved(const AstRawString* name, VariableMode mode); | 1089 VariableProxy* NewUnresolved(const AstRawString* name, VariableMode mode); |
1090 Variable* Declare(Declaration* declaration, | 1090 Variable* Declare(Declaration* declaration, |
1091 DeclarationDescriptor::Kind declaration_kind, | 1091 DeclarationDescriptor::Kind declaration_kind, |
1092 InitializationFlag init, bool* ok, | 1092 VariableMode mode, InitializationFlag init, bool* ok, |
1093 Scope* declaration_scope = nullptr); | 1093 Scope* declaration_scope = nullptr); |
1094 Declaration* DeclareVariable(const AstRawString* name, VariableMode mode, | 1094 Declaration* DeclareVariable(const AstRawString* name, VariableMode mode, |
1095 int pos, bool* ok); | 1095 int pos, bool* ok); |
1096 Declaration* DeclareVariable(const AstRawString* name, VariableMode mode, | 1096 Declaration* DeclareVariable(const AstRawString* name, VariableMode mode, |
1097 InitializationFlag init, int pos, bool* ok); | 1097 InitializationFlag init, int pos, bool* ok); |
1098 | 1098 |
1099 bool TargetStackContainsLabel(const AstRawString* label); | 1099 bool TargetStackContainsLabel(const AstRawString* label); |
1100 BreakableStatement* LookupBreakTarget(const AstRawString* label, bool* ok); | 1100 BreakableStatement* LookupBreakTarget(const AstRawString* label, bool* ok); |
1101 IterationStatement* LookupContinueTarget(const AstRawString* label, bool* ok); | 1101 IterationStatement* LookupContinueTarget(const AstRawString* label, bool* ok); |
1102 | 1102 |
(...skipping 270 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1373 | 1373 |
1374 DoExpression* ParserTraits::ParseDoExpression(bool* ok) { | 1374 DoExpression* ParserTraits::ParseDoExpression(bool* ok) { |
1375 return parser_->ParseDoExpression(ok); | 1375 return parser_->ParseDoExpression(ok); |
1376 } | 1376 } |
1377 | 1377 |
1378 | 1378 |
1379 } // namespace internal | 1379 } // namespace internal |
1380 } // namespace v8 | 1380 } // namespace v8 |
1381 | 1381 |
1382 #endif // V8_PARSING_PARSER_H_ | 1382 #endif // V8_PARSING_PARSER_H_ |
OLD | NEW |