Chromium Code Reviews

Unified Diff: src/parsing/parser.h

Issue 2490643002: [counters] Implement off-isolate RuntimeCallStats for the Preparser (Closed)
Patch Set: fix merge conflict Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Index: src/parsing/parser.h
diff --git a/src/parsing/parser.h b/src/parsing/parser.h
index 19384f6fdba3581cc78d0c55a68ed2c1d5a98966..8a5fa08fcf0c7992210416eeb33a5233e057f27f 100644
--- a/src/parsing/parser.h
+++ b/src/parsing/parser.h
@@ -203,6 +203,8 @@ class V8_EXPORT_PRIVATE Parser : public NON_EXPORTED_BASE(ParserBase<Parser>) {
cached_parse_data_ = NULL;
}
+ static bool const IsPreParser() { return false; }
+
// Parses the source code represented by the compilation info and sets its
// function literal. Returns false (and deallocates any allocated AST
// nodes) if parsing failed.
@@ -1150,7 +1152,6 @@ class V8_EXPORT_PRIVATE Parser : public NON_EXPORTED_BASE(ParserBase<Parser>) {
// parsing.
int use_counts_[v8::Isolate::kUseCounterFeatureCount];
int total_preparse_skipped_;
-
bool parsing_on_main_thread_;
ParserLogger* log_;
};

Powered by Google App Engine