Searched refs:catch_info (Results 1 – 4 of 4) sorted by relevance
/external/v8/src/parsing/ |
D | parser.cc | 1681 void Parser::RewriteCatchPattern(CatchInfo* catch_info, bool* ok) { in RewriteCatchPattern() argument 1682 if (catch_info->name == nullptr) { in RewriteCatchPattern() 1683 DCHECK_NOT_NULL(catch_info->pattern); in RewriteCatchPattern() 1684 catch_info->name = ast_value_factory()->dot_catch_string(); in RewriteCatchPattern() 1686 catch_info->variable = catch_info->scope->DeclareLocal(catch_info->name, VAR); in RewriteCatchPattern() 1687 if (catch_info->pattern != nullptr) { in RewriteCatchPattern() 1692 descriptor.declaration_pos = catch_info->pattern->position(); in RewriteCatchPattern() 1693 descriptor.initialization_pos = catch_info->pattern->position(); in RewriteCatchPattern() 1699 catch_info->pattern, initializer_position, in RewriteCatchPattern() 1700 factory()->NewVariableProxy(catch_info->variable)); in RewriteCatchPattern() [all …]
|
D | preparser.h | 1072 V8_INLINE void RewriteCatchPattern(CatchInfo* catch_info, bool* ok) { 1074 if (catch_info->name.string_ != nullptr) { 1077 catch_info->scope->DeclareVariableName(catch_info->name.string_, LET); 1079 if (catch_info->pattern.variables_ != nullptr) { 1080 for (auto variable : *catch_info->pattern.variables_) { 1087 V8_INLINE void ValidateCatchBlock(const CatchInfo& catch_info, bool* ok) {} 1090 PreParserStatement finally_block, const CatchInfo& catch_info, int pos) {
|
D | parser-base.h | 5334 CatchInfo catch_info(this); in ParseTryStatement() 5345 catch_info.scope = NewScope(CATCH_SCOPE); in ParseTryStatement() 5346 catch_info.scope->set_start_position(scanner()->location().beg_pos); in ParseTryStatement() 5351 function_state_, &catch_info.tail_call_expressions); in ParseTryStatement() 5352 BlockState catch_block_state(&scope_, catch_info.scope); in ParseTryStatement() 5368 catch_info.name = in ParseTryStatement() 5372 catch_info.pattern = ParsePrimaryExpression(CHECK_OK); in ParseTryStatement() 5377 impl()->RewriteCatchPattern(&catch_info, CHECK_OK); in ParseTryStatement() 5378 if (!impl()->IsNullStatement(catch_info.init_block)) { in ParseTryStatement() 5379 catch_block->statements()->Add(catch_info.init_block, zone()); in ParseTryStatement() [all …]
|
D | parser.h | 343 void RewriteCatchPattern(CatchInfo* catch_info, bool* ok); 344 void ValidateCatchBlock(const CatchInfo& catch_info, bool* ok); 347 const CatchInfo& catch_info, int pos);
|