| 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 500 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 511 InitializationFlag init, int pos, bool* ok); | 511 InitializationFlag init, int pos, bool* ok); |
| 512 | 512 |
| 513 bool TargetStackContainsLabel(const AstRawString* label); | 513 bool TargetStackContainsLabel(const AstRawString* label); |
| 514 BreakableStatement* LookupBreakTarget(const AstRawString* label, bool* ok); | 514 BreakableStatement* LookupBreakTarget(const AstRawString* label, bool* ok); |
| 515 IterationStatement* LookupContinueTarget(const AstRawString* label, bool* ok); | 515 IterationStatement* LookupContinueTarget(const AstRawString* label, bool* ok); |
| 516 | 516 |
| 517 Statement* BuildAssertIsCoercible(Variable* var); | 517 Statement* BuildAssertIsCoercible(Variable* var); |
| 518 | 518 |
| 519 // Factory methods. | 519 // Factory methods. |
| 520 FunctionLiteral* DefaultConstructor(const AstRawString* name, bool call_super, | 520 FunctionLiteral* DefaultConstructor(const AstRawString* name, bool call_super, |
| 521 int pos, int end_pos, | 521 int pos, int end_pos); |
| 522 LanguageMode language_mode); | |
| 523 | 522 |
| 524 // Skip over a lazy function, either using cached data if we have it, or | 523 // Skip over a lazy function, either using cached data if we have it, or |
| 525 // by parsing the function with PreParser. Consumes the ending }. | 524 // by parsing the function with PreParser. Consumes the ending }. |
| 526 // If may_abort == true, the (pre-)parser may decide to abort skipping | 525 // If may_abort == true, the (pre-)parser may decide to abort skipping |
| 527 // in order to force the function to be eagerly parsed, after all. | 526 // in order to force the function to be eagerly parsed, after all. |
| 528 LazyParsingResult SkipFunction( | 527 LazyParsingResult SkipFunction( |
| 529 FunctionKind kind, DeclarationScope* function_scope, int* num_parameters, | 528 FunctionKind kind, DeclarationScope* function_scope, int* num_parameters, |
| 530 int* function_length, bool* has_duplicate_parameters, | 529 int* function_length, bool* has_duplicate_parameters, |
| 531 int* materialized_literal_count, int* expected_property_count, | 530 int* materialized_literal_count, int* expected_property_count, |
| 532 bool is_inner_function, bool may_abort, bool* ok); | 531 bool is_inner_function, bool may_abort, bool* ok); |
| (...skipping 643 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1176 | 1175 |
| 1177 private: | 1176 private: |
| 1178 ParserTarget** variable_; | 1177 ParserTarget** variable_; |
| 1179 ParserTarget* previous_; | 1178 ParserTarget* previous_; |
| 1180 }; | 1179 }; |
| 1181 | 1180 |
| 1182 } // namespace internal | 1181 } // namespace internal |
| 1183 } // namespace v8 | 1182 } // namespace v8 |
| 1184 | 1183 |
| 1185 #endif // V8_PARSING_PARSER_H_ | 1184 #endif // V8_PARSING_PARSER_H_ |
| OLD | NEW |