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

Unified Diff: src/parsing/preparse-data.cc

Issue 2481163002: Assign unique IDs to FunctionLiterals (Closed)
Patch Set: updates 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/preparse-data.cc
diff --git a/src/parsing/preparse-data.cc b/src/parsing/preparse-data.cc
index e9a4e8f4b5600ff9e8851b4b85279caf3afdaa3f..c3e261d5ab88dc8a8013d6bc6aedf70b2ef5ace7 100644
--- a/src/parsing/preparse-data.cc
+++ b/src/parsing/preparse-data.cc
@@ -16,7 +16,8 @@ void ParserLogger::LogFunction(int start, int end, int num_parameters,
int function_length,
bool has_duplicate_parameters, int literals,
int properties, LanguageMode language_mode,
- bool uses_super_property, bool calls_eval) {
+ bool uses_super_property, bool calls_eval,
+ int num_inner_functions) {
function_store_.Add(start);
function_store_.Add(end);
function_store_.Add(num_parameters);
@@ -26,6 +27,7 @@ void ParserLogger::LogFunction(int start, int end, int num_parameters,
function_store_.Add(
FunctionEntry::EncodeFlags(language_mode, uses_super_property, calls_eval,
has_duplicate_parameters));
+ function_store_.Add(num_inner_functions);
}
ParserLogger::ParserLogger() {

Powered by Google App Engine
This is Rietveld 408576698