Lines Matching full:comment
30 // Record code kind and code comment statistics. in RecordCodeAndMetadataStatistics()
48 // - by code comment (only in debug mode)
60 // - by code comment (only in debug mode)
93 // Report code comment statistics in ReportCodeStatistics()
97 "Code comment statistics (\" [ comment-txt : size/ " in ReportCodeStatistics()
102 PrintF(" %-30s: %10d/%6d (%d)\n", cs.comment, cs.size, cs.count, in ReportCodeStatistics()
116 // Clear code comment statistics in ResetCodeStatistics()
122 comments_statistics[CommentStatistic::kMaxComments].comment = "Unknown"; in ResetCodeStatistics()
127 // Adds comment to 'comment_statistics' table. Performance OK as long as
129 void CodeStatistics::EnterComment(Isolate* isolate, const char* comment, in EnterComment() argument
139 if (comments_statistics[i].comment == NULL) { in EnterComment()
141 cs->comment = comment; in EnterComment()
143 } else if (strcmp(comments_statistics[i].comment, comment) == 0) { in EnterComment()
148 // Update entry for 'comment' in EnterComment()
153 // Call for each nested comment start (start marked with '[ xxx', end marked
154 // with ']'. RelocIterator 'it' must point to a comment reloc info.
158 DCHECK(it->rinfo()->rmode() == RelocInfo::COMMENT); in CollectCommentStatistics()
161 // Not a nested comment; skip in CollectCommentStatistics()
165 // Search for end of nested comment or a new nested comment in CollectCommentStatistics()
175 if (it->rinfo()->rmode() == RelocInfo::COMMENT) { in CollectCommentStatistics()
179 if (txt[0] == ']') break; // End of nested comment in CollectCommentStatistics()
180 // A new comment in CollectCommentStatistics()
182 // Skip code that was covered with previous comment in CollectCommentStatistics()
190 // Collects code comment statistics
194 // for code comment statistics. in CollectCodeCommentStatistics()
204 if (it.rinfo()->rmode() == RelocInfo::COMMENT) { in CollectCodeCommentStatistics()