Lines Matching refs:node
37 void CallPrinter::Find(AstNode* node, bool print) { in Find() argument
42 Visit(node); in Find()
47 Visit(node); in Find()
63 void CallPrinter::VisitBlock(Block* node) { in VisitBlock() argument
64 FindStatements(node->statements()); in VisitBlock()
68 void CallPrinter::VisitVariableDeclaration(VariableDeclaration* node) {} in VisitVariableDeclaration() argument
71 void CallPrinter::VisitFunctionDeclaration(FunctionDeclaration* node) {} in VisitFunctionDeclaration() argument
74 void CallPrinter::VisitExpressionStatement(ExpressionStatement* node) { in VisitExpressionStatement() argument
75 Find(node->expression()); in VisitExpressionStatement()
79 void CallPrinter::VisitEmptyStatement(EmptyStatement* node) {} in VisitEmptyStatement() argument
83 SloppyBlockFunctionStatement* node) { in VisitSloppyBlockFunctionStatement() argument
84 Find(node->statement()); in VisitSloppyBlockFunctionStatement()
88 void CallPrinter::VisitIfStatement(IfStatement* node) { in VisitIfStatement() argument
89 Find(node->condition()); in VisitIfStatement()
90 Find(node->then_statement()); in VisitIfStatement()
91 if (node->HasElseStatement()) { in VisitIfStatement()
92 Find(node->else_statement()); in VisitIfStatement()
97 void CallPrinter::VisitContinueStatement(ContinueStatement* node) {} in VisitContinueStatement() argument
100 void CallPrinter::VisitBreakStatement(BreakStatement* node) {} in VisitBreakStatement() argument
103 void CallPrinter::VisitReturnStatement(ReturnStatement* node) { in VisitReturnStatement() argument
104 Find(node->expression()); in VisitReturnStatement()
108 void CallPrinter::VisitWithStatement(WithStatement* node) { in VisitWithStatement() argument
109 Find(node->expression()); in VisitWithStatement()
110 Find(node->statement()); in VisitWithStatement()
114 void CallPrinter::VisitSwitchStatement(SwitchStatement* node) { in VisitSwitchStatement() argument
115 Find(node->tag()); in VisitSwitchStatement()
116 ZoneList<CaseClause*>* cases = node->cases(); in VisitSwitchStatement()
129 void CallPrinter::VisitDoWhileStatement(DoWhileStatement* node) { in VisitDoWhileStatement() argument
130 Find(node->body()); in VisitDoWhileStatement()
131 Find(node->cond()); in VisitDoWhileStatement()
135 void CallPrinter::VisitWhileStatement(WhileStatement* node) { in VisitWhileStatement() argument
136 Find(node->cond()); in VisitWhileStatement()
137 Find(node->body()); in VisitWhileStatement()
141 void CallPrinter::VisitForStatement(ForStatement* node) { in VisitForStatement() argument
142 if (node->init() != NULL) { in VisitForStatement()
143 Find(node->init()); in VisitForStatement()
145 if (node->cond() != NULL) Find(node->cond()); in VisitForStatement()
146 if (node->next() != NULL) Find(node->next()); in VisitForStatement()
147 Find(node->body()); in VisitForStatement()
151 void CallPrinter::VisitForInStatement(ForInStatement* node) { in VisitForInStatement() argument
152 Find(node->each()); in VisitForInStatement()
153 Find(node->enumerable()); in VisitForInStatement()
154 Find(node->body()); in VisitForInStatement()
158 void CallPrinter::VisitForOfStatement(ForOfStatement* node) { in VisitForOfStatement() argument
159 Find(node->assign_iterator()); in VisitForOfStatement()
160 Find(node->next_result()); in VisitForOfStatement()
161 Find(node->result_done()); in VisitForOfStatement()
162 Find(node->assign_each()); in VisitForOfStatement()
163 Find(node->body()); in VisitForOfStatement()
167 void CallPrinter::VisitTryCatchStatement(TryCatchStatement* node) { in VisitTryCatchStatement() argument
168 Find(node->try_block()); in VisitTryCatchStatement()
169 Find(node->catch_block()); in VisitTryCatchStatement()
173 void CallPrinter::VisitTryFinallyStatement(TryFinallyStatement* node) { in VisitTryFinallyStatement() argument
174 Find(node->try_block()); in VisitTryFinallyStatement()
175 Find(node->finally_block()); in VisitTryFinallyStatement()
179 void CallPrinter::VisitDebuggerStatement(DebuggerStatement* node) {} in VisitDebuggerStatement() argument
182 void CallPrinter::VisitFunctionLiteral(FunctionLiteral* node) { in VisitFunctionLiteral() argument
183 FindStatements(node->body()); in VisitFunctionLiteral()
187 void CallPrinter::VisitClassLiteral(ClassLiteral* node) { in VisitClassLiteral() argument
188 if (node->extends()) Find(node->extends()); in VisitClassLiteral()
189 for (int i = 0; i < node->properties()->length(); i++) { in VisitClassLiteral()
190 Find(node->properties()->at(i)->value()); in VisitClassLiteral()
195 void CallPrinter::VisitNativeFunctionLiteral(NativeFunctionLiteral* node) {} in VisitNativeFunctionLiteral() argument
198 void CallPrinter::VisitDoExpression(DoExpression* node) { Find(node->block()); } in VisitDoExpression() argument
201 void CallPrinter::VisitConditional(Conditional* node) { in VisitConditional() argument
202 Find(node->condition()); in VisitConditional()
203 Find(node->then_expression()); in VisitConditional()
204 Find(node->else_expression()); in VisitConditional()
208 void CallPrinter::VisitLiteral(Literal* node) { in VisitLiteral() argument
209 PrintLiteral(node->value(), true); in VisitLiteral()
213 void CallPrinter::VisitRegExpLiteral(RegExpLiteral* node) { in VisitRegExpLiteral() argument
215 PrintLiteral(node->pattern(), false); in VisitRegExpLiteral()
217 if (node->flags() & RegExp::kGlobal) Print("g"); in VisitRegExpLiteral()
218 if (node->flags() & RegExp::kIgnoreCase) Print("i"); in VisitRegExpLiteral()
219 if (node->flags() & RegExp::kMultiline) Print("m"); in VisitRegExpLiteral()
220 if (node->flags() & RegExp::kUnicode) Print("u"); in VisitRegExpLiteral()
221 if (node->flags() & RegExp::kSticky) Print("y"); in VisitRegExpLiteral()
225 void CallPrinter::VisitObjectLiteral(ObjectLiteral* node) { in VisitObjectLiteral() argument
226 for (int i = 0; i < node->properties()->length(); i++) { in VisitObjectLiteral()
227 Find(node->properties()->at(i)->value()); in VisitObjectLiteral()
232 void CallPrinter::VisitArrayLiteral(ArrayLiteral* node) { in VisitArrayLiteral() argument
234 for (int i = 0; i < node->values()->length(); i++) { in VisitArrayLiteral()
236 Find(node->values()->at(i), true); in VisitArrayLiteral()
242 void CallPrinter::VisitVariableProxy(VariableProxy* node) { in VisitVariableProxy() argument
244 PrintLiteral(node->name(), false); in VisitVariableProxy()
252 void CallPrinter::VisitAssignment(Assignment* node) { in VisitAssignment() argument
253 Find(node->target()); in VisitAssignment()
254 Find(node->value()); in VisitAssignment()
258 void CallPrinter::VisitYield(Yield* node) { Find(node->expression()); } in VisitYield() argument
261 void CallPrinter::VisitThrow(Throw* node) { Find(node->exception()); } in VisitThrow() argument
264 void CallPrinter::VisitProperty(Property* node) { in VisitProperty() argument
265 Expression* key = node->key(); in VisitProperty()
268 Find(node->obj(), true); in VisitProperty()
272 Find(node->obj(), true); in VisitProperty()
280 void CallPrinter::VisitCall(Call* node) { in VisitCall() argument
281 bool was_found = !found_ && node->position() == position_; in VisitCall()
285 if (!is_user_js_ && node->expression()->IsVariableProxy()) { in VisitCall()
291 Find(node->expression(), true); in VisitCall()
293 FindArguments(node->arguments()); in VisitCall()
298 void CallPrinter::VisitCallNew(CallNew* node) { in VisitCallNew() argument
299 bool was_found = !found_ && node->position() == position_; in VisitCallNew()
303 if (!is_user_js_ && node->expression()->IsVariableProxy()) { in VisitCallNew()
309 Find(node->expression(), was_found); in VisitCallNew()
310 FindArguments(node->arguments()); in VisitCallNew()
315 void CallPrinter::VisitCallRuntime(CallRuntime* node) { in VisitCallRuntime() argument
316 FindArguments(node->arguments()); in VisitCallRuntime()
320 void CallPrinter::VisitUnaryOperation(UnaryOperation* node) { in VisitUnaryOperation() argument
321 Token::Value op = node->op(); in VisitUnaryOperation()
327 Find(node->expression(), true); in VisitUnaryOperation()
332 void CallPrinter::VisitCountOperation(CountOperation* node) { in VisitCountOperation() argument
334 if (node->is_prefix()) Print(Token::String(node->op())); in VisitCountOperation()
335 Find(node->expression(), true); in VisitCountOperation()
336 if (node->is_postfix()) Print(Token::String(node->op())); in VisitCountOperation()
341 void CallPrinter::VisitBinaryOperation(BinaryOperation* node) { in VisitBinaryOperation() argument
343 Find(node->left(), true); in VisitBinaryOperation()
345 Print(Token::String(node->op())); in VisitBinaryOperation()
347 Find(node->right(), true); in VisitBinaryOperation()
352 void CallPrinter::VisitCompareOperation(CompareOperation* node) { in VisitCompareOperation() argument
354 Find(node->left(), true); in VisitCompareOperation()
356 Print(Token::String(node->op())); in VisitCompareOperation()
358 Find(node->right(), true); in VisitCompareOperation()
363 void CallPrinter::VisitSpread(Spread* node) { in VisitSpread() argument
365 Find(node->expression(), true); in VisitSpread()
370 void CallPrinter::VisitEmptyParentheses(EmptyParentheses* node) { in VisitEmptyParentheses() argument
374 void CallPrinter::VisitGetIterator(GetIterator* node) { in VisitGetIterator() argument
376 Find(node->iterable(), true); in VisitGetIterator()
380 void CallPrinter::VisitThisFunction(ThisFunction* node) {} in VisitThisFunction() argument
383 void CallPrinter::VisitSuperPropertyReference(SuperPropertyReference* node) {} in VisitSuperPropertyReference() argument
386 void CallPrinter::VisitSuperCallReference(SuperCallReference* node) { in VisitSuperCallReference() argument
391 void CallPrinter::VisitRewritableExpression(RewritableExpression* node) { in VisitRewritableExpression() argument
392 Find(node->expression()); in VisitRewritableExpression()
444 static int FormatSlotNode(Vector<char>* buf, Expression* node, in FormatSlotNode() argument
453 const char* AstPrinter::Print(AstNode* node) { in Print() argument
455 Visit(node); in Print()
641 void AstPrinter::PrintIndentedVisit(const char* s, AstNode* node) { in PrintIndentedVisit() argument
642 IndentedScope indent(this, s, node->position()); in PrintIndentedVisit()
643 Visit(node); in PrintIndentedVisit()
664 void AstPrinter::PrintOut(Isolate* isolate, AstNode* node) { in PrintOut() argument
667 printer.Visit(node); in PrintOut()
703 void AstPrinter::VisitBlock(Block* node) { in VisitBlock() argument
705 node->ignore_completion_value() ? "BLOCK NOCOMPLETIONS" : "BLOCK"; in VisitBlock()
706 IndentedScope indent(this, block_txt, node->position()); in VisitBlock()
707 PrintStatements(node->statements()); in VisitBlock()
712 void AstPrinter::VisitVariableDeclaration(VariableDeclaration* node) { in VisitVariableDeclaration() argument
713 PrintLiteralWithModeIndented("VARIABLE", node->proxy()->var(), in VisitVariableDeclaration()
714 node->proxy()->name()); in VisitVariableDeclaration()
719 void AstPrinter::VisitFunctionDeclaration(FunctionDeclaration* node) { in VisitFunctionDeclaration() argument
721 PrintLiteral(node->proxy()->name(), true); in VisitFunctionDeclaration()
723 PrintLiteral(node->fun()->name(), false); in VisitFunctionDeclaration()
728 void AstPrinter::VisitExpressionStatement(ExpressionStatement* node) { in VisitExpressionStatement() argument
729 IndentedScope indent(this, "EXPRESSION STATEMENT", node->position()); in VisitExpressionStatement()
730 Visit(node->expression()); in VisitExpressionStatement()
734 void AstPrinter::VisitEmptyStatement(EmptyStatement* node) { in VisitEmptyStatement() argument
735 IndentedScope indent(this, "EMPTY", node->position()); in VisitEmptyStatement()
740 SloppyBlockFunctionStatement* node) { in VisitSloppyBlockFunctionStatement() argument
741 Visit(node->statement()); in VisitSloppyBlockFunctionStatement()
745 void AstPrinter::VisitIfStatement(IfStatement* node) { in VisitIfStatement() argument
746 IndentedScope indent(this, "IF", node->position()); in VisitIfStatement()
747 PrintIndentedVisit("CONDITION", node->condition()); in VisitIfStatement()
748 PrintIndentedVisit("THEN", node->then_statement()); in VisitIfStatement()
749 if (node->HasElseStatement()) { in VisitIfStatement()
750 PrintIndentedVisit("ELSE", node->else_statement()); in VisitIfStatement()
755 void AstPrinter::VisitContinueStatement(ContinueStatement* node) { in VisitContinueStatement() argument
756 IndentedScope indent(this, "CONTINUE", node->position()); in VisitContinueStatement()
757 PrintLabelsIndented(node->target()->labels()); in VisitContinueStatement()
761 void AstPrinter::VisitBreakStatement(BreakStatement* node) { in VisitBreakStatement() argument
762 IndentedScope indent(this, "BREAK", node->position()); in VisitBreakStatement()
763 PrintLabelsIndented(node->target()->labels()); in VisitBreakStatement()
767 void AstPrinter::VisitReturnStatement(ReturnStatement* node) { in VisitReturnStatement() argument
768 IndentedScope indent(this, "RETURN", node->position()); in VisitReturnStatement()
769 Visit(node->expression()); in VisitReturnStatement()
773 void AstPrinter::VisitWithStatement(WithStatement* node) { in VisitWithStatement() argument
774 IndentedScope indent(this, "WITH", node->position()); in VisitWithStatement()
775 PrintIndentedVisit("OBJECT", node->expression()); in VisitWithStatement()
776 PrintIndentedVisit("BODY", node->statement()); in VisitWithStatement()
780 void AstPrinter::VisitSwitchStatement(SwitchStatement* node) { in VisitSwitchStatement() argument
781 IndentedScope indent(this, "SWITCH", node->position()); in VisitSwitchStatement()
782 PrintLabelsIndented(node->labels()); in VisitSwitchStatement()
783 PrintIndentedVisit("TAG", node->tag()); in VisitSwitchStatement()
784 for (int i = 0; i < node->cases()->length(); i++) { in VisitSwitchStatement()
785 Visit(node->cases()->at(i)); in VisitSwitchStatement()
802 void AstPrinter::VisitDoWhileStatement(DoWhileStatement* node) { in VisitDoWhileStatement() argument
803 IndentedScope indent(this, "DO", node->position()); in VisitDoWhileStatement()
805 Print(" %d\n", node->yield_count()); in VisitDoWhileStatement()
806 PrintLabelsIndented(node->labels()); in VisitDoWhileStatement()
807 PrintIndentedVisit("BODY", node->body()); in VisitDoWhileStatement()
808 PrintIndentedVisit("COND", node->cond()); in VisitDoWhileStatement()
812 void AstPrinter::VisitWhileStatement(WhileStatement* node) { in VisitWhileStatement() argument
813 IndentedScope indent(this, "WHILE", node->position()); in VisitWhileStatement()
815 Print(" %d\n", node->yield_count()); in VisitWhileStatement()
816 PrintLabelsIndented(node->labels()); in VisitWhileStatement()
817 PrintIndentedVisit("COND", node->cond()); in VisitWhileStatement()
818 PrintIndentedVisit("BODY", node->body()); in VisitWhileStatement()
822 void AstPrinter::VisitForStatement(ForStatement* node) { in VisitForStatement() argument
823 IndentedScope indent(this, "FOR", node->position()); in VisitForStatement()
825 Print(" %d\n", node->yield_count()); in VisitForStatement()
826 PrintLabelsIndented(node->labels()); in VisitForStatement()
827 if (node->init()) PrintIndentedVisit("INIT", node->init()); in VisitForStatement()
828 if (node->cond()) PrintIndentedVisit("COND", node->cond()); in VisitForStatement()
829 PrintIndentedVisit("BODY", node->body()); in VisitForStatement()
830 if (node->next()) PrintIndentedVisit("NEXT", node->next()); in VisitForStatement()
834 void AstPrinter::VisitForInStatement(ForInStatement* node) { in VisitForInStatement() argument
835 IndentedScope indent(this, "FOR IN", node->position()); in VisitForInStatement()
837 Print(" %d\n", node->yield_count()); in VisitForInStatement()
838 PrintIndentedVisit("FOR", node->each()); in VisitForInStatement()
839 PrintIndentedVisit("IN", node->enumerable()); in VisitForInStatement()
840 PrintIndentedVisit("BODY", node->body()); in VisitForInStatement()
844 void AstPrinter::VisitForOfStatement(ForOfStatement* node) { in VisitForOfStatement() argument
845 IndentedScope indent(this, "FOR OF", node->position()); in VisitForOfStatement()
847 Print(" %d\n", node->yield_count()); in VisitForOfStatement()
848 PrintIndentedVisit("INIT", node->assign_iterator()); in VisitForOfStatement()
849 PrintIndentedVisit("NEXT", node->next_result()); in VisitForOfStatement()
850 PrintIndentedVisit("DONE", node->result_done()); in VisitForOfStatement()
851 PrintIndentedVisit("EACH", node->assign_each()); in VisitForOfStatement()
852 PrintIndentedVisit("BODY", node->body()); in VisitForOfStatement()
856 void AstPrinter::VisitTryCatchStatement(TryCatchStatement* node) { in VisitTryCatchStatement() argument
857 IndentedScope indent(this, "TRY CATCH", node->position()); in VisitTryCatchStatement()
858 PrintTryStatement(node); in VisitTryCatchStatement()
860 node->variable(), in VisitTryCatchStatement()
861 node->variable()->name()); in VisitTryCatchStatement()
862 PrintIndentedVisit("CATCH", node->catch_block()); in VisitTryCatchStatement()
866 void AstPrinter::VisitTryFinallyStatement(TryFinallyStatement* node) { in VisitTryFinallyStatement() argument
867 IndentedScope indent(this, "TRY FINALLY", node->position()); in VisitTryFinallyStatement()
868 PrintTryStatement(node); in VisitTryFinallyStatement()
869 PrintIndentedVisit("FINALLY", node->finally_block()); in VisitTryFinallyStatement()
872 void AstPrinter::PrintTryStatement(TryStatement* node) { in PrintTryStatement() argument
873 PrintIndentedVisit("TRY", node->try_block()); in PrintTryStatement()
876 switch (node->catch_prediction()) { in PrintTryStatement()
897 void AstPrinter::VisitDebuggerStatement(DebuggerStatement* node) { in VisitDebuggerStatement() argument
898 IndentedScope indent(this, "DEBUGGER", node->position()); in VisitDebuggerStatement()
902 void AstPrinter::VisitFunctionLiteral(FunctionLiteral* node) { in VisitFunctionLiteral() argument
903 IndentedScope indent(this, "FUNC LITERAL", node->position()); in VisitFunctionLiteral()
904 PrintLiteralIndented("NAME", node->name(), false); in VisitFunctionLiteral()
905 PrintLiteralIndented("INFERRED NAME", node->inferred_name(), false); in VisitFunctionLiteral()
906 PrintParameters(node->scope()); in VisitFunctionLiteral()
914 void AstPrinter::VisitClassLiteral(ClassLiteral* node) { in VisitClassLiteral() argument
915 IndentedScope indent(this, "CLASS LITERAL", node->position()); in VisitClassLiteral()
916 PrintLiteralIndented("NAME", node->constructor()->name(), false); in VisitClassLiteral()
917 if (node->extends() != nullptr) { in VisitClassLiteral()
918 PrintIndentedVisit("EXTENDS", node->extends()); in VisitClassLiteral()
920 PrintClassProperties(node->properties()); in VisitClassLiteral()
952 void AstPrinter::VisitNativeFunctionLiteral(NativeFunctionLiteral* node) { in VisitNativeFunctionLiteral() argument
953 IndentedScope indent(this, "NATIVE FUNC LITERAL", node->position()); in VisitNativeFunctionLiteral()
954 PrintLiteralIndented("NAME", node->name(), false); in VisitNativeFunctionLiteral()
958 void AstPrinter::VisitDoExpression(DoExpression* node) { in VisitDoExpression() argument
959 IndentedScope indent(this, "DO EXPRESSION", node->position()); in VisitDoExpression()
960 PrintStatements(node->block()->statements()); in VisitDoExpression()
964 void AstPrinter::VisitConditional(Conditional* node) { in VisitConditional() argument
965 IndentedScope indent(this, "CONDITIONAL", node->position()); in VisitConditional()
966 PrintIndentedVisit("CONDITION", node->condition()); in VisitConditional()
967 PrintIndentedVisit("THEN", node->then_expression()); in VisitConditional()
968 PrintIndentedVisit("ELSE", node->else_expression()); in VisitConditional()
973 void AstPrinter::VisitLiteral(Literal* node) { in VisitLiteral() argument
974 PrintLiteralIndented("LITERAL", node->value(), true); in VisitLiteral()
978 void AstPrinter::VisitRegExpLiteral(RegExpLiteral* node) { in VisitRegExpLiteral() argument
979 IndentedScope indent(this, "REGEXP LITERAL", node->position()); in VisitRegExpLiteral()
981 SNPrintF(buf, "literal_slot = %d\n", node->literal_slot().ToInt()); in VisitRegExpLiteral()
983 PrintLiteralIndented("PATTERN", node->pattern(), false); in VisitRegExpLiteral()
985 if (node->flags() & RegExp::kGlobal) buf[i++] = 'g'; in VisitRegExpLiteral()
986 if (node->flags() & RegExp::kIgnoreCase) buf[i++] = 'i'; in VisitRegExpLiteral()
987 if (node->flags() & RegExp::kMultiline) buf[i++] = 'm'; in VisitRegExpLiteral()
988 if (node->flags() & RegExp::kUnicode) buf[i++] = 'u'; in VisitRegExpLiteral()
989 if (node->flags() & RegExp::kSticky) buf[i++] = 'y'; in VisitRegExpLiteral()
997 void AstPrinter::VisitObjectLiteral(ObjectLiteral* node) { in VisitObjectLiteral() argument
998 IndentedScope indent(this, "OBJ LITERAL", node->position()); in VisitObjectLiteral()
1000 SNPrintF(buf, "literal_slot = %d\n", node->literal_slot().ToInt()); in VisitObjectLiteral()
1002 PrintObjectProperties(node->properties()); in VisitObjectLiteral()
1042 void AstPrinter::VisitArrayLiteral(ArrayLiteral* node) { in VisitArrayLiteral() argument
1043 IndentedScope indent(this, "ARRAY LITERAL", node->position()); in VisitArrayLiteral()
1046 SNPrintF(buf, "literal_slot = %d\n", node->literal_slot().ToInt()); in VisitArrayLiteral()
1048 if (node->values()->length() > 0) { in VisitArrayLiteral()
1049 IndentedScope indent(this, "VALUES", node->position()); in VisitArrayLiteral()
1050 for (int i = 0; i < node->values()->length(); i++) { in VisitArrayLiteral()
1051 Visit(node->values()->at(i)); in VisitArrayLiteral()
1057 void AstPrinter::VisitVariableProxy(VariableProxy* node) { in VisitVariableProxy() argument
1060 FormatSlotNode(&buf, node, "VAR PROXY", node->VariableFeedbackSlot()); in VisitVariableProxy()
1062 if (!node->is_resolved()) { in VisitVariableProxy()
1064 PrintLiteralWithModeIndented(buf.start(), nullptr, node->name()); in VisitVariableProxy()
1066 Variable* var = node->var(); in VisitVariableProxy()
1087 PrintLiteralWithModeIndented(buf.start(), var, node->name()); in VisitVariableProxy()
1092 void AstPrinter::VisitAssignment(Assignment* node) { in VisitAssignment() argument
1093 IndentedScope indent(this, Token::Name(node->op()), node->position()); in VisitAssignment()
1094 Visit(node->target()); in VisitAssignment()
1095 Visit(node->value()); in VisitAssignment()
1099 void AstPrinter::VisitYield(Yield* node) { in VisitYield() argument
1101 SNPrintF(buf, "YIELD id %d", node->yield_id()); in VisitYield()
1102 IndentedScope indent(this, buf.start(), node->position()); in VisitYield()
1103 Visit(node->expression()); in VisitYield()
1107 void AstPrinter::VisitThrow(Throw* node) { in VisitThrow() argument
1108 IndentedScope indent(this, "THROW", node->position()); in VisitThrow()
1109 Visit(node->exception()); in VisitThrow()
1113 void AstPrinter::VisitProperty(Property* node) { in VisitProperty() argument
1115 FormatSlotNode(&buf, node, "PROPERTY", node->PropertyFeedbackSlot()); in VisitProperty()
1116 IndentedScope indent(this, buf.start(), node->position()); in VisitProperty()
1118 Visit(node->obj()); in VisitProperty()
1119 Literal* literal = node->key()->AsLiteral(); in VisitProperty()
1123 PrintIndentedVisit("KEY", node->key()); in VisitProperty()
1128 void AstPrinter::VisitCall(Call* node) { in VisitCall() argument
1131 node->tail_call_mode() == TailCallMode::kAllow ? "TAIL CALL" : "CALL"; in VisitCall()
1132 FormatSlotNode(&buf, node, name, node->CallFeedbackICSlot()); in VisitCall()
1135 Visit(node->expression()); in VisitCall()
1136 PrintArguments(node->arguments()); in VisitCall()
1140 void AstPrinter::VisitCallNew(CallNew* node) { in VisitCallNew() argument
1141 IndentedScope indent(this, "CALL NEW", node->position()); in VisitCallNew()
1142 Visit(node->expression()); in VisitCallNew()
1143 PrintArguments(node->arguments()); in VisitCallNew()
1147 void AstPrinter::VisitCallRuntime(CallRuntime* node) { in VisitCallRuntime() argument
1149 if (node->is_jsruntime()) { in VisitCallRuntime()
1151 buf, "CALL RUNTIME %s code = %p", node->debug_name(), in VisitCallRuntime()
1152 static_cast<void*>(isolate_->context()->get(node->context_index()))); in VisitCallRuntime()
1154 SNPrintF(buf, "CALL RUNTIME %s", node->debug_name()); in VisitCallRuntime()
1157 IndentedScope indent(this, buf.start(), node->position()); in VisitCallRuntime()
1158 PrintArguments(node->arguments()); in VisitCallRuntime()
1162 void AstPrinter::VisitUnaryOperation(UnaryOperation* node) { in VisitUnaryOperation() argument
1163 IndentedScope indent(this, Token::Name(node->op()), node->position()); in VisitUnaryOperation()
1164 Visit(node->expression()); in VisitUnaryOperation()
1168 void AstPrinter::VisitCountOperation(CountOperation* node) { in VisitCountOperation() argument
1170 SNPrintF(buf, "%s %s", (node->is_prefix() ? "PRE" : "POST"), in VisitCountOperation()
1171 Token::Name(node->op())); in VisitCountOperation()
1172 IndentedScope indent(this, buf.start(), node->position()); in VisitCountOperation()
1173 Visit(node->expression()); in VisitCountOperation()
1177 void AstPrinter::VisitBinaryOperation(BinaryOperation* node) { in VisitBinaryOperation() argument
1178 IndentedScope indent(this, Token::Name(node->op()), node->position()); in VisitBinaryOperation()
1179 Visit(node->left()); in VisitBinaryOperation()
1180 Visit(node->right()); in VisitBinaryOperation()
1184 void AstPrinter::VisitCompareOperation(CompareOperation* node) { in VisitCompareOperation() argument
1185 IndentedScope indent(this, Token::Name(node->op()), node->position()); in VisitCompareOperation()
1186 Visit(node->left()); in VisitCompareOperation()
1187 Visit(node->right()); in VisitCompareOperation()
1191 void AstPrinter::VisitSpread(Spread* node) { in VisitSpread() argument
1192 IndentedScope indent(this, "...", node->position()); in VisitSpread()
1193 Visit(node->expression()); in VisitSpread()
1197 void AstPrinter::VisitEmptyParentheses(EmptyParentheses* node) { in VisitEmptyParentheses() argument
1198 IndentedScope indent(this, "()", node->position()); in VisitEmptyParentheses()
1201 void AstPrinter::VisitGetIterator(GetIterator* node) { in VisitGetIterator() argument
1202 IndentedScope indent(this, "GET-ITERATOR", node->position()); in VisitGetIterator()
1203 Visit(node->iterable()); in VisitGetIterator()
1206 void AstPrinter::VisitThisFunction(ThisFunction* node) { in VisitThisFunction() argument
1207 IndentedScope indent(this, "THIS-FUNCTION", node->position()); in VisitThisFunction()
1211 void AstPrinter::VisitSuperPropertyReference(SuperPropertyReference* node) { in VisitSuperPropertyReference() argument
1212 IndentedScope indent(this, "SUPER-PROPERTY-REFERENCE", node->position()); in VisitSuperPropertyReference()
1216 void AstPrinter::VisitSuperCallReference(SuperCallReference* node) { in VisitSuperCallReference() argument
1217 IndentedScope indent(this, "SUPER-CALL-REFERENCE", node->position()); in VisitSuperCallReference()
1221 void AstPrinter::VisitRewritableExpression(RewritableExpression* node) { in VisitRewritableExpression() argument
1222 Visit(node->expression()); in VisitRewritableExpression()