Lines Matching defs:stmt

81     Statement* stmt = stmts->at(i);
82 RECURSE(Visit(stmt));
83 if (stmt->IsJump()) break;
88 void AstTyper::VisitBlock(Block* stmt) {
89 RECURSE(VisitStatements(stmt->statements()));
90 if (stmt->labels() != NULL) {
96 void AstTyper::VisitExpressionStatement(ExpressionStatement* stmt) {
97 RECURSE(Visit(stmt->expression()));
101 void AstTyper::VisitEmptyStatement(EmptyStatement* stmt) {
105 void AstTyper::VisitIfStatement(IfStatement* stmt) {
107 if (!stmt->condition()->ToBooleanIsTrue() &&
108 !stmt->condition()->ToBooleanIsFalse()) {
109 stmt->condition()->RecordToBooleanTypeFeedback(oracle());
112 RECURSE(Visit(stmt->condition()));
114 RECURSE(Visit(stmt->then_statement()));
117 RECURSE(Visit(stmt->else_statement()));
124 void AstTyper::VisitContinueStatement(ContinueStatement* stmt) {
129 void AstTyper::VisitBreakStatement(BreakStatement* stmt) {
134 void AstTyper::VisitReturnStatement(ReturnStatement* stmt) {
137 stmt->expression()->RecordToBooleanTypeFeedback(oracle());
139 RECURSE(Visit(stmt->expression()));
144 void AstTyper::VisitWithStatement(WithStatement* stmt) {
145 RECURSE(stmt->expression());
146 RECURSE(stmt->statement());
150 void AstTyper::VisitSwitchStatement(SwitchStatement* stmt) {
151 RECURSE(Visit(stmt->tag()));
153 ZoneList<CaseClause*>* clauses = stmt->cases();
154 SwitchStatement::SwitchType switch_type = stmt->switch_type();
195 stmt->set_switch_type(switch_type);
214 void AstTyper::VisitDoWhileStatement(DoWhileStatement* stmt) {
216 if (!stmt->cond()->ToBooleanIsTrue()) {
217 stmt->cond()->RecordToBooleanTypeFeedback(oracle());
224 RECURSE(Visit(stmt->body()));
225 RECURSE(Visit(stmt->cond()));
230 void AstTyper::VisitWhileStatement(WhileStatement* stmt) {
232 if (!stmt->cond()->ToBooleanIsTrue()) {
233 stmt->cond()->RecordToBooleanTypeFeedback(oracle());
237 RECURSE(Visit(stmt->cond()));
238 RECURSE(Visit(stmt->body()));
243 void AstTyper::VisitForStatement(ForStatement* stmt) {
244 if (stmt->init() != NULL) {
245 RECURSE(Visit(stmt->init()));
248 if (stmt->cond() != NULL) {
250 stmt->cond()->RecordToBooleanTypeFeedback(oracle());
252 RECURSE(Visit(stmt->cond()));
254 RECURSE(Visit(stmt->body()));
255 if (stmt->next() != NULL) {
257 RECURSE(Visit(stmt->next()));
263 void AstTyper::VisitForInStatement(ForInStatement* stmt) {
265 stmt->set_for_in_type(static_cast<ForInStatement::ForInType>(
266 oracle()->ForInType(stmt->ForInFeedbackId())));
268 RECURSE(Visit(stmt->enumerable()));
270 RECURSE(Visit(stmt->body()));
275 void AstTyper::VisitForOfStatement(ForOfStatement* stmt) {
276 RECURSE(Visit(stmt->iterable()));
278 RECURSE(Visit(stmt->body()));
283 void AstTyper::VisitTryCatchStatement(TryCatchStatement* stmt) {
285 RECURSE(Visit(stmt->try_block()));
289 RECURSE(Visit(stmt->catch_block()));
298 void AstTyper::VisitTryFinallyStatement(TryFinallyStatement* stmt) {
299 RECURSE(Visit(stmt->try_block()));
301 RECURSE(Visit(stmt->finally_block()));
305 void AstTyper::VisitDebuggerStatement(DebuggerStatement* stmt) {
736 void AstTyper::VisitModuleStatement(ModuleStatement* stmt) {
737 RECURSE(Visit(stmt->body()));