Index: src/parsing/parser.cc |
diff --git a/src/parsing/parser.cc b/src/parsing/parser.cc |
index 5377e1694d4cfaad0c1f782c9bd82b58b8fca809..627a6ecaff0fe09e3dc4d7eb42d55341fd0a7542 100644 |
--- a/src/parsing/parser.cc |
+++ b/src/parsing/parser.cc |
@@ -5148,6 +5148,12 @@ void Parser::Internalize(Isolate* isolate, Handle<Script> script, bool error) { |
isolate->CountUsage(v8::Isolate::UseCounterFeature(feature)); |
} |
} |
+ if (scanner_.FoundHtmlComment()) { |
+ isolate->CountUsage(v8::Isolate::kHtmlComment); |
+ if (script->line_offset() == 0 && script->column_offset() == 0) { |
+ isolate->CountUsage(v8::Isolate::kHtmlCommentInExternalScript); |
+ } |
+ } |
isolate->counters()->total_preparse_skipped()->Increment( |
total_preparse_skipped_); |
} |