Chromium Code Reviews| 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/ast/ast.h" | 8 #include "src/ast/ast.h" |
| 9 #include "src/ast/scopes.h" | 9 #include "src/ast/scopes.h" |
| 10 #include "src/base/compiler-specific.h" | 10 #include "src/base/compiler-specific.h" |
| (...skipping 450 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 461 | 461 |
| 462 // Implement sloppy block-scoped functions, ES2015 Annex B 3.3 | 462 // Implement sloppy block-scoped functions, ES2015 Annex B 3.3 |
| 463 void InsertSloppyBlockFunctionVarBindings(DeclarationScope* scope); | 463 void InsertSloppyBlockFunctionVarBindings(DeclarationScope* scope); |
| 464 | 464 |
| 465 VariableProxy* NewUnresolved(const AstRawString* name, int begin_pos, | 465 VariableProxy* NewUnresolved(const AstRawString* name, int begin_pos, |
| 466 VariableKind kind = NORMAL_VARIABLE); | 466 VariableKind kind = NORMAL_VARIABLE); |
| 467 VariableProxy* NewUnresolved(const AstRawString* name); | 467 VariableProxy* NewUnresolved(const AstRawString* name); |
| 468 Variable* Declare(Declaration* declaration, | 468 Variable* Declare(Declaration* declaration, |
| 469 DeclarationDescriptor::Kind declaration_kind, | 469 DeclarationDescriptor::Kind declaration_kind, |
| 470 VariableMode mode, InitializationFlag init, bool* ok, | 470 VariableMode mode, InitializationFlag init, bool* ok, |
| 471 Scope* declaration_scope = nullptr); | 471 Scope* declaration_scope = nullptr, int var_end_pos = -1); |
|
adamk
2016/10/27 10:32:49
kNoSourcePosition
| |
| 472 Declaration* DeclareVariable(const AstRawString* name, VariableMode mode, | 472 Declaration* DeclareVariable(const AstRawString* name, VariableMode mode, |
| 473 int pos, bool* ok); | 473 int pos, bool* ok); |
| 474 Declaration* DeclareVariable(const AstRawString* name, VariableMode mode, | 474 Declaration* DeclareVariable(const AstRawString* name, VariableMode mode, |
| 475 InitializationFlag init, int pos, bool* ok); | 475 InitializationFlag init, int pos, bool* ok); |
| 476 Declaration* DeclareModuleImport(const AstRawString* name, int pos, bool* ok); | 476 Declaration* DeclareModuleImport(const AstRawString* name, int pos, bool* ok); |
| 477 | 477 |
| 478 bool TargetStackContainsLabel(const AstRawString* label); | 478 bool TargetStackContainsLabel(const AstRawString* label); |
| 479 BreakableStatement* LookupBreakTarget(const AstRawString* label, bool* ok); | 479 BreakableStatement* LookupBreakTarget(const AstRawString* label, bool* ok); |
| 480 IterationStatement* LookupContinueTarget(const AstRawString* label, bool* ok); | 480 IterationStatement* LookupContinueTarget(const AstRawString* label, bool* ok); |
| 481 | 481 |
| (...skipping 659 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1141 | 1141 |
| 1142 private: | 1142 private: |
| 1143 ParserTarget** variable_; | 1143 ParserTarget** variable_; |
| 1144 ParserTarget* previous_; | 1144 ParserTarget* previous_; |
| 1145 }; | 1145 }; |
| 1146 | 1146 |
| 1147 } // namespace internal | 1147 } // namespace internal |
| 1148 } // namespace v8 | 1148 } // namespace v8 |
| 1149 | 1149 |
| 1150 #endif // V8_PARSING_PARSER_H_ | 1150 #endif // V8_PARSING_PARSER_H_ |
| OLD | NEW |