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

Unified Diff: src/parsing/preparser.cc

Issue 2268333002: Move scope_uses_super_property_ to DeclarationScope (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 4 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/parser.cc ('k') | test/cctest/test-parsing.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 9696cc75ba230d409fa8f3468e6e83c16cf7e63f..2467c54a2255cd5cdd0f07458a040243e389f9c8 100644
--- a/src/parsing/preparser.cc
+++ b/src/parsing/preparser.cc
@@ -1178,10 +1178,12 @@ void PreParser::ParseLazyFunctionLiteralBody(bool* ok,
// Position right after terminal '}'.
DCHECK_EQ(Token::RBRACE, scanner()->peek());
int body_end = scanner()->peek_location().end_pos;
+ DeclarationScope* scope = this->scope()->AsDeclarationScope();
+ DCHECK(scope->is_function_scope());
log_->LogFunction(body_start, body_end,
function_state_->materialized_literal_count(),
function_state_->expected_property_count(), language_mode(),
- scope()->uses_super_property(), scope()->calls_eval());
+ scope->uses_super_property(), scope->calls_eval());
}
PreParserExpression PreParser::ParseClassLiteral(
« no previous file with comments | « src/parsing/parser.cc ('k') | test/cctest/test-parsing.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698