Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(19)

Unified Diff: src/parsing/preparser.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. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: src/parsing/preparser.h
diff --git a/src/parsing/preparser.h b/src/parsing/preparser.h
index e45e2f070c7023237cb1772531486774df3e6b34..38e81aaac50559616408e5e3399a53e3f08e54e4 100644
--- a/src/parsing/preparser.h
+++ b/src/parsing/preparser.h
@@ -839,12 +839,14 @@ class PreParser : public ParserBase<PreParser> {
};
PreParser(Zone* zone, Scanner* scanner, AstValueFactory* ast_value_factory,
- uintptr_t stack_limit)
+ RuntimeCallStats* runtime_call_stats, uintptr_t stack_limit)
: ParserBase<PreParser>(zone, scanner, stack_limit, nullptr,
- ast_value_factory),
+ ast_value_factory, runtime_call_stats),
use_counts_(nullptr),
track_unresolved_variables_(false) {}
+ static bool const IsPreParser() { return true; }
+
PreParserLogger* logger() { return &log_; }
// Pre-parse the program from the character stream; returns true on
« src/parsing/parser.cc ('K') | « src/parsing/parser-base.h ('k') | src/parsing/preparser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698