• Home
  • Raw
  • Download

Lines Matching refs:stmt

220       Statement* stmt = stmts->at(i);  in VisitStatements()  local
221 ExpressionStatement* e = stmt->AsExpressionStatement(); in VisitStatements()
225 RECURSE(Visit(stmt)); in VisitStatements()
230 void VisitBlock(Block* stmt) { in VisitBlock() argument
231 if (stmt->statements()->length() == 1) { in VisitBlock()
233 stmt->statements()->at(0)->AsExpressionStatement(); in VisitBlock()
242 BlockVisitor visitor(this, stmt->AsBreakableStatement(), kExprBlock, in VisitBlock()
244 RECURSE(VisitStatements(stmt->statements())); in VisitBlock()
246 RECURSE(VisitStatements(stmt->statements())); in VisitBlock()
255 BlockVisitor(AsmWasmBuilderImpl* builder, BreakableStatement* stmt, in BlockVisitor() argument
258 builder_->breakable_blocks_.emplace_back(stmt, target_type); in BlockVisitor()
268 void VisitExpressionStatement(ExpressionStatement* stmt) { in VisitExpressionStatement() argument
269 VisitForEffect(stmt->expression()); in VisitExpressionStatement()
297 void VisitEmptyStatement(EmptyStatement* stmt) {} in VisitEmptyStatement() argument
303 void VisitIfStatement(IfStatement* stmt) { in VisitIfStatement() argument
305 RECURSE(Visit(stmt->condition())); in VisitIfStatement()
308 if (stmt->HasThenStatement()) { in VisitIfStatement()
309 RECURSE(Visit(stmt->then_statement())); in VisitIfStatement()
311 if (stmt->HasElseStatement()) { in VisitIfStatement()
313 RECURSE(Visit(stmt->else_statement())); in VisitIfStatement()
330 void VisitContinueStatement(ContinueStatement* stmt) { in VisitContinueStatement() argument
331 DoBreakOrContinue(stmt->target(), ContinueTarget); in VisitContinueStatement()
334 void VisitBreakStatement(BreakStatement* stmt) { in VisitBreakStatement() argument
335 DoBreakOrContinue(stmt->target(), BreakTarget); in VisitBreakStatement()
338 void VisitReturnStatement(ReturnStatement* stmt) { in VisitReturnStatement() argument
351 RECURSE(Visit(stmt->expression())); in VisitReturnStatement()
354 RECURSE(Visit(stmt->expression())); in VisitReturnStatement()
361 void VisitWithStatement(WithStatement* stmt) { UNREACHABLE(); } in VisitWithStatement() argument
429 void VisitSwitchStatement(SwitchStatement* stmt) { in VisitSwitchStatement() argument
430 VariableProxy* tag = stmt->tag()->AsVariableProxy(); in VisitSwitchStatement()
432 ZoneList<CaseClause*>* clauses = stmt->cases(); in VisitSwitchStatement()
437 BlockVisitor visitor(this, stmt->AsBreakableStatement(), kExprBlock, in VisitSwitchStatement()
482 void VisitDoWhileStatement(DoWhileStatement* stmt) { in VisitDoWhileStatement() argument
484 BlockVisitor block(this, stmt->AsBreakableStatement(), kExprBlock, in VisitDoWhileStatement()
486 BlockVisitor loop(this, stmt->AsBreakableStatement(), kExprLoop); in VisitDoWhileStatement()
488 BlockVisitor inner_block(this, stmt->AsBreakableStatement(), kExprBlock, in VisitDoWhileStatement()
490 RECURSE(Visit(stmt->body())); in VisitDoWhileStatement()
492 RECURSE(Visit(stmt->cond())); in VisitDoWhileStatement()
496 void VisitWhileStatement(WhileStatement* stmt) { in VisitWhileStatement() argument
498 BlockVisitor block(this, stmt->AsBreakableStatement(), kExprBlock, in VisitWhileStatement()
500 BlockVisitor loop(this, stmt->AsBreakableStatement(), kExprLoop, in VisitWhileStatement()
502 RECURSE(Visit(stmt->cond())); in VisitWhileStatement()
504 RECURSE(Visit(stmt->body())); in VisitWhileStatement()
508 void VisitForStatement(ForStatement* stmt) { in VisitForStatement() argument
510 if (stmt->init() != nullptr) { in VisitForStatement()
511 RECURSE(Visit(stmt->init())); in VisitForStatement()
513 BlockVisitor block(this, stmt->AsBreakableStatement(), kExprBlock, in VisitForStatement()
515 BlockVisitor loop(this, stmt->AsBreakableStatement(), kExprLoop, in VisitForStatement()
517 if (stmt->cond() != nullptr) { in VisitForStatement()
518 RECURSE(Visit(stmt->cond())); in VisitForStatement()
524 if (stmt->body() != nullptr) { in VisitForStatement()
525 RECURSE(Visit(stmt->body())); in VisitForStatement()
527 if (stmt->next() != nullptr) { in VisitForStatement()
528 RECURSE(Visit(stmt->next())); in VisitForStatement()
533 void VisitForInStatement(ForInStatement* stmt) { UNREACHABLE(); } in VisitForInStatement() argument
535 void VisitForOfStatement(ForOfStatement* stmt) { UNREACHABLE(); } in VisitForOfStatement() argument
537 void VisitTryCatchStatement(TryCatchStatement* stmt) { UNREACHABLE(); } in VisitTryCatchStatement() argument
539 void VisitTryFinallyStatement(TryFinallyStatement* stmt) { UNREACHABLE(); } in VisitTryFinallyStatement() argument
541 void VisitDebuggerStatement(DebuggerStatement* stmt) { UNREACHABLE(); } in VisitDebuggerStatement() argument