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

Unified Diff: src/parsing/parser.cc

Issue 2201763004: Shuffle fields around in Scope to save more zone memory (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Addressed comment Created 4 years, 5 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
« src/ast/scopes.h ('K') | « src/globals.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/parsing/parser.cc
diff --git a/src/parsing/parser.cc b/src/parsing/parser.cc
index 4b6cdb1304662f72db58fdba3d17f373b4ad2b3e..3262ceb2d303a1918a952410b5df4a5d4a341888 100644
--- a/src/parsing/parser.cc
+++ b/src/parsing/parser.cc
@@ -4299,7 +4299,9 @@ FunctionLiteral* Parser::ParseFunctionLiteral(
// Parse function.
{
FunctionState function_state(&function_state_, &scope_state_, scope, kind);
+#ifdef DEBUG
this->scope()->SetScopeName(function_name);
+#endif
ExpressionClassifier formals_classifier(this, &duplicate_finder);
eager_compile_hint = function_state_->this_function_is_parenthesized()
@@ -5011,7 +5013,9 @@ Expression* Parser::ParseClassLiteral(ExpressionClassifier* classifier,
BlockState block_state(&scope_state_);
RaiseLanguageMode(STRICT);
+#ifdef DEBUG
scope()->SetScopeName(name);
+#endif
VariableProxy* proxy = nullptr;
if (name != nullptr) {
« src/ast/scopes.h ('K') | « src/globals.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698