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

Unified Diff: src/parsing/preparser.h

Issue 2490643002: [counters] Implement off-isolate RuntimeCallStats for the Preparser (Closed)
Patch Set: fixing bounds 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 ac41f1a8724aeb62e444a99ce28ec80b43875244..fcf35912299a9356a5343a76ed5c1b8084b82963 100644
--- a/src/parsing/preparser.h
+++ b/src/parsing/preparser.h
@@ -838,12 +838,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