Lines Matching refs:os_
20 explicit DotPrinterImpl(std::ostream& os) : os_(os) {} in DotPrinterImpl()
29 std::ostream& os_; member in v8::internal::DotPrinterImpl
33 os_ << "digraph G {\n graph [label=\""; in PrintNode()
37 os_ << "\\\\"; in PrintNode()
40 os_ << "\""; in PrintNode()
43 os_ << label[i]; in PrintNode()
47 os_ << "\"];\n"; in PrintNode()
49 os_ << "}" << std::endl; in PrintNode()
59 os_ << " n" << from << " -> n" << on_failure << " [style=dotted];\n"; in PrintOnFailure()
66 : os_(os), first_(true) {} in AttributePrinter()
71 os_ << "|"; in PrintSeparator()
77 os_ << "{" << name << "}"; in PrintBit()
82 os_ << "{" << name << "|" << value << "}"; in PrintPositive()
86 std::ostream& os_; member in v8::internal::AttributePrinter
91 os_ << " a" << that << " [shape=Mrecord, color=grey, fontcolor=grey, " in PrintAttributes()
93 AttributePrinter printer(os_); in PrintAttributes()
100 os_ << "}\"];\n" in PrintAttributes()
106 os_ << " n" << that << " [shape=Mrecord, label=\"?\"];\n"; in VisitChoice()
109 os_ << " n" << that << " -> n" << alt.node(); in VisitChoice()
128 os_ << " n" << that << " [label=\""; in VisitText()
130 if (i > 0) os_ << " "; in VisitText()
136 os_ << static_cast<char>(data[i]); in VisitText()
142 os_ << "["; in VisitText()
143 if (node->is_negated()) os_ << "^"; in VisitText()
146 os_ << AsUC32(range.from()) << "-" << AsUC32(range.to()); in VisitText()
148 os_ << "]"; in VisitText()
155 os_ << "\", shape=box, peripheries=2];\n"; in VisitText()
157 os_ << " n" << that << " -> n" << that->on_success() << ";\n"; in VisitText()
162 os_ << " n" << that << " [label=\"$" << that->start_register() << "..$" in VisitBackReference()
165 os_ << " n" << that << " -> n" << that->on_success() << ";\n"; in VisitBackReference()
170 os_ << " n" << that << " [style=bold, shape=point];\n"; in VisitEnd()
175 os_ << " n" << that << " ["; in VisitAssertion()
178 os_ << "label=\"$\", shape=septagon"; in VisitAssertion()
181 os_ << "label=\"^\", shape=septagon"; in VisitAssertion()
184 os_ << "label=\"\\b\", shape=septagon"; in VisitAssertion()
187 os_ << "label=\"\\B\", shape=septagon"; in VisitAssertion()
190 os_ << "label=\"(?<=\\n)\", shape=septagon"; in VisitAssertion()
193 os_ << "];\n"; in VisitAssertion()
196 os_ << " n" << that << " -> n" << successor << ";\n"; in VisitAssertion()
201 os_ << " n" << that << " ["; in VisitAction()
204 os_ << "label=\"$" << that->data_.u_store_register.reg in VisitAction()
208 os_ << "label=\"$" << that->data_.u_increment_register.reg in VisitAction()
212 os_ << "label=\"$" << that->data_.u_position_register.reg in VisitAction()
216 os_ << "label=\"$" << that->data_.u_submatch.current_position_register in VisitAction()
220 os_ << "label=\"escape\", shape=septagon"; in VisitAction()
223 os_ << "label=\"$" << that->data_.u_empty_match_check.start_register in VisitAction()
229 os_ << "label=\"clear $" << that->data_.u_clear_captures.range_from in VisitAction()
235 os_ << "];\n"; in VisitAction()
238 os_ << " n" << that << " -> n" << successor << ";\n"; in VisitAction()