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

Unified Diff: src/ast/scopes.cc

Issue 2391953002: Rewind zonelists in scopes when resetting rather than clearing (Closed)
Patch Set: Created 4 years, 2 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/ast/scopes.cc
diff --git a/src/ast/scopes.cc b/src/ast/scopes.cc
index fbcdf903602b63249232124f285c705aec42a553..435abdf24a5512d9ccd7936dd10baeb81ab9ade3 100644
--- a/src/ast/scopes.cc
+++ b/src/ast/scopes.cc
@@ -1195,8 +1195,8 @@ void DeclarationScope::ResetAfterPreparsing(AstValueFactory* ast_value_factory,
DCHECK(is_function_scope());
// Reset all non-trivial members.
- decls_.Clear();
- locals_.Clear();
+ decls_.Rewind(0);
+ locals_.Rewind(0);
sloppy_block_function_map_.Clear();
variables_.Clear();
// Make sure we won't walk the scope tree from here on.
@@ -1220,7 +1220,7 @@ void DeclarationScope::ResetAfterPreparsing(AstValueFactory* ast_value_factory,
}
}
} else {
- params_.Clear();
+ params_.Rewind(0);
}
#ifdef DEBUG
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698