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

Unified Diff: src/parsing/preparser.h

Issue 2490643002: [counters] Implement off-isolate RuntimeCallStats for the Preparser (Closed)
Patch Set: fixing declaration 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
« no previous file with comments | « src/parsing/parser-base.h ('k') | src/parsing/preparser.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/parsing/preparser.h
diff --git a/src/parsing/preparser.h b/src/parsing/preparser.h
index 90fdf57164b4106648b95d6dcd7a2ab979914e29..f4687eb3f7739019495be2e68eda80f0b5a875aa 100644
--- a/src/parsing/preparser.h
+++ b/src/parsing/preparser.h
@@ -840,13 +840,15 @@ class PreParser : public ParserBase<PreParser> {
PreParser(Zone* zone, Scanner* scanner, AstValueFactory* ast_value_factory,
PendingCompilationErrorHandler* pending_error_handler,
- 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),
pending_error_handler_(pending_error_handler) {}
+ static bool const IsPreParser() { return true; }
+
PreParserLogger* logger() { return &log_; }
// Pre-parse the program from the character stream; returns true on
« no previous file with comments | « 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