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

Unified Diff: src/parsing/func-name-inferrer.cc

Issue 2792353002: [parser/ast] Reduce memory consumption for AstConsString. (Closed)
Patch Set: Fix (and minor cleanup) Created 3 years, 8 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/ast/ast-value-factory.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/parsing/func-name-inferrer.cc
diff --git a/src/parsing/func-name-inferrer.cc b/src/parsing/func-name-inferrer.cc
index 8266df4bbc0cbc47893485aaabc4d145411ba0d6..e9736165340cf8f238e166b421b20b08227525e7 100644
--- a/src/parsing/func-name-inferrer.cc
+++ b/src/parsing/func-name-inferrer.cc
@@ -64,9 +64,9 @@ const AstConsString* FuncNameInferrer::MakeNameFromStack() {
}
// Add name. Separate names with ".".
if (!result->IsEmpty()) {
- result->AddString(ast_value_factory_->dot_string());
+ result->AddString(zone(), ast_value_factory_->dot_string());
}
- result->AddString(names_stack_.at(pos).name);
+ result->AddString(zone(), names_stack_.at(pos).name);
}
return result;
}
« no previous file with comments | « src/ast/ast-value-factory.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698