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

Unified Diff: src/parsing/preparser.cc

Issue 2657413002: No need to collect literal counts.
Patch Set: Rebase. Created 3 years, 10 months 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/preparser.h ('k') | src/runtime/runtime-function.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/parsing/preparser.cc
diff --git a/src/parsing/preparser.cc b/src/parsing/preparser.cc
index 8717d3bb277009bbfade492f139efb6656030303..b0cba7c8885d558e35b0b1fa937fb4ba8932a266 100644
--- a/src/parsing/preparser.cc
+++ b/src/parsing/preparser.cc
@@ -295,10 +295,10 @@ PreParser::LazyParsingResult PreParser::ParseStatementListAndLogFunction(
DCHECK_EQ(Token::RBRACE, scanner()->peek());
int body_end = scanner()->peek_location().end_pos;
DCHECK_EQ(this->scope()->is_function_scope(), formals->is_simple);
- log_.LogFunction(
- body_end, formals->num_parameters(), formals->function_length,
- has_duplicate_parameters, function_state_->materialized_literal_count(),
- function_state_->expected_property_count(), GetLastFunctionLiteralId());
+ log_.LogFunction(body_end, formals->num_parameters(),
+ formals->function_length, has_duplicate_parameters,
+ function_state_->expected_property_count(),
+ GetLastFunctionLiteralId());
return kLazyParsingComplete;
}
« no previous file with comments | « src/parsing/preparser.h ('k') | src/runtime/runtime-function.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698