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

Unified Diff: src/preparser.cc

Issue 923683002: Fix lazy parsing for functions that use super. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Increment the PreparserData version Created 5 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/preparse-data-format.h ('k') | src/scopes.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/preparser.cc
diff --git a/src/preparser.cc b/src/preparser.cc
index 9e72422eb7deb1c28f824ac86937068d2eb5ddbe..76698ac8556cd4730c5e213aa2505710160a6f55 100644
--- a/src/preparser.cc
+++ b/src/preparser.cc
@@ -953,9 +953,10 @@ void PreParser::ParseLazyFunctionLiteralBody(bool* ok) {
// Position right after terminal '}'.
DCHECK_EQ(Token::RBRACE, scanner()->peek());
int body_end = scanner()->peek_location().end_pos;
- log_->LogFunction(
- body_start, body_end, function_state_->materialized_literal_count(),
- function_state_->expected_property_count(), language_mode());
+ log_->LogFunction(body_start, body_end,
+ function_state_->materialized_literal_count(),
+ function_state_->expected_property_count(), language_mode(),
+ scope_->uses_super_property());
}
« no previous file with comments | « src/preparse-data-format.h ('k') | src/scopes.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698